Method and apparatus for data processing, and communication system

By setting up mutually protective switching channels in the communication system and utilizing network nodes to determine the transmission path based on the channel status, the problem of interrupted service traffic transmission in the communication network is solved, and continuous transmission of service traffic is achieved.

WO2024222620A1PCT designated stage expired Publication Date: 2024-10-31HUAWEI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/089078
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-07-18
Filing Date
2024-04-22
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

In communication networks, interruptions can occur during service traffic transmission, especially when both the primary and backup paths fail, making such interruptions unavoidable.

Method used

By setting up a first and second channel in the communication system to protect and switch each other, network nodes determine the transmission path of services based on the channel status, ensuring that the transmission path matches the channel status, avoiding fault points, and realizing continuous transmission of service traffic.

Benefits of technology

This effectively avoids interruptions in business traffic when both the primary and backup paths fail, ensuring that business traffic can bypass the faulty links and guaranteeing the continuity and reliability of transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024089078_31102024_PF_FP_ABST
    Figure CN2024089078_31102024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present application is a communication system comprising a target network, which belongs to the technical field of communications. The communication system comprises a target network, and the target network at least comprises a first subnetwork domain. The first subnetwork domain comprises a first network node belonging to a first path and a second network node belonging to a second path. The first path comprises a first channel and a second channel which are connected with the first network node, and the second path comprises a third channel and a fourth channel which are connected with the second network node. The first channel and the third channel are mutually protection switching channels, and the second channel and the fourth channel are mutually protection switching channels. The first network node and / or the second network node can determine a transmission path for a service based on a state of the channels. The scheme enables the determined transmission path to be matched with the state of the channels, and correspondingly, when service traffic is transmitted based on the determined transmission path, service traffic transmission interruption can be effectively avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Data processing method, device and communication system

[0001] This application claims priority to the Chinese patent application filed with the China National Intellectual Property Administration on July 18, 2023, with application number 202310885513.4, entitled “A data processing method, device and communication system”, and the Chinese patent application filed with the China Patent Office on April 27, 2023, with application number 202310478547.1, entitled “A data processing method based on fgMTN”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communication technology, and in particular to a data processing method, device and communication system. Background Art

[0003] With the development of communication technology, more and more services are carried in communication networks, and accordingly, more and more service traffic is transmitted in communication networks. In some scenarios, in order to improve the service quality provided to the services, Flexible Ethernet (FlexE) technology can be applied. Due to the advantage of flexible allocation of bandwidth on demand, the application of FlexE technology is becoming more and more extensive. Moreover, in order to rationally utilize the bandwidth resources of FlexE, FlexE technology can also be used to carry small-granularity services. The so-called small-granularity service can be understood as dividing the time slot corresponding to the large bandwidth in FlexE into multiple sub-slots. The divided sub-slots are used to carry customer services with smaller bandwidth requirements.

[0004] Currently, when business traffic is transmitted in a communication network, there is a phenomenon of business traffic transmission interruption. Therefore, a solution is urgently needed to solve the above problem.

[0005] Summary of the Invention

[0006] The present application provides a data processing method, device and communication system, which can reduce the phenomenon of business traffic transmission interruption.

[0007] In a first aspect, the present application provides a communications system comprising a target network, the target network comprising at least one sub-network domain, wherein a first sub-network domain may be one of the at least one sub-network domain. The first sub-network domain comprises a first network node and a second network node, wherein the first network node belongs to a first path, and the second network node belongs to a second path. The first path comprises a first channel and a second channel connected to the first network node, and the second path comprises a third channel and a fourth channel connected to the second network node. The first channel and the third channel serve as protection switching channels for each other, and the second channel and the fourth channel serve as protection switching channels for each other. The first network node and / or the second network node may each determine a service transmission path based on a channel status. The channel status may comprise at least one status from a state set, wherein the state set comprises the state of the first channel, the state of the second channel, the state of the third channel, and the state of the fourth channel. The determined service transmission path may be one or more paths from a path set, wherein the path set comprises: the first path, the second path, the third path, and the fourth path, wherein the third path comprises the first channel and the fourth channel, and the fourth path comprises the second channel and the third channel. It can be seen that, using this solution, the first network node and / or the second network node can determine the transmission path of the service based on the status of the channel, so that the determined transmission path is consistent with the status of the channel. Accordingly, when transmitting service traffic based on the determined transmission path, service traffic transmission interruption can be effectively avoided.

[0008] In one possible implementation, the first path and the second path serve as mutual protection switching paths. In this scenario, when both the first path and the second path, which serve as mutual protection switching paths, fail (for example, when both experience single-point or multi-point failures), the solution provided in this application can also determine a path that does not include the failure point, thereby effectively avoiding interruption of service traffic transmission.

[0009] In one possible implementation, the first network node and the second network node are the same network node. In this case, the first network node is a common node for the first path and the second path. The first network node is connected to the first channel, the second channel, the third channel, and the fourth channel, respectively.

[0010] In one possible implementation, the first network node and the second network node are different network nodes, and a fifth channel is included between the first network node and the second network node. Accordingly, the third path and the fourth path also include the fifth channel. That is, the third path includes the first channel, the fifth channel, and the fourth channel. The fourth path includes the second channel, the fifth channel, and the third channel. Service traffic can be transmitted between the first network node and the second network node via the fifth channel. In this way, when both the first path and the second path fail, service traffic can be transmitted via a third path or a fourth path that includes a portion of the channels on the first path and a portion of the channels on the second path. This allows service traffic to bypass the failed links on the first path and the second path, thereby ensuring that service traffic is forwarded to its destination node, thereby avoiding interruption in service traffic transmission.

[0011] In one possible implementation, when a fifth channel is provided between the first network node and the second network node, the aforementioned state set also includes the state of the fifth channel. That is, when determining a service transmission path, the first network node and / or the second network node may consider the state of the fifth channel, thereby making the determined service transmission path more reasonable.

[0012] In one possible implementation, the first network node and the second network node are different network nodes, and a sixth channel and a seventh channel are included between the first network node and the second network node. Accordingly, the third path and the fourth path also include the sixth channel or the seventh channel. Specifically: when the first network node sends a service to the second network node via the third path, the third path includes the seventh channel; when the second network node sends a service to the first network node via the third path, the third path includes the sixth channel; when the first network node sends a service to the second network node via the fourth path, the fourth path includes the sixth channel; and when the second network node sends a service to the first network node via the fourth path, the fourth path includes the seventh channel. Service traffic can be transmitted between the first network node and the second network node via the sixth channel or the seventh channel. In this way, if both the first and second paths fail, service traffic can be transmitted via the third or fourth path, which includes portions of the first and second paths. This allows service traffic to bypass the failed links on the first and second paths, ensuring that service traffic is forwarded to its destination node, thereby avoiding service traffic transmission interruption.

[0013] In one possible implementation, when a sixth channel and a seventh channel are provided between the first network node and the second network node, the aforementioned state set also includes the state of the sixth channel and the state of the seventh channel. That is, when determining a service transmission path, the first network node and / or the second network node may combine the state of the sixth channel and the state of the seventh channel, thereby making the determined service transmission path more reasonable.

[0014] In one possible implementation, the first network node and the second network node are both provider edge devices (PEs). That is, the PE can determine a service transmission path based on the channel status, so that service traffic is transmitted through a reasonable transmission path upon arrival at the PE, thereby improving the quality of service provided to the service.

[0015] In one possible implementation, the first network node and the second network node are operator intermediate devices. That is, the operator intermediate device can determine the transmission path of the service based on the status of the channel, so that the service traffic can be transmitted through a reasonable transmission path when it is transmitted in the network, which is conducive to improving the service quality provided to the service. The operator intermediate device includes but is not limited to the operator backbone device (provider, P). In the following description of the embodiments of the present application, P can represent the operator intermediate device.

[0016] In one possible implementation, when the first network node and the second network node are operator intermediate devices, the first channel, the second channel, the third channel, and the fourth channel are all small-granularity channels. This solution can improve the quality of service provided for services carried by the small-granularity channels.

[0017] In one possible implementation, when the first network node and the second network node are operator intermediate devices, the first channel, the second channel, the third channel, and the fourth channel are all metropolitan transport network (MTN) channels. This solution can improve the quality of service provided for services carried by the MTN channels.

[0018] In one possible implementation, if the first network node and the second network node are PEs, then in one example, the first channel and the third channel are attachment circuit (AC) links, and the second channel and the fourth channel are small-granularity channels. This solution can improve the quality of service provided for services carried by the small-granularity channels.

[0019] In one possible implementation, if the first network node and the second network node are PEs, then in one example, the first channel and the third channel are AC links, and the second channel and the fourth channel are MTN channels. This solution can improve the quality of service provided for services carried by the MTN channels.

[0020] In a second aspect, the present application provides a data processing method that can be applied to a first network node. The first network node can obtain the status of a channel, where the status of the channel includes at least one status in a status set, where the status set includes: the status of the first channel, the status of the second channel, the status of the third channel, and the status of the fourth channel. The first channel and the second channel are respectively connected to the first network node, and the first channel and the second channel belong to the first path. The third channel and the fourth channel are respectively connected to the second network node, and the third channel and the fourth channel belong to the second path. The first channel and the third channel are each other's protection switching channels, and the second channel and the fourth channel are each other's protection switching channels. After the first network node obtains the status of the channel, it can determine the transmission path of the service based on the obtained channel status. The determined transmission path of the service can be one or more paths in the path set, where the path set includes: the first path, the second path, the third path, and the fourth path. The third path includes the first channel and the fourth channel, and the fourth path includes the second channel and the third channel. It can be seen that, using this solution, the first network node can determine the transmission path of the service based on the status of the channel, so that the determined transmission path is consistent with the status of the channel. Accordingly, when transmitting service traffic based on the determined transmission path, service traffic transmission interruption can be effectively avoided.

[0021] In one possible implementation, the first path and the second path serve as mutual protection switching paths. In this scenario, when both the first path and the second path, which serve as mutual protection switching paths, fail (for example, when both experience single-point or multi-point failures), the solution provided in this application can also determine a path that does not include the failure point, thereby effectively avoiding interruption of service traffic transmission.

[0022] In a possible implementation manner, the first network node and the second network node are the same network node.

[0023] In a possible implementation, the first network node and the second network node are different network nodes, a fifth channel is included between the first network node and the second network node, and the third path and the fourth path also include the fifth channel.

[0024] In a possible implementation manner, the state set further includes the state of the fifth channel.

[0025] In a possible implementation, the first network node and the second network node are different network nodes, a sixth channel and a seventh channel are included between the first network node and the second network node, and both the third path and the fourth path include the sixth channel or the seventh channel, wherein: when the first network node sends a service to the second network node through the third path, the third path includes the seventh channel; when the second network node sends a service to the first network node through the third path, the third path includes the sixth channel; when the first network node sends a service to the second network node through the fourth path, the fourth path includes the sixth channel; when the second network node sends a service to the first network node through the fourth path, the fourth path includes the seventh channel.

[0026] In a possible implementation, the state set further includes the state of the sixth channel and the state of the seventh channel.

[0027] In a possible implementation manner, both the first network node and the second network node are operator edge devices (PEs).

[0028] In a possible implementation manner, the first network node and the second network node are operator intermediate devices.

[0029] In a possible implementation, the first channel, the second channel, the third channel, and the fourth channel are all small-granularity channels; or, the first channel, the second channel, the third channel, and the fourth channel are all metropolitan area transport network (MTN) channels.

[0030] In a possible implementation, the first channel and the third channel are access circuit AC links, and the second channel and the fourth channel are small particle channels; or,

[0031] The first channel and the third channel are AC links, and the second channel and the fourth channel are MTN channels.

[0032] In one possible implementation, the state of the first channel is determined based on a first factor, which may include one or more factors indicating whether service data can be transmitted through the first channel. Considering that the state of the third channel, the local fault information of the first channel, the first remote fault indication information received through the first channel, and the state of the second channel can all indicate whether service data can be transmitted through the first channel, the first factor may include one or more of the state of the third channel, the local fault information of the first channel, the first remote fault indication information received through the first channel, and the state of the second channel. In one example, the first network node may determine the state of the first channel based on the first factor, thereby determining the transmission path of the service based on a state set including the state of the first channel.

[0033] In one possible implementation, if the first network node and the second network node are different network nodes, the status of the target channel between the first network node and the second network node can also be used to indicate whether service data can be transmitted via the first channel. Therefore, when the first network node and the second network node are different network nodes, the first factor also includes: the status of the target channel, where the status of the target channel is used to indicate whether the target channel is faulty. Specifically, when a fifth channel is provided between the first network node and the second network node, the target channel includes the fifth channel; when a sixth channel and a seventh channel are provided between the first network node and the second network node, the target channel includes the sixth channel and the seventh channel.

[0034] In one possible implementation, if the first path is a working path, then in one example, the first network node may determine that the state of the first channel is standby when the state of the third channel is active. In another example, the first network node may determine that the state of the first channel is standby when local fault information of the first channel indicates that a local fault has occurred in the first channel. In another example, the first network node may determine that the state of the first channel is standby when the first remote fault indication information is received through the first channel; in yet another example, the first network node may determine that the state of the first channel is standby when the state of the second channel is standby and the state of the target channel indicates that the target channel has failed.

[0035] In one possible implementation, if the first path is a protection path, then in one example, the first network node may determine that the state of the first channel is active when the state of the third channel is standby; in another example, the first network node may determine that the state of the first channel is standby when local fault information of the first channel indicates that a local fault has occurred in the first channel. In another example, the first network node may determine that the state of the first channel is standby when the first remote fault indication information is received via the first channel. In yet another example, the first network node may determine that the state of the first channel is standby when the state of the second channel is standby and the state of the target channel indicates that the target channel has failed.

[0036] In a possible implementation, if the first network node and the second network node are different network nodes, the first network node may obtain the status of the third channel and the status of the fourth channel by receiving the status of the third channel and the status of the fourth channel sent by the second network node.

[0037] In one possible implementation, if a fifth channel is provided between the first network node and the second network node, the first network node may receive the third channel status and the fourth channel status sent by the second network node via the fifth channel. That is, the third channel status and the fourth channel status are both transmitted via the fifth channel.

[0038] In one possible implementation, if a sixth channel and a seventh channel are provided between the first network node and the second network node, the first network node may receive the status of the third channel sent by the second network node via the sixth channel, and receive the status of the fourth channel sent by the second network node via the seventh channel. That is, the status of the third channel and the status of the fourth channel are transmitted via the sixth channel and the seventh channel, respectively.

[0039] In one possible implementation, the first network node receiving the status of the third channel sent by the second network node may include receiving status information of the third channel sent by the second network node, where the status information includes the status of the third channel. The first network node may parse the status information of the third channel to obtain the status of the third channel.

[0040] In one possible implementation, the first network node may receive the status information of the third channel sent by the second network node by receiving a first operation administration and maintenance (OAM) code block sent by the second network node, where the first OAM code block carries the status information. The first network node may parse the first OAM code block to obtain the status information of the third channel.

[0041] In a possible implementation, a new OAM code block may be defined to carry the status information of the third channel. In this case, the type field of the first OAM code block is used to indicate that the first OAM code block carries the status information of the third channel.

[0042] In a possible implementation, the first OAM code block may use an existing OAM code block. In a specific example, the first OAM code block may be a first automatic protection switching (APS) code block, and the status information of the third channel is carried through an available field of the first APS code block.

[0043] In one possible implementation, the first network node may receive the state information of the third channel sent by the second network node by receiving a first Ethernet message sent by the second network node, the first Ethernet message including the state information. The first network node may parse the first Ethernet message to obtain the state information of the third channel.

[0044] In one possible implementation, in addition to the status of the third channel, the status information of the third channel may also include fault information about the third channel, where the fault information about the third channel indicates whether a fault has occurred on the third channel. As an example, the fault information about the third channel may include local fault information about the third channel, where the local fault information about the third channel indicates whether a local fault has occurred on the third channel. As another example, the fault information about the third channel may also include second remote fault indication information received via the third channel, where the second remote fault indication information may indicate that a remote fault has occurred on the third channel. In one example, the first network node may verify the third channel status against the fault information about the third channel to determine the rationality of the received third channel status.

[0045] In a possible implementation, in addition to receiving the status of the third channel and the status of the fourth channel sent by the second network node, the first network node may also send the status of the first channel and the status of the second channel to the second network node, so that the second network node can determine the transmission path of the service based on the status of the channel.

[0046] In one possible implementation, if the second channel is in standby status and the target channel fails, if the first network node receives service data via the first channel, the service data may be lost at the first network node. To prevent a remote node of the first network node on the first path from sending service data to the first network node via the first channel, the first network node may send third remote fault indication information via the first channel, so that the network node receiving the third remote fault indication information determines a remote fault and stops sending service data to the first network node via the first channel, thereby avoiding service data loss.

[0047] In one possible implementation, whether it is the third remote fault indication information sent by the first network node via the first channel, the second remote fault indication information received by the second network node via the third channel, or the first remote fault indication information received by the first network node via the first channel, all of them can be carried by the second OAM code block. In other words, the target remote fault indication information can be carried by the second OAM code block, and the target remote fault indication information can be one of the first remote fault indication information, the second remote fault indication information, and the third remote fault indication information.

[0048] In a possible implementation, a new OAM code block may be defined to carry the target remote fault indication information. In this case, the type field of the second OAM code block is used to indicate that the second OAM code block carries the target remote fault indication information.

[0049] In one possible implementation, the second OAM code block may use an existing OAM code block. In a specific example, the second OAM code block may be a basic code block. Accordingly, the target remote fault indication information may be carried by an available field of the basic code block. In one example, the target remote fault indication information may be carried by a reserved field or a remote defect indication (RDI) field of the basic code block. In another specific example, the second OAM code block may be a second APS code block, and the target remote fault indication information may be carried by an available field of the second APS code block.

[0050] In a possible implementation, the first network node may also exchange target OAM messages with other network nodes on the first path. Specifically, the first network node may send or receive target OAM messages through the first channel or the second channel.

[0051] In one example, when the first channel or the second channel is a small-granularity channel, the target OAM message may be an end-to-end small-granularity OAM message. In an embodiment of the present application, when the first network node is P, the first network node may also receive or send an end-to-end small-granularity OAM message through the first channel.

[0052] In another example, the target OAM message may be a newly defined OAM message. In a specific example, the O-code block type field of the target OAM message indicates the message type of the target OAM message. The target OAM message may be an OAM message initiated or terminated at a P node that deploys small-granule technology. In another specific example, the type field of the target OAM message indicates the message type of the target OAM message. The target OAM message may be an OAM message initiated or terminated at a P node that deploys small-granule technology.

[0053] In one possible implementation, if the first channel and the third channel are configured as 1:1 protection switching channels, and the second channel and the fourth channel are also configured as 1:1 protection switching channels, then in one example, the first network node may determine a path including the first channel and / or the second channel as a service transmission path when both the first channel and the second channel are in active status. Specifically, the first network node may determine the first path as the service transmission path. In another example, when the first channel is in active status and the second channel is in standby status, the first network node may determine the path including the first channel as the service transmission path. Specifically, the first network node may determine the third path as the service transmission path. In another example, when the first channel is in standby status and the second channel is in active status, the first network node may determine the path including the second channel as the service transmission path. Specifically, the first network node may determine the fourth path as the service transmission path. In yet another example, when both the first channel and the second channel are in standby status, the first network node may determine the first path as the service transmission path or determine to drop the service.

[0054] In one possible implementation, if the first channel and the third channel are configured as 1:1 protection switching channels, and the second channel and the fourth channel are configured as 1+1 protection switching channels; then, when the status of the first channel and the status of the second channel are both active, the first network node may determine the path including the first channel and / or the second channel as the transmission path of the service. Specifically, the first network node may determine the first path and the third path as the transmission path of the service, and the third path is a unidirectional path, and in the third path, the first network node is the upstream node of the second network node. In another example, when the status of the first channel is active and the status of the second channel is standby, the first network node may determine the path including the first channel as the transmission path of the service. Specifically, the first network node may determine the first path and the third path as the transmission path of the service, and the first path is a unidirectional path, and in the first path, the first channel is the upstream channel of the second channel. In another example, when the state of the first channel is standby and the state of the second channel is active, the first network node may determine the path including the second channel as the transmission path for the service. Specifically, the first network node may determine the fourth path as the transmission path for the service. In yet another example, when the state of the first channel and the state of the second channel are both standby, the first network node may determine the fourth path as the transmission path for the service. The fourth path is a unidirectional path, and in the fourth path, the first network node is a downstream node of the second network node.

[0055] In one possible implementation, if the first channel and the third channel are configured as 1+1 protection switching channels, and the second channel and the fourth channel are configured as 1:1 protection switching channels; then in one example, the first network node may determine the first path and the fourth path as the transmission path for the service when the status of the first channel and the status of the second channel are both active, and the fourth path is a unidirectional path, and in the fourth path, the first network node is the upstream node of the second network node. In another example, the first network node may determine the third path as the transmission path for the service when the status of the first channel is active and the status of the second channel is standby. In another example, the first network node may determine the fourth path and the first path as the transmission path for the service when the status of the first channel is standby and the status of the second channel is active, and the first path is a unidirectional path, and in the first path, the second channel is the upstream channel of the first channel. In another example, the first network node may determine the third path as the transmission path of the service when the status of the first channel and the status of the second channel are both standby, and the third path is a unidirectional path. In the third path, the second network node is an upstream node of the first network node.

[0056] In one possible implementation, if a fifth channel is provided between a first network node and a second network node, and the first channel and the third channel are configured as 1+1 protection switching channels, and the second channel and the fourth channel are also configured as 1+1 protection switching channels, then in one example, the first network node may determine the first path as the transmission path for the service when both the first channel and the second channel are in active status. In another example, the first network node may determine the first path and the third path as the transmission path for the service when both the first channel and the second channel are in standby status, and the first path is a unidirectional path, and the first channel is the upstream channel of the second channel in the first path. In another example, the first network node may determine the fourth path and the first path as the transmission path for the service when both the first channel and the second channel are in standby status, and the first path is a unidirectional path, and the second channel is the upstream channel of the first channel in the first path. In yet another example, the first network node may determine the first path as the transmission path for the service when both the first channel and the second channel are in standby status.

[0057] In one possible implementation, if a sixth channel and a seventh channel are included between a first network node and a second network node, and the first channel and the third channel are configured as 1+1 protection switching channels, and the second channel and the fourth channel are also configured as 1+1 protection switching channels, then in one example, the first network node may determine the first path, the third path, and the fourth path as transmission paths for the service when both the first channel and the second channel are in active state, and the first path is a bidirectional path, the third path and the fourth path are both unidirectional paths, the unidirectional third path includes the seventh channel, and the unidirectional fourth path includes the sixth channel. In another example, the first network node may determine the first path and the third path as transmission paths for the service when the first channel is in active state and the second channel is in standby state, and the first path is a unidirectional path, the third path is a bidirectional path, and in the unidirectional first path, the first channel is an upstream channel of the second channel. In another example, when the state of the first channel is standby and the state of the second channel is active, the first network node may determine the fourth path and the first path as the transmission path for the service, the first path is a unidirectional path and the fourth path is a bidirectional path, and in the unidirectional first path, the second channel is the upstream channel of the first channel. In yet another example, when the state of the first channel and the state of the second channel are both standby, the first network node may determine the third path and the fourth path as the transmission path for the service, the third path and the fourth path are both unidirectional paths, the unidirectional third path includes the sixth channel, and the unidirectional fourth path includes the seventh channel.

[0058] In a third aspect, an embodiment of the present application provides a data processing device, the data processing device being configured to execute the data processing method performed by a first network node as described in any one of the second aspects above. In a specific example, the data processing device may include an acquisition unit and a processing unit. The acquisition unit is configured to acquire a channel state, the channel state including at least one of a state set, the state set including: a first channel state, a second channel state, a third channel state, and a fourth channel state, the first channel and the second channel being connected to the first network node respectively, the first channel and the second channel belonging to a first path, the third channel and the fourth channel being connected to the second network node respectively, the third channel and the fourth channel belonging to a second path, the first channel and the third channel being mutually protection switching channels, and the second channel and the fourth channel being mutually protection switching channels; and the processing unit is configured to determine a service transmission path based on the channel state, the service transmission path being one or more paths in a path set, the path set including: the first path, the second path, the third path, and the fourth path, the third path including the first channel and the fourth channel, and the fourth path including the second channel and the third channel.

[0059] In a possible implementation manner, the first network node and the second network node are the same network node.

[0060] In a possible implementation, the first network node and the second network node are different network nodes, a fifth channel is included between the first network node and the second network node, and the third path and the fourth path also include the fifth channel.

[0061] In a possible implementation manner, the state set further includes the state of the fifth channel.

[0062] In a possible implementation, the first network node and the second network node are different network nodes, a sixth channel and a seventh channel are included between the first network node and the second network node, and both the third path and the fourth path include the sixth channel or the seventh channel, wherein: when the first network node sends a service to the second network node through the third path, the third path includes the seventh channel; when the second network node sends a service to the first network node through the third path, the third path includes the sixth channel; when the first network node sends a service to the second network node through the fourth path, the fourth path includes the sixth channel; when the second network node sends a service to the first network node through the fourth path, the fourth path includes the seventh channel.

[0063] In a possible implementation, the state set further includes the state of the sixth channel and the state of the seventh channel.

[0064] In a possible implementation manner, both the first network node and the second network node are operator edge devices (PEs).

[0065] In a possible implementation manner, the first network node and the second network node are operator intermediate devices.

[0066] In a possible implementation, the first channel, the second channel, the third channel, and the fourth channel are all small-granularity channels; or, the first channel, the second channel, the third channel, and the fourth channel are all metropolitan area transport network (MTN) channels.

[0067] In a possible implementation, the first channel and the third channel are AC links, and the second channel and the fourth channel are small-particle channels; or, the first channel and the third channel are AC links, and the second channel and the fourth channel are MTN channels.

[0068] In one possible implementation, the status of the first channel is determined based on a first factor, where the first factor includes one or more of the following: the status of the third channel, local fault information of the first channel, first remote fault indication information received through the first channel, and the status of the second channel.

[0069] In a possible implementation, if the first network node and the second network node are different network nodes, the first factor also includes: a status of a target channel, where the status of the target channel is used to indicate whether the target channel is faulty; wherein: when a fifth channel is included between the first network node and the second network node, the target channel includes the fifth channel; when a sixth channel and a seventh channel are included between the first network node and the second network node, the target channel includes the sixth channel and the seventh channel.

[0070] In one possible implementation, the first path is a working path, and the status of the first channel is determined as follows: when the status of the third channel is active, the status of the first channel is determined to be standby; or, when local fault information of the first channel indicates that a local fault occurs in the first channel, the status of the first channel is determined to be standby; or, when the first remote fault indication information is received through the first channel, the status of the first channel is determined to be standby; or, when the status of the second channel is standby and the status of the target channel indicates that the target channel has a fault, the status of the first channel is determined to be standby.

[0071] In one possible implementation, the first path is a protection path, and the state of the first channel is determined as follows: when the state of the third channel is standby, determining that the state of the first channel is active; or, when local fault information of the first channel indicates that a local fault occurs on the first channel, determining that the state of the first channel is standby; or, when the first remote fault indication information is received through the first channel, determining that the state of the first channel is standby; when the state of the second channel is standby and the state of the target channel indicates that the target channel has a fault, determining that the state of the first channel is standby.

[0072] In a possible implementation manner, the acquiring unit is configured to receive the status of the third channel and the status of the fourth channel sent by the second network node.

[0073] In a possible implementation, if a fifth channel is provided between the first network node and the second network node, the acquiring unit is configured to receive the status of the third channel and the status of the fourth channel sent by the second network node through the fifth channel.

[0074] In a possible implementation, if a sixth channel and a seventh channel are included between the first network node and the second network node, the acquiring unit is configured to: receive the status of the third channel sent by the second network node through the sixth channel; and receive the status of the fourth channel sent by the second network node through the seventh channel.

[0075] In a possible implementation manner, the acquiring unit is configured to receive status information of the third channel sent by the second network node, where the status information includes a status of the third channel.

[0076] In a possible implementation, the acquiring unit is configured to receive a first Operation, Administration, and Maintenance (OAM) code block sent by the second network node, where the first OAM code block carries the status information.

[0077] In a possible implementation manner, the type field of the first OAM code block indicates that the first OAM code block carries the status information.

[0078] In a possible implementation, the first OAM code block is a first automatic protection switching APS code block, and the status information is carried by an available field of the first APS code block.

[0079] In a possible implementation manner, the acquiring unit is configured to receive a first Ethernet message sent by the second network node, where the first Ethernet message includes the state information.

[0080] In a possible implementation, the status information further includes: local fault information of the third channel, and / or second remote fault indication information received through the third channel.

[0081] In a possible implementation manner, the apparatus further includes: a sending unit, configured to send the state of the first channel and the state of the second channel to the second network node.

[0082] In a possible implementation, the apparatus further includes: a sending unit configured to send third remote fault indication information through the first channel when the state of the second channel is standby and the state of the target channel indicates that the target channel is faulty.

[0083] In a possible implementation, the target fault indication information is carried by the second OAM code block, and the target fault indication information includes the first remote fault indication information, the second remote fault indication information, or the third remote fault indication information.

[0084] In a possible implementation manner, the type field of the second OAM code block indicates that the second OAM code block carries the target remote fault indication information.

[0085] In a possible implementation, the second OAM code block is a basic code block, and the target remote fault indication information is carried through a reserved field or a remote defect indication RDI field of the basic code block.

[0086] In a possible implementation manner, the second OAM code block is a second APS code block, and the target remote fault indication information is carried by an available field of the second APS code block.

[0087] In one possible implementation, the device further includes: a sending unit, configured to send or receive a target OAM message through the first channel, wherein: the target OAM message is an end-to-end small-granule channel OAM message; or, the O code block type field of the target OAM message indicates a message type of the target OAM message; or, the type field of the target OAM code block indicates a message type of the target OAM message.

[0088] In one possible implementation, the first channel and the third channel are configured as 1:1 protection switching channels, and the second channel and the fourth channel are also configured as 1:1 protection switching channels; the processing unit is configured to: when the status of the first channel and the status of the second channel are both active, determine the first path as the transmission path of the service; or, when the status of the first channel is active and the status of the second channel is standby, determine the third path as the transmission path of the service; or, when the status of the first channel is standby and the status of the second channel is active, determine the fourth path as the transmission path of the service; or, when the status of the first channel and the status of the second channel are both standby, determine the first path as the transmission path of the service or determine to discard the service.

[0089] In a possible implementation, the first channel and the third channel are configured as 1:1 protection switching channels, and the second channel and the fourth channel are configured as 1+1 protection switching channels. The processing unit is configured to: when the first channel and the second channel are both in active states, determine the first path and the third path as transmission paths for the service, and the third path is a unidirectional path, and in the third path, the first network node is an upstream node of the second network node; or, when the first channel is active and the second channel is in standby state, determine the first path and the third path as transmission paths for the service, and the first path is a unidirectional path, and in the first path, the first channel is an upstream channel of the second channel; or, when the first channel is standby and the second channel is active, determine the fourth path as the transmission path for the service; or, when the first channel and the second channel are both in standby state, determine the fourth path as the transmission path for the service, the fourth path is a unidirectional path, and in the fourth path, the first network node is a downstream node of the second network node.

[0090] In a possible implementation, the first channel and the third channel are configured as 1+1 protection switching channels, and the second channel and the fourth channel are configured as 1:1 protection switching channels; the processing unit is configured to: when the first channel and the second channel are both in active state, determine the first path and the fourth path as transmission paths for the service, and the fourth path is a unidirectional path, and in the fourth path, the first network node is an upstream node of the second network node; or, when the first channel is in active state and the second channel is in standby state, determine the third path as the transmission path for the service; or, when the first channel is in standby state and the second channel is in active state, determine the fourth path and the first path as transmission paths for the service, the first path is a unidirectional path, and in the first path, the second channel is an upstream channel of the first channel; or, when the first channel and the second channel are both in standby state, determine the third path as the transmission path for the service, and the third path is a unidirectional path, and in the third path, the second network node is an upstream node of the first network node.

[0091] In a possible implementation, the first channel and the third channel are configured as 1+1 protection switching channels, and the second channel and the fourth channel are also configured as 1+1 protection switching channels; the processing unit is configured to: when the status of the first channel and the status of the second channel are both active, determine the first path as the transmission path of the service; or, when the status of the first channel is active and the status of the second channel is standby, determine the first path and the third path as the transmission paths of the service, and the first path is a unidirectional path, and in the first path, the first channel is the upstream channel of the second channel; or, when the status of the first channel is standby and the status of the second channel is active, determine the fourth path and the first path as the transmission paths of the service, the first path is a unidirectional path, and in the first path, the second channel is the upstream channel of the first channel; or, when the status of the first channel and the status of the second channel are both standby, determine the first path as the transmission path of the service.

[0092] In a possible implementation, the first channel and the third channel are configured as 1+1 protection switching channels, and the second channel and the fourth channel are also configured as 1+1 protection switching channels; the processing unit is configured to: when the state of the first channel and the state of the second channel are both active, determine the first path, the third path, and the fourth path as the transmission path of the service, and the first path is a bidirectional path, the third path and the fourth path are both unidirectional paths, the unidirectional third path includes the seventh channel, and the unidirectional fourth path includes the sixth channel; or, when the state of the first channel is active and the state of the second channel is standby, determine the first path and the third path as the transmission path of the service, and the first path is a unidirectional path, the third path is a bidirectional path, and in the unidirectional first path, the first channel is the upstream channel of the second channel; or, when the state of the first channel is standby and the state of the second channel is active, the fourth path and the first path are determined as the transmission paths of the service, the first path is a unidirectional path and the fourth path is a bidirectional path, and in the unidirectional first path, the second channel is the upstream channel of the first channel; or, when the state of the first channel and the state of the second channel are both standby, the third path and the fourth path are determined as the transmission paths of the service, the third path and the fourth path are both unidirectional paths, the unidirectional third path includes the sixth channel, and the unidirectional fourth path includes the seventh channel.

[0093] In a fourth aspect, an embodiment of the present application provides a data processing device, comprising: a communication interface and a processor. According to the communication interface and the processor, the communication device executes any one of the methods described in the second aspect above.

[0094] In one specific design, the data processing device may be a chip, the communication interface includes an interface circuit, and the processor includes a processing circuit. The interface circuit may include an input circuit and an output circuit. The processing circuit is configured to receive signals via the input circuit and transmit signals via the output circuit, thereby implementing any implementation of any aspect of the second aspect.

[0095] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, including instructions or a computer program, which, when run on a processor, executes the method described in any one of the second aspects above.

[0096] In a sixth aspect, an embodiment of the present application provides a computer program product, including a computer program product that, when running on a processor, executes the method described in the second aspect and any one of the second aspects above.

[0097] In a seventh aspect, an embodiment of the present application provides a chip system, which may include a processor. The processor is coupled to a memory and may be used to execute any one of the embodiments of the second aspect above. Optionally, the chip system also includes a memory. The memory is used to store a computer program (also referred to as code or instructions). The processor is used to call and run the computer program from the memory, so that the device equipped with the chip system executes any one of the embodiments of the second aspect.

[0098] In an eighth aspect, embodiments of the present application provide a data processing device comprising: an interface circuit and a processing circuit. The interface circuit may include an input circuit and an output circuit. The processing circuit is configured to receive signals via the input circuit and transmit signals via the output circuit, thereby implementing any of the embodiments of the second aspect. In one specific implementation, the processing circuit includes a circuit for implementing operations performed by the Flexe shim layer.

[0099] In a specific implementation, the data processing device may be a chip, the input circuit may be an input pin, the output circuit may be an output pin, and the processing circuit may be a transistor, a gate circuit, a trigger, or various logic circuits. The input signal received by the input circuit may be, for example, but not limited to, received and input by a receiver, and the signal output by the output circuit may be, for example, but not limited to, output to and transmitted by a transmitter. The input circuit and the output circuit may be the same circuit, which functions as an input circuit and an output circuit at different times. This application does not limit the specific implementation of the processor and various circuits.

[0100] In another implementation, the data processing device may be a component of the first network node, such as an integrated circuit product such as a system-on-chip (SoC) or a communication chip. The interface circuit may be an input / output interface, interface circuit, output circuit, input circuit, pin, or related circuit on the chip or chip system. The processing circuit may be a logic circuit on the chip. BRIEF DESCRIPTION OF THE DRAWINGS

[0101] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0102] FIG1a is a schematic diagram of an exemplary application scenario provided by an embodiment of the present application;

[0103] FIG1b is a schematic diagram of another exemplary application scenario provided by an embodiment of the present application;

[0104] FIG1c is a schematic diagram of another exemplary application scenario provided in an embodiment of the present application;

[0105] FIG1d is a schematic diagram of another exemplary application scenario provided in an embodiment of the present application;

[0106] FIG1e is a schematic diagram of another exemplary application scenario provided in an embodiment of the present application;

[0107] FIG1f is a schematic diagram of another exemplary application scenario provided by an embodiment of the present application;

[0108] FIG2a is a schematic diagram of a transmission path provided in an embodiment of the present application;

[0109] FIG2 b is a schematic diagram of another transmission path provided in an embodiment of the present application;

[0110] FIG2c is a schematic diagram of another transmission path provided in an embodiment of the present application;

[0111] FIG2 d is a schematic diagram of another transmission path provided in an embodiment of the present application;

[0112] FIG3 is a flow chart of a method for determining a transmission path for a service provided in an embodiment of the present application;

[0113] FIG4a is a schematic diagram of a flow chart of determining the state of a first channel according to an embodiment of the present application;

[0114] FIG4 b is a schematic diagram of a flow chart of determining the state of a first channel according to an embodiment of the present application;

[0115] FIG4c is a schematic structural diagram of a first OAM code block provided in an embodiment of the present application;

[0116] FIG4 d is a schematic structural diagram of another first OAM code block provided in an embodiment of the present application;

[0117] FIG4e is a schematic structural diagram of a first APS code block provided in an embodiment of the present application;

[0118] FIG4f is a schematic structural diagram of another first APS code block provided in an embodiment of the present application;

[0119] FIG4g is a schematic diagram of the structure of a first Ethernet message provided in an embodiment of the present application;

[0120] FIG4h is a schematic structural diagram of a second OAM code block provided in an embodiment of the present application;

[0121] FIG4i is a schematic structural diagram of another second OAM code block provided in an embodiment of the present application;

[0122] FIG4j is a schematic diagram of the structure of a basic code block provided in an embodiment of the present application;

[0123] FIG4k is a schematic diagram of the structure of another basic code block provided in an embodiment of the present application;

[0124] FIG5a is a schematic diagram of a technical architecture provided by an embodiment of the present application;

[0125] FIG5 b is a schematic diagram of another technical architecture provided by an embodiment of the present application;

[0126] FIG5c is a schematic diagram of another technical architecture provided by an embodiment of the present application;

[0127] FIG5 d is a schematic diagram of another technical architecture provided by an embodiment of the present application;

[0128] FIG6a is a schematic diagram of an exemplary application scenario provided in an embodiment of the present application;

[0129] FIG6b is a schematic diagram of an exemplary application scenario provided in an embodiment of the present application

[0130] FIG6c is a schematic diagram of an exemplary application scenario provided in an embodiment of the present application

[0131] FIG6d is a schematic diagram of an exemplary application scenario provided in an embodiment of the present application

[0132] FIG6e is a schematic diagram of an exemplary application scenario provided in an embodiment of the present application;

[0133] FIG6f is a schematic diagram of an exemplary application scenario provided in an embodiment of the present application;

[0134] FIG6g is a schematic diagram of an exemplary application scenario provided in an embodiment of the present application;

[0135] FIG6h is a schematic diagram of an exemplary application scenario provided in an embodiment of the present application;

[0136] FIG7a is a schematic diagram of an exemplary application scenario provided by an embodiment of the present application;

[0137] FIG7 b is a schematic diagram of another exemplary application scenario provided in an embodiment of the present application;

[0138] FIG7c is a schematic diagram of another exemplary application scenario provided in an embodiment of the present application;

[0139] FIG7 d is a schematic diagram of another exemplary application scenario provided in an embodiment of the present application;

[0140] FIG7e is a schematic diagram of another exemplary application scenario provided in an embodiment of the present application;

[0141] FIG7f is a schematic diagram of another exemplary application scenario provided by an embodiment of the present application;

[0142] FIG8 is a schematic structural diagram of a data processing device provided in an embodiment of the present application;

[0143] FIG9 is a schematic structural diagram of a data processing device provided in an embodiment of the present application;

[0144] FIG10 is a schematic structural diagram of a data processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0145] The embodiments of the present application provide a data processing method, device, and communication system that can reduce the phenomenon of service traffic transmission interruption.

[0146] In one example, a communication network may apply FlexE technology. In this case, a path used to transmit service traffic in the communication network may be an MTN path. The MTN path may be understood as a path including an MTN channel.

[0147] In another example, a communication network may carry small-granularity services. In this case, a path in the communication network used to transmit service traffic may be a small-granularity path, which may be understood as a path including a small-granularity channel.

[0148] Next, we will briefly introduce the relevant content of FlexE and small particle business.

[0149] Flexible Ethernet group (FlexE group): One or more PHYs included in each FlexE group. When multiple PHYs are included, the multiple PHYs are physically independent. Network devices that apply FlexE technology can use the PHY number to identify which PHYs are included in a FlexE group to achieve logical bundling of multiple PHYs. For example, each PHY number can be identified by a number between 1 and 254, and 0 and 255 are reserved numbers. A PHY number can correspond to an interface on a network device. The same number must be used to identify the same PHY between two adjacent network devices. The number of each PHY included in a FlexE group does not have to be consecutive. Normally, there is one FlexE group between two network devices, but this application does not limit the existence of only one FlexE group between two network devices, that is, there can also be multiple FlexE groups between two network devices. A PHY can be used to carry at least one client, and a client can be transmitted on at least one PHY. FlexE can support the mapping and transmission of any number of different FlexE clients on any group of PHYs, thereby realizing functions such as PHY bundling, channelization and sub-rate.

[0150] FlexE Client: corresponds to various user interfaces or bandwidths of the network. FlexE Client represents the customer data stream transmitted in a specified time slot (one time slot or multiple time slots) on the FlexE Group. A FlexE Group can carry multiple FlexE Clients, and a FlexE Client can correspond to one to multiple user service data streams (also called MAC Client). The FlexE client can be flexibly configured according to bandwidth requirements and supports Ethernet media access control (MAC) data streams of various rates (such as 10G, 40G, n*25G data streams, and even non-standard rate data streams). For example, the data stream can be passed to the FlexE shim layer through 64B / 66B encoding. Customers sent through the same FlexE group need to share the same clock, and these customers need to adapt according to the allocated time slot rate. In this application, a FlexE client (also called a FlexE client interface) can be used to transmit the service data stream of the corresponding FlexE client. The FlexE client interface is a logical interface. Each FlexE interface can be logically divided into one or more FlexE client interfaces. Each FlexE interface can be divided into multiple time slots in the time domain, and each FlexE client interface occupies at least one of these time slots. The 64 / 66B structure refers to a 66-bit data code block, with the first two bits being synchronization bits and the remaining 64 bits being data bits. At the Physical Coding Sublayer (PCS), the 64 / 66B structure can be extracted using the first two synchronization bits.

[0151] FlexE shim: As an additional logical layer inserted between the MAC and PHY (PCS) in the traditional Ethernet architecture, it is the core architecture for implementing FlexE technology based on the timeslot distribution mechanism. For the transmitter, the FlexE shim's main function is to encapsulate data into pre-allocated timeslots. Then, according to the FlexE timeslot table, each allocated timeslot is mapped to the PHY in the FlexE group for transmission. Each timeslot is mapped to a PHY in the FlexE group. Taking 100GE PHY as an example, the FlexE shim layer can divide each 100GE PHY in the FlexE group into a data bearer channel of 20 timeslots, with each slot corresponding to a bandwidth of 5Gbps. Every time the PHY sends 64 / 66B of data (1023*20 slots), it inserts a FlexE overhead (OH), which instructs the receiver how to parse the received data.

[0152] Small-grained services: In some embodiments, the slot corresponding to the large bandwidth can be further divided into multiple sub-slots to carry customer services with smaller bandwidth requirements. These services are also referred to as small-grained services. For example, the large bandwidth can be understood as the bandwidth corresponding to the service layer of the small-grained service. For example, when the service layer for the small-grained service is the MTN channel layer, the bandwidth of the MTN channel layer is 5Gbps. The slot corresponding to the large bandwidth of 5Gbps is further divided at a 10Mbps granularity into 480 sub-slots. These 480 sub-slots are used to carry small-grained services. For example, the first, third, and fifth sub-slots of these 480 sub-slots are used to carry small-grained service 1. For another example, when the service layer for the small-grained service is the 10GE Ethernet physical layer, the corresponding large bandwidth is further divided into multiple sub-slots at a finer granularity to carry the small-grained service. As can be seen from this, small-granular bandwidth has a finer granularity. Small-granular services refer to services with relatively small bandwidth requirements. For example, a dedicated power line service requires 10Mbps of bandwidth. In this case, small-granular technology can be used to allocate a specific bandwidth to carry the service traffic of this dedicated power line service. This dedicated power line service is a small-granular service.

[0153] When transmitting small-granularity services, for the transmitting end, in one example, the FlexE shim can encapsulate the data into pre-divided sub-slots according to the small-granularity time slot configuration for transmission. For the receiving end, the FlexE shim can restore the data received through the slot with a corresponding bandwidth of 5 Gbps into the original small-granularity service data according to the small-granularity time slot configuration and continue to transmit it. In another example, for the transmitting end, the MTN path layer adaptation function can be used to encapsulate the data into the corresponding sub-slot for transmission. For the receiving end, the MTN path layer adaptation function can be used to restore the data received through the slot with a corresponding bandwidth of 5 Gbps into the original small-granularity service data and continue to transmit it. In one example, the small-granularity service data can be carried in a fine granularity unit (FGU) base frame. In one example, the small-granularity unit can also be referred to as a fine granularity basic unit (fgBU). In the following description, the two can be used interchangeably.

[0154] Regarding the FlexE OH insertion method and the overhead frame structure, for a specific implementation, please refer to the relevant description of FlexE in the Optical Internetworking Forum (OIF), which is not detailed here.

[0155] Currently, to provide better quality of service, multiple paths can be provided for transmitting service traffic. In one example, a primary path and a backup path can be provided for a service, and the primary and backup paths can serve as protection switching paths for each other. In a specific example, when the primary path is functioning properly, service traffic can be transmitted via the primary path; when the primary path fails, service traffic can be transmitted via the backup path. However, with this approach, if both the primary and backup paths fail, service traffic will be interrupted. This can be understood by referring to Figures 1a to 1f.

[0156] Figure 1a is a schematic diagram of an exemplary application scenario provided by an embodiment of the present application. As shown in Figure 1a, the business traffic between the customer edge device (customer edge, CE) 1 and CE2 can be transmitted through two paths. Taking CE1 sending business traffic to CE2 as an example, CE1 can forward the business traffic to PE1, and PE1 can use the path 101 represented by the solid line in Figure 1a to forward the business traffic to PE2, or use the path 102 represented by the dotted line in Figure 1a to forward the business traffic to PE2. Further, PE2 forwards the received business traffic to CE2. In one example, path 101 and path 102 can be each other's protection switching paths. If both path 101 and path 102 fail, for example, the failure shown in Figure 1a occurs, the business traffic transmission is interrupted.

[0157] Figure 1b is a schematic diagram of another exemplary application scenario provided by an embodiment of the present application. As shown in Figure 1b, the service traffic between CE1 and CE2 can be transmitted through two paths. Taking CE1 sending service traffic to CE2 as an example, CE1 can forward the service traffic to PE1, and PE1 can use the path 103 represented by the solid line in Figure 1b to forward the service traffic to CE2, or use the path 104 represented by the dotted line in Figure 1b to forward the service traffic to CE2. In one example, path 103 and path 104 can be protection switching paths for each other. If both path 103 and path 104 fail, for example, the failure shown in Figure 1b occurs, the service traffic transmission is interrupted.

[0158] Figure 1c is a schematic diagram of another exemplary application scenario provided by an embodiment of the present application. As shown in Figure 1c, service traffic between CE1 and CE2 can be transmitted via two paths. Taking CE1 sending service traffic to CE2 as an example: CE1 can forward the service traffic to CE2 using path 105 represented by a solid line in Figure 1c, or it can forward the service traffic to CE2 using path 106 represented by a dashed line in Figure 1c. If both path 105 and path 106 fail, for example, the failure shown in Figure 1c, service traffic transmission is interrupted.

[0159] Figure 1d is another schematic diagram of an exemplary application scenario provided by an embodiment of the present application. As shown in Figure 1d, the service traffic between CE1 and CE2 can be transmitted through two paths. Take CE1 sending service traffic to CE2 as an example: CE1 can forward the service traffic to PE1, and PE1 can use the path 107 represented by the solid line in Figure 1d to forward the service traffic to CE2, or use the path 108 represented by the dotted line in Figure 1d to forward the service traffic to CE2. In one example, path 107 and path 108 can be protection switching paths for each other. If both path 107 and path 108 fail, for example, the failure shown in Figure 1d occurs, the service traffic transmission is interrupted.

[0160] Figure 1e is a schematic diagram of another exemplary application scenario provided by an embodiment of the present application. As shown in Figure 1e , service traffic between CE1 and CE2 can be transmitted via path 109 or path 110. In one example, path 109 and path 110 can serve as protection switching paths for each other. If both path 109 and path 110 fail, such as the failure shown in Figure 1e , service traffic transmission is interrupted.

[0161] Figure 1f is a schematic diagram of another exemplary application scenario provided by an embodiment of the present application. As shown in Figure 1f, the service traffic between CE1 and CE2 can be transmitted through two paths. Taking CE1 sending service traffic to CE2 as an example, CE1 can forward the service traffic to PE1, and PE1 can use the path 111 represented by the solid line in Figure 1f to forward the service traffic to PE2, or use the path 112 represented by the dotted line in Figure 1f to forward the service traffic to PE2. Furthermore, PE2 forwards the received service traffic to CE2. In one example, path 111 and path 112 can be protection switching paths for each other. If both path 111 and path 112 fail, for example, the failure shown in Figure 1f occurs, the service traffic transmission is interrupted.

[0162] In order to solve the above problems, an embodiment of the present application provides a communication system, which can be applied to the network scenarios shown in Figures 1a to 1f above.

[0163] The communication system provided in an embodiment of the present application includes a target network. In this embodiment of the present application, the target network includes at least one subnetwork domain, the at least one subnetwork domain includes a first subnetwork domain, the first subnetwork domain includes a first network node and a second network node, the first network node belongs to a first path, and the second network node belongs to a second path. In a specific example, the first path and the second path can serve as protection switching paths for each other. In another specific example, the first path and the second path can serve as load sharing paths for each other.

[0164] The first path includes a first channel and a second channel connected to the first network node. The first channel and the second channel can be data transmission channels between the first network node and its upstream and downstream nodes on the first path, respectively. For example, the first channel is the channel between the first network node and its upstream node on the first path, and the second channel is the channel between the first network node and its downstream node on the first path. In another example, the first channel is the channel between the first network node and its downstream node on the first path, and the second channel is the channel between the first network node and its upstream node on the first path.

[0165] The second path includes a third channel and a fourth channel connected to the second network node. The third channel and the fourth channel can be data transmission channels between the second network node and its upstream and downstream nodes on the second path, respectively. For example, the third channel is the channel between the second network node and its upstream node on the second path, and the fourth channel is the channel between the second network node and its downstream node on the second path. In another example, the third channel is the channel between the second network node and its downstream node on the second path, and the fourth channel is the channel between the second network node and its upstream node on the second path.

[0166] In an embodiment of the present application, the first channel and the third channel are each other's protection switching channels, and the second channel and the fourth channel are also each other's protection switching channels. In one example, when the first channel is a channel between the first network node and its upstream node on the first path, the third channel is a channel between the second network node and its upstream node on the second path. Correspondingly, when the second channel is a channel between the first network node and its downstream node on the first path, the fourth channel is a channel between the second network node and its downstream node on the second path. In another example, when the first channel is a channel between the first network node and its downstream node on the first path, the third channel is a channel between the second network node and its downstream node on the second path. Correspondingly, when the second channel is a channel between the first network node and its upstream node on the first path, the fourth channel is a channel between the second network node and its upstream node on the second path.

[0167] In one example, the first network node and the second network node may be different network nodes. For example, when the target network corresponds to the network for transmitting service traffic between CE1 and CE2 in Figures 1a to 1e, the first network node and the second network node are different network nodes.

[0168] In an example, when the first network node and the second network node are different network nodes, a fifth channel may be included between the first network node and the second network node, and service traffic may be transmitted between the first network node and the second network node through the fifth channel.

[0169] In another example, when the first network node and the second network node are different network nodes, a sixth channel and a seventh channel may be included between the first network node and the second network node, and business traffic can be transmitted between the first network node and the second network node through the sixth channel and / or the seventh channel.

[0170] In some embodiments, when the target network corresponds to the network used to transmit traffic between CE1 and CE2 in FIG. 1a , the first subnetwork domain may correspond to subnet 1, subnet 2, or subnet 3 shown in FIG. 1a . The first path may be path 101 shown in FIG. 1a , and the second path may be path 102 shown in FIG. In this case, the first network node and the second network node may both be P. In one example, the first channel, the second channel, the third channel, and the fourth channel may all be MTN channels. In this case, traffic between CE1 and CE2 may be transmitted via the MTN channels in the target network. Accordingly, if a fifth channel is included between the first network node and the second network node, the fifth channel may also be an MTN channel. If a sixth channel and a seventh channel are included between the first network node and the second network node, the sixth channel and the seventh channel may also be MTN channels. Traffic between the first network node and the second network node may be transmitted via the MTN channels. In another example, the first channel, the second channel, the third channel, and the fourth channel may all be small-granularity channels. In this case, traffic between CE1 and CE2 may be transmitted via the small-granularity channels in the target network. Correspondingly, if the first network node and the second network node include a fifth channel, the fifth channel can also be a small-granularity channel. If the first network node and the second network node include a sixth channel and a seventh channel, the sixth channel and the seventh channel can also be small-granularity channels. The business traffic between the first network node and the second network node can be transmitted through the small-granularity channel.

[0171] In one specific example, the first network node may correspond to P1 shown in Figure 1a, and the second network node may correspond to P2 shown in Figure 1a. In this case, the first channel may correspond to channel ① shown in Figure 1a, the second channel may correspond to channel ② shown in Figure 1a, the third channel may correspond to channel ③ shown in Figure 1a, and the fourth channel may correspond to channel ④ shown in Figure 1a. The fifth channel may correspond to channel ⑨ shown in Figure 1a. In another specific example, the first network node may be P3 shown in Figure 1a, and the second network node may be P4 shown in Figure 1b.

[0172] In other embodiments, when the target network corresponds to the network used to transmit service traffic between CE1 and CE2 in Figure 1b , the first subnetwork domain may correspond to subnet 1, subnet 2, or subnet 3 shown in Figure 1b . The first path may be path 103 shown in Figure 1b , and the second path may be path 104 shown in Figure 1b . In one example, the first network node and the second network node may both be P. In a specific example, the first network node may correspond to P1 shown in Figure 1b , the second network node may correspond to P2 shown in Figure 1b , the first channel may correspond to channel ① shown in Figure 1b , the second channel may correspond to channel ② shown in Figure 1b , the third channel may correspond to channel ③ shown in Figure 1b , the fourth channel may correspond to channel ④ shown in Figure 1b , and the fifth channel may correspond to channel ⑨ shown in Figure 1b . In another specific example, the first network node may also be P3 shown in Figure 1b , and the second network node may also be P4 shown in Figure 1b . In this case: In one example, the first channel, the second channel, the third channel, and the fourth channel may all be MTN channels, and accordingly, the fifth channel is also an MTN channel. In another example, the first channel, the second channel, the third channel, and the fourth channel can all be small-granule channels, and accordingly, the fifth channel is also a small-granule channel. In another example, the first network node and the second network node can both be PEs. In a specific example, the first network node can correspond to PE2 shown in Figure 1b, and the second network node can correspond to PE3 shown in Figure 1b. The first channel can, for example, correspond to channel ⑤ shown in Figure 1b, the second channel can correspond to channel ⑥ shown in Figure 1b, the third channel can correspond to channel ⑦ shown in Figure 1b, the fourth channel can correspond to channel ⑧ shown in Figure 1b, and the fifth channel can correspond to channel ⑩ shown in Figure 1b. For this case: in an example, the first channel and the third channel can both be MTN channels, the second channel and the fourth channel can be AC ​​links, and accordingly, the fifth channel is an MTN channel. In another example, the first channel and the third channel can both be small-granule channels, the second channel and the fourth channel can be AC ​​links, and accordingly, the fifth channel is a small-granule channel.

[0173] In other embodiments, when the target network corresponds to the network used to transmit service traffic between CE1 and CE2 in Figure 1c, the first subnetwork domain may correspond to subnet 1, subnet 2, or subnet 3 shown in Figure 1c. The first path may be path 105 shown in Figure 1c, and the second path may be path 106 shown in Figure 1c. In one example, the first network node and the second network node may both be PEs. In a specific example, the first network node may correspond to PE1 shown in Figure 1c, the second network node may correspond to PE2 shown in Figure 1c, the first channel may correspond to channel ① shown in Figure 1c, the second channel may correspond to channel ② shown in Figure 1c, the third channel may correspond to channel ③ shown in Figure 1c, the fourth channel may correspond to channel ④ shown in Figure 1c, and the fifth channel may correspond to channel ⑨ shown in Figure 1c. In one example, the first and third channels may both be AC ​​links, the second and fourth channels may both be MTN channels, and accordingly, the fifth channel is an MTN channel. In another example, the first and third channels may both be AC ​​links, the second and fourth channels may both be small-granularity channels, and accordingly, the fifth channel is a small-granularity channel. In another specific example, the first network node may also be PE3 shown in Figure 1c, and the second network node may also be PE4 shown in Figure 1c, which will not be repeated here. In another example, the first network node and the second network node may both be P. In a specific example, the first network node may correspond to P1 shown in Figure 1c, the second network node may correspond to P2 shown in Figure 1c, the first channel may correspond to channel ⑤ shown in Figure 1c, the second channel may correspond to channel ⑥ shown in Figure 1c, the third channel may correspond to channel ⑦ shown in Figure 1c, the fourth channel may correspond to channel ⑧ shown in Figure 1c, and the fifth channel may correspond to channel ⑩ shown in Figure 1c. For this case, in one example, the first channel, the second channel, the third channel, and the fourth channel may all be MTN channels, and the fifth channel may also be an MTN channel. In another example, the first channel, the second channel, the third channel, and the fourth channel may all be small-granularity channels, and the fifth channel may also be an MTN channel.

[0174] In some further embodiments, when the target network corresponds to the network used to transmit service traffic between CE1 and CE2 in Figure 1d, the first subnetwork domain may correspond to subnet 1 shown in Figure 1d. The first path may be path 107 shown in Figure 1d, the second path may be path 108 shown in Figure 1d, and the first network node and the second network node may both be PEs. In a specific example, the first network node may correspond to PE2 shown in Figure 1d, the second network node may correspond to PE3 shown in Figure 1d, the first channel may correspond to channel ① shown in Figure 1d, the second channel may correspond to channel ② shown in Figure 1d, the third channel may correspond to channel ③ shown in Figure 1d, the fourth channel may correspond to channel ④ shown in Figure 1d, and the fifth channel may correspond to channel ⑨ shown in Figure 1d. In one example, the first and third channels may both be MTN channels, the second and fourth channels may both be AC ​​links, and accordingly, the fifth channel is an MTN channel. In another example, the first and third channels may both be small-granularity channels, the second and fourth channels may both be AC ​​links, and accordingly, the fifth channel is a small-granularity channel.

[0175] In some further embodiments, when the target network corresponds to the network used to transmit service traffic between CE1 and CE2 in Figure 1e, the first subnetwork domain may correspond to subnet 1 shown in Figure 1e. The first path may be path 109 shown in Figure 1e, the second path may be path 110 shown in Figure 1e, and the first network node and the second network node may both be PEs. In a specific example, the first network node may correspond to PE1 shown in Figure 1e, the second network node may correspond to PE2 shown in Figure 1e, the first channel may correspond to channel ① shown in Figure 1e, the second channel may correspond to channel ② shown in Figure 1e, the third channel may correspond to channel ③ shown in Figure 1e, the fourth channel may correspond to channel ④ shown in Figure 1e, and the fifth channel may correspond to channel ⑨ shown in Figure 1e. In one example, the first and third channels may both be AC ​​links, the second and fourth channels may both be MTN channels, and accordingly, the fifth channel is an MTN channel. In another example, the first and third channels may both be AC ​​links, the second and fourth channels may both be small-granule channels, and accordingly, the fifth channel is a small-granule channel. In another specific example, the first network node may correspond to PE3 shown in Figure 1e, and the second network node may correspond to PE4 shown in Figure 1e. In this case, regarding the first channel, the second channel, the third channel, and the fourth channel, please refer to the relevant description of Figure 1d above, and will not be repeated here.

[0176] Although in the above FIG1a to FIG1e, the first network node and the second network node each show one channel (channel 9), in some other examples, multiple channels may be included between the first network node and the second network node. For example, in the scenario shown in FIG1a, the first network node and the second network node do not include the channel 9 shown in FIG1a, but include channels 9 and 10. and channel ,, accordingly, the sixth channel and the seventh channel can correspond to the channel and channel In this case, in one example, the first channel, the second channel, the third channel, and the fourth channel may all be MTN channels, and accordingly, the sixth channel and the seventh channel may also be MTN channels. In another example, the first channel, the second channel, the third channel, and the fourth channel may all be small-particle channels, and accordingly, the sixth channel and the seventh channel may also be small-particle channels.

[0177] In one example, the first network node and the second network node may be the same network node. For example, when the target network corresponds to the network for transmitting service traffic between CE1 and CE2 in Figure 1f, the first network node and the second network node are the same network node. In a specific example, the first network node and the second network node may both correspond to P1 shown in Figure 1f, the first channel may correspond to channel ① shown in Figure 1f, the second channel may correspond to channel ② shown in Figure 1f, the third channel may correspond to channel ③ shown in Figure 1f, and the fourth channel may correspond to channel ④ shown in Figure 1f. In one example, the first channel, the second channel, the third channel and the fourth channel may all be MTN channels. In another example, the first channel, the second channel, the third channel and the fourth channel may all be small-granular channels. In another specific example, the first network node and the second network node may both correspond to P2 shown in Figure 1f, which will not be described in detail here.

[0178] In the embodiment of the present application, the state of the first channel, the state of the second channel, the state of the third channel, and the state of the fourth channel can be used to constitute a state set, and the state set can include at least the state of the first channel, the state of the second channel, the state of the third channel, and the state of the fourth channel. Specifically, for any of the first channel, the second channel, the third channel, and the fourth channel, the state of the channel can refer to the active or standby state of the channel, and the active or standby state can be active or standby.

[0179] In one example, the first network node can determine a service transmission path based on the state of at least one channel in the state set. Using this solution, the first network node can determine the service transmission path based on the channel state, ensuring that the determined transmission path matches the channel state. Consequently, when transmitting service traffic along the determined transmission path, interruptions in service traffic transmission can be effectively avoided.

[0180] In an embodiment of the present application, the transmission path of the service may include at least one path in a path set, and the path set includes a first path, a second path, a third path, and a fourth path. In one example, the third path includes a first channel and a fourth channel, and the fourth path includes a second channel and a third channel. In other words, the third path includes a portion of the channel on the first path (the first channel) and a portion of the channel on the second path (the fourth channel), and the fourth path also includes a portion of the channel on the first path (the second channel) and a portion of the channel on the second path (the third channel). In this way, when both the first path and the second path fail, the first network node can determine a transmission path including a portion of the channel on the first path and a portion of the channel on the second path, so that the service traffic can bypass the faulty links on the first path and the second path, thereby ensuring that the service traffic is forwarded to its destination node, thereby avoiding interruption of service traffic transmission.

[0181] In one example, when the first network node and the second network node are the same network node, the path set may be a first path set, which includes a first path, a second path, a third path, and a fourth path. When the first network node and the second network node are different network nodes, the path set may be a second path set, which includes the first path, the third path, and the fourth path.

[0182] As described above, when the first network node and the second network node are different network nodes, in one example, a fifth channel is provided between the first network node and the second network node, and traffic between the first network node and the second network node can be transmitted via the fifth channel. In this case, both the third path and the fourth path can include the fifth channel, and a partial channel on the first path and a partial channel on the second path are connected via the fifth channel to form a complete transmission path.

[0183] In one example, when the first network node and the second network node are different network nodes, the aforementioned state set may further include the state of the fifth channel, where the state of the fifth channel may refer to the fault state of the fifth channel, which may be either faulty or not faulty. In this case, when determining the transmission path for the service, the first network node may further consider the state of the fifth channel, thereby making the determined transmission path more reasonable and thus helping to reduce service traffic transmission interruptions.

[0184] As described above, in yet another example, a sixth channel and a seventh channel are provided between the first network node and the second network node, and traffic between the first network node and the second network node can be transmitted via the sixth channel or the seventh channel. In this case, both the third path and the fourth path can include the sixth channel or the seventh channel, and a partial channel on the first path and a partial channel on the second path are connected via the sixth channel or the seventh channel to form a complete transmission path.

[0185] In one example, when a first network node sends a service to a second network node via a third path, the third path includes a seventh channel. In this case, the transmission path of the service includes: first channel - seventh channel - fourth channel. For understanding, please refer to Figure 2a. Figure 2a is a schematic diagram of the transmission path of the service when a first network node transmits a service to a second network node via a third path, provided in an embodiment of the present application. In Figure 2a, the first channel corresponds to channel ①, the second channel corresponds to channel ②, the third channel corresponds to channel ③, the fourth channel corresponds to channel ④, the sixth channel corresponds to channel ⑥, and the seventh channel corresponds to channel ⑦. The transmission path of the service is shown in Figure 2a.

[0186] In another example, when the second network node sends a service to the first network node via a third path, the third path includes a sixth channel. In this case, the transmission path of the service includes: fourth channel - sixth channel - first channel. Please refer to Figure 2b for understanding. Figure 2b is a schematic diagram of the transmission path of the service when the second network node transmits the service to the second network node via a third path provided by an embodiment of the present application. In Figure 2b, the first channel corresponds to channel ①, the second channel corresponds to channel ②, the third channel corresponds to channel ③, the fourth channel corresponds to channel ④, the sixth channel corresponds to channel ⑥, and the seventh channel corresponds to channel ⑦. The transmission path of the service is shown in Figure 2b.

[0187] In one example, when the first network node sends a service to the second network node via the fourth path, the fourth path includes the sixth channel. In this case, the transmission path of the service includes: the second channel - the sixth channel - the third channel. Please refer to Figure 2c for understanding. Figure 2c is a schematic diagram of the transmission path of the service when the first network node transmits the service to the second network node via the fourth path provided by an embodiment of the present application. In Figure 2c, the first channel corresponds to channel ①, the second channel corresponds to channel ②, the third channel corresponds to channel ③, the fourth channel corresponds to channel ④, the sixth channel corresponds to channel ⑥, and the seventh channel corresponds to channel ⑦. The transmission path of the service is shown in Figure 2c.

[0188] In another example, when the second network node sends a service to the first network node via the fourth path, the fourth path includes the seventh channel. In this case, the transmission path of the service includes: the third channel - the seventh channel - the second channel. For understanding, please refer to Figure 2d, which is a schematic diagram of the transmission path of the service when the second network node transmits the service to the first network node via the fourth path, provided in an embodiment of the present application. In Figure 2d, the first channel corresponds to channel ①, the second channel corresponds to channel ②, the third channel corresponds to channel ③, the fourth channel corresponds to channel ④, the sixth channel corresponds to channel ⑥, and the seventh channel corresponds to channel ⑦. The transmission path of the service is shown in Figure 2d.

[0189] Regarding the first path and the second path, please refer to the relevant description above and will not be repeated here.

[0190] Similar to the first network node, the second network node can also determine the service transmission path based on the channel status. The principles for determining the service transmission path based on the channel status are the same as those for the first network node. Next, using the first network node as an example, we will describe the specific implementation of determining the service transmission path based on the channel status by the first network node.

[0191] 3, which is a flow chart of a method for determining a transmission path for a service provided in an embodiment of the present application. The method for determining a transmission path for a service shown in FIG3 may include the following steps S101-S102.

[0192] S101: Acquire a channel state, where the channel state includes at least one of a state set, and the channel set includes: a first channel state, a second channel state, a third channel state, and a fourth channel state.

[0193] As described above, the first channel and the second channel are channels connected to the first network node. In the embodiments of the present application, the state of the first channel and the state of the second channel can be determined by the first network node according to corresponding state determination logic. As described above, the first channel and the second channel are channels used by the first network node to communicate with upstream and downstream nodes on the first path. The principles for determining the state of the first channel and the state of the second channel by the first network node are the same. The following description uses the example of the first network node determining the state of the first channel.

[0194] In an example, the state of the first channel may be determined according to a first factor. The first factor mentioned here may include one or more factors that can indicate whether business data can be transmitted through the first channel.

[0195] As an example, considering that the status of the third channel can indicate whether the third channel is used to transmit business data, and the first channel and the third channel are each other's protection switching channels, the status of the third channel can, to a certain extent, indicate whether business data can be transmitted through the first channel. Therefore, in one example, the first factor may include the status of the third channel. In addition, considering whether the third channel has a fault, it can also indicate whether the third channel is used to transmit business data. Accordingly, whether the third channel has a fault can, to a certain extent, indicate whether business data can be transmitted through the first channel. Therefore, in one example, the first factor may include the fault information of the third channel, and the fault information of the third channel indicates whether a local fault and / or a remote fault has occurred on the third channel.

[0196] As another example, considering that local fault information of the first channel can indicate whether the first channel is faulty, that is, local fault information of the first channel can indicate whether service data can be transmitted through the first channel. Therefore, in one example, the first factor may include local fault information of the first channel. The local fault information of the first channel may include signal degrade (SD) information and / or signal fail (SF) information.

[0197] As another example, considering that the first remote fault indication information received via the first channel can indicate whether a remote fault exists on the first path, the first remote fault indication information can indicate whether service data can be transmitted via the first channel. Therefore, in one example, the first factor can include the first remote fault indication information.

[0198] As another example, consider that the state of the second channel can indicate whether the second channel can be used to transmit business data, and the first channel and the second channel are respectively channels used by the first network node to communicate with upstream and downstream nodes on the first path. Therefore, the state of the second channel can, to a certain extent, indicate whether business data can be transmitted through the first channel. For example, if the state of the second channel is standby, the data received by the first network node through the first channel cannot be transmitted through the first path. In this case, if other paths, such as the third path, cannot be used to transmit business data, the business data received through the first channel will be lost at the first network node. In this case, in theory, business data should not be received through the first channel. Therefore, in one example, the first factor may include the state of the second channel.

[0199] As previously mentioned, when the first network node and the second network node are different network nodes, in one example, one or more channels are provided between the first network node and the second network node. For ease of description, the channel between the first network node and the second network node is referred to as the target channel. In one example, the target channel includes the fifth channel, and in another example, the target channel includes the sixth channel and the seventh channel. In one example, the status of the target channel can, to a certain extent, indicate whether service data can be transmitted via the first channel. The status of the target channel indicates whether the target channel is faulty. For example, if the target channel is faulty, data received by the first network node via the first channel cannot be transmitted via the third path. In this case, if other paths, such as the second path, are also unavailable for service data transmission, service data received via the first channel will be lost at the first network node. In theory, service data should not be received via the first channel in this case. Therefore, in one example, the first factor may include the status of the target channel.

[0200] Next, a specific implementation manner in which the first network node determines the state of the first channel based on the first factor is introduced.

[0201] As previously described, the first network node belongs to the first path, and the second network node belongs to the second path. The first path and the second path can serve as protection switching paths for each other. In one example, the first path can be a working path, and the second path can be a protection path. In another example, the first path can be a protection path, and the second path can be a working path.

[0202] In one example, if the first path is a working path, the initial state of the first channel is active, and the initial state of the third channel is standby. In this case, when the state of the third channel is active, the first network node determines the state of the first channel to be standby. That is, when the state of the third channel is no longer the default standby but becomes active, the first network node determines the state of the first channel to be standby. As a result, the state of one of the two channels, the first and third channels, which perform mutual protection switching, is active, and the state of the other channel is standby.

[0203] In another example, if the first path is a protection path, the initial state of the third channel is active, and the initial state of the first channel is standby. In this case, when the state of the third channel is standby, the first network node determines the state of the first channel to be active. That is, when the state of the third channel is no longer the default active and instead becomes standby, the first network node determines the state of the first channel to be active. As a result, of the two channels (the first and third channels) that perform protection switching, one channel is in the active state, and the other channel is in the standby state.

[0204] As an example, when the first path is a protection path, the first network node may also determine the state of the first channel as active based on an external switching command. As another example, when the first path is a protection path, the first network node may also determine the state of the first channel as active based on a remote APS. For example, when the first network node receives an APS message sent from a remote end, it determines that the state of the first channel is active based on the fault information or switching indication carried in the APS message. As another example, the first network node may also determine the state of the first channel as active based on a local channel active / standby state decision state machine. For example, the first network node may determine that the state of the first channel is active when the state of the local channel active / standby state decision state machine changes, that is, when the state of the local channel active / standby state decision state machine changes from standby to active. The channel active / standby state decision state machine mentioned here may be understood as an APS state machine that can be used to make channel active / standby state decisions.

[0205] In another example, regardless of whether the first path is a working path or a protection path, if local fault information on the first channel indicates a local fault on the first channel, this indicates that the first channel cannot normally transmit service data. In this case, the first network node can determine that the first channel is in standby status. Similarly, if the first network node receives first remote fault indication information via the first channel, this indicates that a fault has occurred at the remote end of the first network node on the first path. In this case, the first channel cannot normally transmit service data, and therefore, the first network node can determine that the first channel is in standby status. Similarly, considering that data received by the first network node via the first channel can be transmitted to other network nodes via the second channel or the target channel, if the second channel is in standby status and the target channel fails, then if the first network node receives service data via the first channel, the service data will be lost at the first network node. Therefore, to prevent service data loss at the first network node, when the second channel is in standby status and the target channel status indicates a target channel failure, the first network node can determine that the first channel is in standby status.

[0206] Next, a method for the first network node to determine the state of the first channel is described with reference to the accompanying drawings.

[0207] Refer to FIG4 a , which is a schematic diagram of a flow chart of determining the state of a first channel provided in an embodiment of the present application.

[0208] When the first path is a working path, the first network node may determine the state of the first channel through the process shown in Figure 4a. The method shown in Figure 4a may include the following S201-S205.

[0209] S201: Determine whether the status of the third channel is active.

[0210] If the state of the third channel is active, execute S204. If the state of the third channel is standby, execute S202.

[0211] S202: Determine whether a local fault or a remote fault occurs on the first channel.

[0212] If a local fault or a remote fault occurs on the first channel, S204 is executed. If neither a local fault nor a remote fault occurs on the first channel, S203 is executed. When the first network node receives the first remote fault indication information via the first channel, it indicates that a remote fault has occurred on the first channel.

[0213] S203: Determine whether the status of the second channel is standby and the target channel fails at the same time.

[0214] If both conditions are satisfied at the same time, then S204 is executed. If both conditions are not satisfied at the same time, then S205 is executed.

[0215] S204: Determine that the state of the first channel is standby.

[0216] S205: Determine that the state of the first channel is active.

[0217] See FIG4 b , which is a schematic diagram of a flow chart of determining the state of a first channel provided in an embodiment of the present application.

[0218] When the first path is a protection path, the first network node may determine the state of the first channel through the process shown in Figure 4b. The method shown in Figure 4b may include the following S301-S307.

[0219] S301: Determine whether an external switching command instructing switching to active is received.

[0220] If an external switching command instructing switching to active is received, S308 is executed. If no external switching command instructing switching to active is received, S302 is further executed.

[0221] S302: Determine whether a fault occurs in the third channel.

[0222] The determination of whether a fault occurs on the third channel mentioned here may be determining whether a local fault occurs on the third channel or a remote fault occurs.

[0223] If it is determined that the third channel has failed, then S308 is executed. If it is determined that the third channel has not failed, then S303 is further executed.

[0224] S303: Determine whether the status of the third channel is standby.

[0225] If the state of the third channel is standby, then S308 is executed. If the state of the third channel is active, then S304 is further executed.

[0226] S304: Determine whether the state determined based on the APS message sent by the remote end is active.

[0227] The APS message sent by the remote end may be used to determine the state of the first channel. After receiving the APS message sent by the remote end, the first network node may parse the APS message and determine the state of the first channel using the content obtained by the parsing.

[0228] If the state determined based on the APS message sent by the remote end is active, then S308 is executed. If the state determined based on the APS message sent by the remote end is standby, then S305 is further executed.

[0229] S305: Determine whether a local fault or a remote fault occurs on the first channel.

[0230] If a local fault or a remote fault occurs on the first channel, S309 is executed. If neither a local fault nor a remote fault occurs on the first channel, S306 is further executed.

[0231] S306: Determine whether the local APS indicates switching to active.

[0232] If the local APS indicates that the switch is active, then S308 is executed. If the local APS does not indicate that the switch is active, then S307 is further executed.

[0233] S307: Determine whether the status of the second channel is standby and the target channel fails at the same time.

[0234] If both conditions are satisfied, then S309 is executed. If both conditions are not satisfied, then S308 is executed.

[0235] S308: Determine that the state of the first channel is active.

[0236] S309: Determine that the state of the first channel is standby.

[0237] It should be noted that Figures 4a and 4b are only shown for ease of understanding and do not limit the embodiments of the present application. The execution order of S201-S203 is not limited to the order shown in Figure 4a. The execution order of S301-S307 is also not limited to the order shown in Figure 4b.

[0238] In a specific implementation, the first network node may determine the status of the second channel by, for example, obtaining a second factor and determining the status of the second channel based on the second factor, wherein the second factor may include: the status of the fourth channel, local fault information of the second channel, remote fault indication information received via the second channel, and the status of the first channel. If the first network node and the second network node are different network nodes, the second factor may also include: the status of the target channel, where the status of the target channel is used to indicate whether the target channel has a fault. For details about the target channel, please refer to the relevant description above and will not be repeated here.

[0239] The principle that the first network node determines the state of the second channel based on the second factor is similar to the principle that the first network node determines the state of the first channel based on the first factor.

[0240] If the first path is a working path, the initial state of the second channel is active. In one example, the first network node may determine that the state of the second channel is standby when the state of the fourth channel is active; or the first network node may determine that the state of the second channel is standby when local fault information of the second channel indicates that a local fault has occurred on the second channel; or the first network node may determine that the state of the second channel is standby when the remote fault indication information is received via the second channel; or when the state of the first channel is standby and the state of the target channel indicates that the target channel has failed, the first network node may determine that the state of the second channel is standby.

[0241] If the first path is a protection path, the initial state of the second channel is standby. In one example, the first network node may determine that the state of the second channel is active when the state of the fourth channel is standby; or the first network node may determine that the state of the second channel is standby when local fault information of the second channel indicates that a local fault has occurred in the second channel; or the first network node may determine that the state of the second channel is standby when remote fault indication information is received through the second channel; or the first network node may determine that the state of the second channel is standby when the state of the first channel is standby and the state of the target channel indicates that the target channel has a fault.

[0242] In one example, when the first network node determines the status of the third channel and the status of the fourth channel, it can collect a third factor and a fourth factor, and further determine the status of the third channel according to the third factor, and determine the status of the fourth channel according to the fourth factor.

[0243] In another example, the second network node may determine the status of the third channel and the status of the fourth channel and send the status of the third channel and the status of the fourth channel to the first network node. In this case, obtaining the status of the third channel and the status of the fourth channel may be implemented by receiving the status of the third channel and the status of the fourth channel sent by the second network node.

[0244] The principle behind determining the status of the third channel based on the third factor is similar to that of determining the status of the first channel based on the first factor, except that the first and third channels are swapped, and the identities of the second and fourth channels are reversed. In other words, the third factor is obtained by replacing the first channel in the first factor with the third channel, the second channel with the fourth channel, and the third channel with the first channel. For details on how to determine the status of the third channel based on the third factor, please refer to the section on determining the status of the first channel based on the first factor and will not be repeated here.

[0245] The principle behind determining the status of the fourth channel based on the fourth factor is similar to that of determining the status of the second channel based on the second factor, except that the identities of the first and third channels are swapped, and the identities of the second and fourth channels are swapped. In other words, the fourth factor is obtained by replacing the fourth channel in the second factor with the second channel, the second channel with the fourth channel, and the first channel with the third channel. For the specific implementation of determining the status of the fourth channel based on the fourth factor, please refer to the specific implementation of determining the status of the second channel based on the second factor and will not be repeated here.

[0246] As previously mentioned, in one example, a fifth channel may be provided between the first network node and the second network node. In this case, the first network node may receive the status of the third channel and the status of the fourth channel sent by the second network node via the fifth channel. In another example, a sixth channel and a seventh channel may be provided between the first network node and the second network node. In this case, the second network node may send the status of the third channel to the first network node via the sixth channel and send the status of the fourth channel to the first network node via the seventh channel. In other words, the first network node may receive the status of the third channel sent by the second network node via the sixth channel and receive the status of the fourth channel sent by the second network node via the seventh channel. This can be understood in conjunction with Figure 2a , where the second network node may send the status of channel ③ to the first network node via channel ⑥ and send the status of channel ④ to the first network node via channel ⑦.

[0247] The principle of the second network node sending the status of the third channel to the first network node is the same as the principle of the second network node sending the status of the fourth channel to the first network node. Next, the second network node sending the status of the third channel to the first network node is used as an example for explanation.

[0248] In one example, the second network node can send status information of the third channel to the first network node. The status information of the third channel includes at least the status of the third channel. In this manner, the second network node transmits the status of the third channel to the first network node by transmitting the status information of the third channel to the first network node. Correspondingly, the first network node can receive the status information of the third channel transmitted by the second network node, thereby obtaining the status of the third channel.

[0249] In one example, in addition to the status of the third channel, the status information of the third channel may also include fault information of the third channel, where the fault information of the third channel indicates whether a fault has occurred in the third channel. As an example, the fault information of the third channel may include local fault information of the third channel, where the local fault information of the third channel indicates whether a local fault has occurred in the third channel. As another example, the fault information of the third channel may also include second remote fault indication information received via the third channel, where the second remote fault indication information may indicate that a remote fault has occurred in the third channel. A remote fault in the third channel may be understood as a fault at the far end of the third channel.

[0250] In some embodiments, the second network node may send a first OAM code block to the first network node, where the first OAM code block is used to carry the status information of the third channel. The first network node may receive the first OAM code block sent by the second network node and parse the first OAM code block to obtain the status information of the third channel.

[0251] In one possible implementation, a new OAM code block may be defined to carry the status information of the third channel, and the type field of the first OAM code block is used to indicate that the first OAM code block carries the status information of the third channel. In this case, the structure of the first OAM code block may be as shown in Figure 4c or Figure 4d, which respectively illustrate schematic structural diagrams of two first OAM code blocks provided in embodiments of the present application.

[0252] Figure 4c shows a schematic diagram of the structure of an OAM code block that complies with the standard format of the China Communications Standards Association (CCSA). As shown in Figure 4c, the value of the type field of the OAM code block is dual-homing coordination (DHC). DHC indicates that the OAM code block is used to carry a DHC message, and the DHC message includes status information of the third channel. The status information of the third channel can be carried by some or all of the four value fields of the OAM code block. For example, the status information of the third channel can be carried by value1. For other fields included in the OAM code block shown in Figure 4c, please refer to the CCSA standard definition and will not be described in detail here.

[0253] Figure 4d shows a schematic diagram of the structure of an OAM code block that complies with the standard format of the International Telecommunication Union Telecommunications Standards Branch (ITU-T). As shown in Figure 4d, the type field of the OAM code block indicates that the OAM code block is used to carry a DHC message, and the DHC message includes status information of the third channel. The status information of the third channel can be carried by part or all of the fields in the message-specific field of the OAM code block. For other fields included in the OAM code block shown in Figure 4d, please refer to the ITU-T standard definition and will not be described in detail here.

[0254] In another possible implementation, the first OAM code block can also use an existing OAM code block without defining a new OAM field. In one example, the first OAM code block can be a first APS code block, and the status information of the third channel can be carried in the available field of the first APS code block. This can be understood by referring to Figures 4e and 4f, which respectively show the structural schematics of two first APS code blocks provided in embodiments of the present application.

[0255] Figure 4e shows a schematic diagram of the structure of an APS code block that complies with the CCSA standard format. In this case, the DHC message used to carry the status information of the third channel can be carried, for example, by value 4 of the APS code block. Regarding the other fields of the first APS code block shown in Figure 4e, please refer to the CCSA definition and will not be described in detail here.

[0256] Figure 4f shows a schematic diagram of the structure of an APS code block that complies with the ITU-T standard format. In this case, the DHC message used to carry the status information of the third channel can be carried, for example, via the Message-Specific field. For other fields of the APS code block shown in Figure 4f, please refer to the ITU-T definition and will not be described in detail here.

[0257] In some other embodiments, the second network node may send a first Ethernet message to the first network node, wherein the first Ethernet message includes the state information of the third channel. The first network node may receive the first Ethernet message sent by the second network node and parse the first Ethernet message to obtain the state information of the third channel.

[0258] In a possible implementation, the structure of the first Ethernet message may be as shown in Figure 4g, which is a schematic diagram of the structure of a first Ethernet message provided in an embodiment of the present application. As shown in Figure 4g, the first Ethernet message includes the fields shown in Table 1 below.

[0259] Table 1

[0260] It should be noted here that, in one example, the state of the third channel and other information of the third channel may also be sent via two Ethernet messages, which is not specifically limited in the embodiments of the present application. In another example, if a channel is included between the first network node and the second network node, that is, a fifth channel is included, then the first Ethernet message may also include the state information of the fourth channel. That is, the state information of the third channel and the state information of the fourth channel may be carried in the same Ethernet message and transmitted to the first network node via the fifth channel. Regarding the field of the state information of the fourth channel carried in the first Ethernet message, reference may be made to the description portion of the state information of the third channel shown in Table 1, which will not be repeated here.

[0261] In one example, in addition to receiving the status of the third channel and the status of the fourth channel sent by the second network node, the first network node may also send the status of the first channel and the status of the second channel to the second network node, so that the second network node can determine the transmission path of the service based on the status of the channels. The implementation principle of "the first network node sending the status of the first channel and the status of the second channel to the second network node" is the same as the implementation principle of "the second network node sending the status of the third channel and the status of the fourth channel to the first network node." For the specific implementation of "the first network node sending the status of the first channel and the status of the second channel to the second network node", please refer to the detailed description of "the second network node sending the status of the third channel and the status of the fourth channel to the first network node" above, and will not be repeated here.

[0262] As previously described, if the second channel is in standby status and the target channel fails, if the first network node receives service data via the first channel, the service data will be lost at the first network node. To prevent a remote node of the first network node on the first path from sending service data to the first network node via the first channel, the first network node can send third remote failure indication information via the first channel. This causes the network node that receives the third remote failure indication information to determine a remote failure and, therefore, to stop sending service data to the first network node via the first channel, thereby preventing service data loss.

[0263] In one example, whether it is the third remote fault indication information sent by the first network node through the first channel, the second remote fault information received by the second network node through the third channel, or the first remote fault indication information received by the first network node through the first channel, it can be carried by the second OAM code block. That is, in one example, the first network node can receive the second OAM code block through the first channel and parse the second OAM code block to obtain the first remote fault indication information. In another example, the second network node can receive the second OAM code block through the third channel and parse the second OAM code block to obtain the second remote fault indication information. In another example, the first network node can send the second OAM code block through the first channel, and the second OAM code block carries the third remote fault indication information.

[0264] For ease of description, the concept of "target remote fault indication information" is introduced. The target remote fault indication information can be one of the first remote fault indication information, the second remote fault indication information, and the third remote fault indication information. As described above, the target remote fault indication information can be carried by the second OAM code block.

[0265] In one possible implementation, a new OAM code block can be defined to carry the target remote fault indication information, and the type field of the second OAM code block is used to indicate that the second OAM code block carries the target remote fault indication information. In this case, the structure of the second OAM code block can be as shown in Figure 4h or Figure 4i, which respectively show schematic structural diagrams of two second OAM code blocks provided in embodiments of the present application.

[0266] Figure 4h shows a schematic diagram of the structure of an OAM code block that complies with the CCSA standard format. As shown in Figure 4h, the value of the type field of the OAM code block is dual-homing remote defect indication (DH-RDI), and DH-RDI indicates that the second OAM code block is used to carry target remote fault indication information. The target remote fault indication information can be carried by part or all of the four value fields of the OAM code block. For example, the target remote fault indication information can be carried by the first bit of value1. In one example, when the second OAM code block is used to carry the third remote fault indication information, the second OAM code block can be carried by the target OAM message mentioned below.

[0267] Figure 4i shows a schematic diagram of the structure of an OAM code block that complies with the ITU-T standard format. As shown in Figure 4i, the type field of the OAM code block indicates that the OAM code block is used to carry target remote fault indication information. The target remote fault indication information can be carried via part or all of the fields in the Message-specific field of the OAM code block. For example, it can be carried via the first bit of the Message-specific field. In one example, when the second OAM code block is used to carry third remote fault indication information, the second OAM code block can, for example, be carried via the target OAM message mentioned below.

[0268] In another possible implementation, the second OAM code block may also use the existing OAM code block without defining a new OAM field. In one example, the second OAM code block may be a basic code block. In this case, the target remote fault indication information may be carried through the available field of the basic code block. In one example, the target remote fault indication information may be carried through the reserved field of the basic code block. For example, reference may be made to Figures 4j and 4k for understanding. Figures 4j and 4k respectively show the structural schematic diagrams of two basic code blocks provided in an embodiment of the present application. Figure 4j shows a structural schematic diagram of a basic code block that complies with the CCSA standard format. The target remote fault indication information may be carried through the first bit of value2 of the basic code block. Figure 4k shows a structural schematic diagram of a basic code block that complies with the ITU-T standard format. The target remote fault indication information may be carried through the fourth bit of the Message-specific field of the basic code block. In another example, the target remote fault indication information may be carried through the RDI field of the basic code block. In another example, the second OAM code block may be a second APS code block. In this case, the target remote fault indication information may be carried in an available field of the second APS code block. In one example, considering that the request / state field of the APS code block supports extension, the request / state field of the second APS code block may be used to carry the target remote fault indication information. For example, when the value of the request / state field is 1100, it indicates that the second APS carries the remote fault indication information.

[0269] S102: Determine a transmission path for the service based on the status of the channel, where the transmission path for the service is one or more paths in a path set, where the path set includes: a first path, a second path, a third path, and a fourth path, where the third path includes the first channel and the fourth channel, and the fourth path includes the second channel and the third channel.

[0270] After obtaining the channel status, the first network node can determine the service transmission path based on the channel status. The service transmission path includes one or more paths in a path set, which includes four paths: the aforementioned first path, second path, third path, and fourth path. The following describes a specific implementation method for determining the service transmission path based on the channel status by the first network node.

[0271] First, the specific implementation method for determining a service transmission path based on the status of a channel when the first network node and the second network node are the same network node will be described. As previously described, when the first network node and the second network node are the same network node, the service transmission path may include one or more paths in a first path set, which includes a first path, a second path, a third path, and a fourth path. This can be understood with reference to Table 2 below. In Table 2, "A1" represents "first channel," B1 represents "second channel," "A2" represents "third channel," and B2 represents "fourth channel." "West 1:1" refers to the first and third channels being configured as a 1:1 protection switching path; "West 1+1" refers to the first and third channels being configured as a 1+1 protection switching path; "East 1:1" refers to the second and fourth channels being configured as a 1:1 protection switching path; and "East 1+1" refers to the second and fourth channels being configured as a 1+1 protection switching path.

[0272] Table 2

[0273] Regarding Table 2, it should be noted that:

[0274] The A1 and A2 states are mutually exclusive. That is, if A1 is active, A2 is standby; if A1 is standby, A2 is active. Similarly, the B1 and B2 states are mutually exclusive. That is, if B1 is active, B2 is standby; if B1 is standby, B2 is active.

[0275] If both A1 and B1 are active, it means that the A1 and A2 channels can be used to transmit data normally. In this case, the path including the A1 and / or B1 channels can be determined as the service transmission path.

[0276] In the case of 1:1 on the west side and 1:1 on the east side, it can be determined that the transmission path of the service is the first path (A1<->B1).

[0277] In the case of 1:1 on the west side and 1+1 on the east side, it can be determined that the transmission paths of the service include the first path (A1<->B1) and the third path (A1->B2).

[0278] In the case of west side 1+1 and east side 1+1, it can be determined that the transmission paths of the service include a first path (A1<->B1), a third path (A1->B2) and a fourth path (B1->A2).

[0279] In the case of 1+1 on the west side and 1:1 on the east side, it can be determined that the transmission paths of the service include a first path (A1<->B1) and a fourth path (B1->A2).

[0280] If the A1 state is active and the B1 state is standby, it means that the first channel and the fourth channel can be used for normal data transmission. Therefore, the path including the first channel A1 and / or the fourth channel B2 can be determined as the service transmission path. Then:

[0281] In the case of 1:1 on the west side and 1:1 on the east side, it can be determined that the transmission path of the service is the third path (A1<->B2).

[0282] In the case of 1:1 on the west side and 1+1 on the east side, it can be determined that the transmission paths of the service include the third path (A1<->B2) and the first path (A1->B1).

[0283] In the case of west side 1+1 and east side 1+1, it can be determined that the transmission paths of the service include the third path (A1<->B2), the first path (A1->B1) and the second path (B2->A2).

[0284] In the case of 1+1 on the west side and 1:1 on the east side, it can be determined that the transmission paths of the service include the third path (A1<->B2) and the second path B2->A2.

[0285] If the A1 status is standby and the B1 status is active, it means that the second channel B1 and the third channel A2 can be used for normal data transmission, so the path including the second channel B1 and the third channel A2 can be determined as the service transmission path. Then:

[0286] In the case of 1:1 on the west side and 1:1 on the east side, it can be determined that the transmission path of the service is the fourth path (A2<->B1).

[0287] In the case of 1:1 on the west side and 1+1 on the east side, it can be determined that the transmission paths of the service include the fourth path (A2<->B1) and the second path (A2->B2).

[0288] In the case of west side 1+1 and east side 1+1, it can be determined that the transmission paths of the service include the fourth path (A2<->B1), the first path (B1->A1) and the second path (A2->B2).

[0289] In the case of 1+1 on the west side and 1:1 on the east side, it can be determined that the transmission paths of the service include the fourth path (B1<->A2) and the first path (B1->A1).

[0290] If both A1 and B1 are in standby state, it means that A2 and B2 channels can be used to transmit data normally. In this case, the path including B1 and / or B2 channels can be determined as the transmission path for the service.

[0291] In the case of 1:1 on the west side and 1:1 on the east side, it can be determined that the transmission path of the service is the second path (A2<->B2).

[0292] In the case of 1:1 on the west side and 1+1 on the east side, it can be determined that the transmission paths of the service include the second path (A2<->B2) and the fourth path (A2->B1).

[0293] In the case of west side 1+1 and east side 1+1, it can be determined that the transmission paths of the service include the second path (A2<->B2), the fourth path (A2->B1) and the third path (B2->A1).

[0294] In the case of 1+1 on the west side and 1:1 on the east side, it can be determined that the transmission paths of the service include the fourth second path (A2<->B2) and the third path (B2->A1).

[0295] Next, a specific implementation method for determining a service transmission path based on a channel status by the first network node when the first network node and the second network node are different network nodes is described. As previously described, when the first network node and the second network node are different network nodes, the service transmission path may include one or more paths in a second path set, where the second path set includes: a first path, a third path, and a fourth path.

[0296] First, the specific implementation method for determining the service transmission path based on the status of a fifth channel between a first network node and a second network node is described. This can be understood by referring to Table 3 below. In Table 3, "A" represents the "first channel," "B" represents the "second channel," and "C" represents the "fifth channel." Similarly, "west 1:1" refers to the first and third channels being configured as a 1:1 protection switching path, "west 1+1" refers to the first and third channels being configured as a 1+1 protection switching path, "east 1:1" refers to the second and fourth channels being configured as a 1:1 protection switching path, and "east 1+1" refers to the second and fourth channels being configured as a 1+1 protection switching path.

[0297] Table 3

[0298] In Table 3, "C state OK" indicates that the fifth channel has no faults, and "C state NOK" indicates that the fifth channel has a fault. In one example, whether the fifth channel has a fault can be determined based on the OAM detection result of the fifth channel. For example, if the OAM detection result of the fifth channel detects an SD, SF, or RDI fault, the fifth channel can be determined to be faulty. For example, the first network node can send an OAM to the second network node via the fifth channel. In another example, the second network node can send an OAM to the first network node via the fifth channel. If the OAM transmitted via the fifth channel detects a fault such as SD, SF, or RDI, the fifth channel can be determined to be faulty. In another example, the first network node and the second network node can transmit a DHC message at a certain frequency via the fifth channel. The fault in the fifth channel can be a DHC protocol fault between the first network node and the second network node. For example, the source node identifier in the DHC message received by the first network node is incorrect, or the first network node fails to receive the DHC message due to a timeout, or the first network node receives a DHC message from the second network node that carries a DHC protocol fault indication. In addition, if the source node identifier in the received DHC message is incorrect, or if the DHC message times out without being received, the first network node may send a DHC message carrying a DHC protocol fault indication to the second network node. In this case, in one example, the DHC message content in the first OAM shown in Figures 4c and 4d may include the DHC protocol fault indication. In another example, the first Ethernet message shown in Figure 4g may include the DHC protocol fault indication.

[0299] Regarding Table 3, it should be noted that:

[0300] If both A and B are active, and C is OK, channels A, B, and C can all be used for data transmission. Therefore, the path including one or more of channels A, B, and C can be determined as the service transmission path. In this case:

[0301] In the case of 1:1 on the west side and 1:1 on the east side, it can be determined that the transmission path of the service is the first path (A<->B).

[0302] In the case of 1:1 on the west side and 1+1 on the east side, it can be determined that the transmission paths of the service include a first path (A<->B) and a third path (A->C).

[0303] In the case of west side 1+1 and east side 1+1, it can be determined that the transmission path of the service includes the first path (A<->B).

[0304] In the case of 1+1 on the west side and 1:1 on the east side, it can be determined that the transmission paths of the service include the first path (A<->B) and the fourth path (B->C).

[0305] If both A and B states are active, and C state is NOK, it means that channels A and B can be used to transmit data normally. Therefore, the path including channels A and / or B can be determined as the service transmission path. In this case:

[0306] In the case of 1:1 on the west side and 1:1 on the east side, it can be determined that the transmission path of the service is the first path (A<->B).

[0307] In the case of a 1:1 west-side and a 1+1 east-side configuration, it can be determined that the service transmission path includes the first path (A<->B) and the third path (A->C). Alternatively, it can be determined that the service transmission path includes only the first path (A<->B). Because the C status is NOK, the third path cannot actually be used to transmit service data.

[0308] In the case of west side 1+1 and east side 1+1, it can be determined that the transmission path of the service includes the first path (A<->B).

[0309] In the case of a 1+1 west-side and a 1:1 east-side configuration, it can be determined that the service transmission path includes the first path (A<->B) and the fourth path (B->C). Alternatively, it can be determined that the service transmission path includes only the first path (A<->B). Because the C status is NOK, the fourth path cannot actually be used to transmit service data.

[0310] If the status of A is active, the status of B is standby, and the status of C is OK, it means that channel A and channel C can be used to transmit data normally, so the path including channel A and / or channel C can be determined as the transmission path for the service. Then:

[0311] In the case of 1:1 on the west side and 1:1 on the east side, it can be determined that the transmission path of the service is the third path (A<->C).

[0312] In the case of 1:1 on the west side and 1+1 on the east side, it can be determined that the transmission paths of the service include the third path (A<->C) and the first path (A->B).

[0313] In the case of west side 1+1 and east side 1+1, it can be determined that the transmission paths of the service include the third path (A<->C) and the first path (A->B).

[0314] In the case of 1+1 on the west side and 1:1 on the east side, it can be determined that the transmission path of the service includes the third path (A<->C).

[0315] If the status of A is active, the status of B is standby, and the status of C is NOK, it means that channel A can be used to transmit data normally. Therefore, the path including channel A can be determined as the transmission path for the service. Then:

[0316] In the case of 1:1 on the west side and 1:1 on the east side, it can be determined that the transmission path of the service is the third path (A<->C), or it is determined to discard the service data.

[0317] In the case of 1:1 on the west side and 1+1 on the east side, it can be determined that the service transmission path includes the third path (A<->C) and the first path (A->B). Alternatively, it can be determined that the service transmission path only includes the unidirectional first path (A->B).

[0318] In the case of west 1+1 and east 1+1, it can be determined that the service transmission path includes the third path (A<->C) and the first path (A->B). Alternatively, it can be determined that the service transmission path only includes the unidirectional first path (A->B).

[0319] In the case of 1+1 on the west side and 1:1 on the east side, it can be determined that the transmission path of the service includes the third path (A<->C), or it is determined to discard the service data.

[0320] If A is in standby state, B is in active state, and C is in OK state, then channels B and C can be used to transmit data normally. Therefore, the path including channels B and / or C can be determined as the service transmission path. Then:

[0321] In the case of 1:1 on the west side and 1:1 on the east side, it can be determined that the transmission path of the service is the fourth path (B<->C).

[0322] In the case of 1:1 on the west side and 1+1 on the east side, it can be determined that the transmission path of the service includes the fourth path (B<->C).

[0323] In the case of the west side 1+1 and the east side 1+1, it can be determined that the transmission paths of the service include the fourth path (B<->C) and the first path (B->A).

[0324] In the case of 1+1 on the west side and 1:1 on the east side, it can be determined that the transmission paths of the service include the fourth path (B<->C) and the first path (B->A).

[0325] If A is in standby state, B is in active state, and C is in NOK state, channel B can be used to transmit data normally. Therefore, the path including channel B can be determined as the service transmission path. Then:

[0326] In the case of 1:1 on the west side and 1:1 on the east side, the transmission path of the service may be determined to be the fourth path (B<->C), or the service data may be determined to be discarded.

[0327] In the case of 1:1 on the west side and 1+1 on the east side, it can be determined that the transmission path of the service includes the fourth path (B<->C), or it can be determined to discard the service data.

[0328] In the case of west 1+1 and east 1+1, it can be determined that the service transmission path includes the fourth path (B<->C) and the first path (B->A). Alternatively, it can be determined that the service transmission path only includes the unidirectional first path (B->A).

[0329] In the case of 1+1 on the west side and 1:1 on the east side, it can be determined that the service transmission path includes the fourth path (B<->C) and the first path (B->A). Alternatively, it can be determined that the service transmission path only includes the unidirectional first path (B->A).

[0330] If both A and B are in the standby state, and C is in the OK state, channel C can be used for data transmission. Therefore, the path including channel C can be determined as the service transmission path. In this scenario, for the first network node: In one example, the following transmission paths determined by the first network node are actually unavailable for service data transmission. However, in this scenario, the second network node can determine the second path of the channel to transmit service data, ensuring that service data is actually transmitted through the second path without causing service packet loss.

[0331] In the case of 1:1 on the west side and 1:1 on the east side, the transmission path of the service may be determined to be the first path (A<->B), or the service data may be determined to be discarded.

[0332] In the case of 1:1 on the west side and 1+1 on the east side, it can be determined that the transmission path of the service includes the fourth path (C->B).

[0333] In the case of west side 1+1 and east side 1+1, it can be determined that the transmission path of the service includes the first path (A<->B).

[0334] In the case of 1+1 on the west side and 1:1 on the east side, it can be determined that the transmission path of the service includes the third path (C->A).

[0335] If both A and B are in standby state, and C is in NOK state, then:

[0336] In the case of 1:1 on the west side and 1:1 on the east side, the transmission path of the service may be determined to be the first path (A<->B), or the service data may be determined to be discarded.

[0337] In the case of 1:1 on the west side and 1+1 on the east side, it can be determined that the transmission path of the service includes the fourth path (C->B), or it can be determined to discard the service data.

[0338] In the case of west side 1+1 and east side 1+1, it can be determined that the transmission path of the service includes the first path (A<->B).

[0339] In the case of 1+1 on the west side and 1:1 on the east side, it can be determined that the transmission path of the service includes the third path (C->A), or it can be determined to discard the service data.

[0340] In one example, the above Table 3 can be simplified to the following Table 4:

[0341] Table 4

[0342] Regarding Table 4, please refer to the description of Table 3 above, and no repetitive description is given here.

[0343] Next, the specific implementation method for determining the service transmission path based on the status of the sixth and seventh channels between the first network node and the second network node is described. This can be understood by referring to Table 5 below. In Table 5, "A" represents the "first channel," B represents the "second channel," C represents the "sixth channel," and D represents the "seventh channel." "West 1:1" refers to the configuration of the first and third channels as a 1:1 protection switching path; "West 1+1" refers to the configuration of the first and third channels as a 1+1 protection switching path; "East 1:1" refers to the configuration of the second and fourth channels as a 1:1 protection switching path; and "East 1+1" refers to the configuration of the second and fourth channels as a 1+1 protection switching path.

[0344] Table 5

[0345] It should be noted that the transmission paths of the services determined in the three scenarios of "West 1:1, East 1:1", "West 1:1, East 1+1" and "West 1+1, East 1:1" in Table 5 are the same as those in Table 3. The difference is that in Table 5, instead of including a fifth channel (channel C in Table 3), the first network node includes a sixth channel (channel C in Table 4) and a seventh channel (channel D in Table 5). The C state and the D state in Table 5 are equivalent to the C state in Table 3. In Table 5, both the C state and the D state are OK, which is equivalent to the C state OK in Table 3. In Table 5, the C state or the D state is NOK, which is equivalent to the C state NOK in Table 3. In addition, in Table 3, the third path and the fourth path both include the fifth channel, while in Table 5, the third path and the fourth path both include the sixth channel and the seventh channel.

[0346] The third path A<->C in Table 3 is equivalent to A->D&C->A in Table 5, that is, A->C in Table 3 is equivalent to A->D in Table 5; C->A in Table 3 is equivalent to C->A in Table 5.

[0347] The fourth path B<->C in Table 3 is equivalent to B->C&D->B in Table 5, that is, B->C in Table 3 is equivalent to B->C in Table 5; the fourth path C->B in Table 3 is equivalent to D->B in Table 5. The service transmission paths determined in the "West Side 1+1, East Side 1+1" scenario in Table 5 can be understood by referring to Table 5 and will not be explained in detail here.

[0348] In one example, the above Table 5 can be simplified to the following Table 6:

[0349] Table 6

[0350] Table 6 can also be understood in conjunction with the description of Table 3 above, and will not be repeated here.

[0351] From the above description, it can be seen that by using the solution of the embodiment of the present application, the first network node can determine the transmission path of the service based on the status of the channel, so that the determined transmission path is consistent with the status of the channel. Accordingly, when the service traffic is transmitted based on the determined transmission path, the interruption of the service traffic transmission can be effectively avoided.

[0352] In one implementation of the embodiment of the present application, the first network node may also exchange target OAM messages with other network nodes on the first path. Specifically, the first network node may send or receive target OAM messages through the first channel or the second channel. The target OAM messages mentioned here include but are not limited to messages carrying basic code blocks, messages carrying APS code blocks, messages carrying connectivity verification (CV) code blocks, messages carrying one-way delay measurement (1DM) code blocks, messages carrying delay measurement messages (2DMM) code blocks, messages carrying delay measurement reply (DMR) code blocks, or messages carrying client signal (CS) code blocks. Regarding the functions and uses of basic code blocks, APS code blocks, CV code blocks, 1DM code blocks, delay measurement messages (DMM), delay measurement reply (DMR) code blocks, and client signal (CS) code blocks, please refer to the relevant description parts of CCSA or ITU-T, and no repeated description is given here.

[0353] In one example, when the first channel or the second channel is a small-granularity channel, the target OAM message may be an end-to-end small-granularity OAM message. For end-to-end small-granularity OAM messages, reference may be made to the CCSA or ITU-T standard definitions, which are not described repeatedly here. In an embodiment of the present application, when the first network node is a P, the first network node may also receive or send end-to-end small-granularity OAM messages via the first channel.

[0354] In yet another example, the target OAM message may be a newly defined OAM message.

[0355] In a specific example, the O-code block type field of the target OAM message indicates the message type of the target OAM message. The target OAM message may be an OAM message initiated or terminated at a P node that deploys small-granule technology. As an example, the target OAM message can be obtained by expanding the O-code block type field of an end-to-end small-granule OAM message. For example, if the value of the O-code block type field of the end-to-end small-granule OAM message is 0xC, the value of the O-code block type field of the target OAM message is 0xD.

[0356] In another specific example, the type field of the target OAM message indicates the message type of the target OAM message. The target OAM message may be an OAM message initiated or terminated at a P node that deploys small-granule technology. As an example, the target OAM message can be obtained by expanding the type field of an end-to-end small-granule OAM message. This can be understood, for example, in conjunction with Table 7. Table 7 shows the value of the type field of an end-to-end small-granule OAM message and the value of the type field of the target OAM message.

[0357] Table 7

[0358] It should be noted that the value of the type field of the target OAM message shown in Table 7 is only shown to facilitate understanding of this solution and does not constitute a limitation on the embodiments of the present application.

[0359] The above introduces the communication system provided in the embodiment of the present application and the data processing method performed by the first network node. Next, the data processing method provided in the embodiment of the present application is introduced in combination with the small-granularity scenario.

[0360] In Figures 5a to 5d, a working network element refers to a network element on a working path, and a protection network element refers to a network element on a protection path. The working network element and the protection network element may correspond to a first network node and a second network node. For example, the working network element corresponds to the first network node, and the protection network element corresponds to the second network node; or in another example, the working network element corresponds to the second network node, and the protection network element corresponds to the first network node.

[0361] In Figures 5a to 5d, channels A1 and A2 serve as protection switching channels for each other, and channels B1 and B2 serve as protection switching channels for each other. Channels A1 and B1 are channels on the working path, while channels A2 and B2 are channels on the protection path. In one example, channel A1 can correspond to the first channel, channel B1 can correspond to the second channel, channel A2 can correspond to the third channel, channel B2 can correspond to the fourth channel, and channel C can correspond to the fifth channel. In another example, channel A1 can correspond to the third channel, channel B1 can correspond to the fourth channel, channel A2 can correspond to the first channel, channel B2 can correspond to the second channel, and channel C can correspond to the fifth channel.

[0362] In Figures 5a-5d, the active / standby status of a channel refers to the channel status. The fault status of a channel indicates whether a local fault or a remote fault exists on the channel.

[0363] In FIG. 5 a and FIG. 5 b , channel C may correspond to the fifth channel.

[0364] In FIG. 5 c and FIG. 5 d , channel C and channel D may correspond to the sixth channel and the seventh channel, respectively.

[0365] See Figure 5a, which is a schematic diagram of a technical architecture provided by an embodiment of the present application. Figure 5a illustrates a technical architecture diagram when the first network node and the second network node are different P nodes, and a fifth channel is included between the first network node and the second network node. In Figure 5a, channels A1, A2, A3, and A4 are all small-granular channels.

[0366] In Figure 5a, the working NE can send and receive OAM and DH-RDI messages through the FGU timeslots included in channel A1. Furthermore, the working NE can detect faults on channel A1, for example, to determine whether a local or remote fault has occurred. The working NE can send and receive OAM and DH-RDI messages through the FGU timeslots included in channel B1. Furthermore, the working NE can detect faults on channel B1, for example, to determine whether a local or remote fault has occurred.

[0367] The working network element can also receive status information of channel A2 and channel B2 through channel C. The status information of channel A2 may include the active / standby status of channel A2 and the fault status of channel A2, and the status information of channel B2 may include the active / standby status of channel B2 and the fault status of channel B2.

[0368] The working network element can send and receive OAM and DHC messages through the FGU timeslot included in channel C. In addition, the working network element can also detect the fault status of channel C, for example, whether channel C has a local fault or a remote fault.

[0369] The working network element can determine the active / standby status of channel A1 by combining the fault status of A1, the status information of A2, the status information of B1, and the fault status of channel C. Furthermore, the working network element can determine the active / standby status of channel A2 by combining the fault status of B1, the status information of A1, the status information of B2, and the fault status of channel C.

[0370] After the working network element determines the active / standby status of A1 and A2, it can determine the transmission path of the service based on the active / standby status of A1, A2, and the fault status of C, and further determine the mapping relationship between the small-granularity time slots between the channels included in the transmission path based on the transmission path of the service.

[0371] The data processing flow for the protection NE is similar to that for the working NE. The difference is that the protection NE can also use external commands to determine the active / standby status of channels B1 and B2. For details about the data processing flow for the protection NE, refer to the description of the processing flow for the working NE above and will not be repeated here.

[0372] Referring to Figure 5b, Figure 5b is another technical architecture diagram provided by an embodiment of the present application. Figure 5b shows a technical architecture diagram when the first network node and the second network node are different PE nodes and a fifth channel is included between the first network node and the second network node.

[0373] In FIG5 b , channel A1 and channel A2 are network-side channels, and channel B1 and channel B2 are user-side channels. Channel A1 and channel A2 are small-granularity channels, and channel B1 and channel B2 are AC links.

[0374] The processing flow of the working network element in Figure 5b is basically the same as that of the working network element in Figure 5a, except that the working network element in Figure 5b no longer sends and receives OAM and DH-RDI messages through the FGU timeslot included in channel B1, but instead sends and receives service messages, link aggregation group (LAG) messages, and multiplex section protection (MSP) messages through channel B1. The processing flow of the protection network element in Figure 5b is basically the same as that of the protection network element in Figure 5a, except that the protection network element in Figure 5b no longer sends and receives OAM and DH-RDI messages through the FGU timeslot included in channel B2, but instead sends and receives service messages, LAG messages, and MSP messages through channel B2.

[0375] Referring to Figure 5c, Figure 5c is another schematic diagram of a technical architecture provided by an embodiment of the present application. Figure 5c shows a schematic diagram of a technical architecture when the first network node and the second network node are different P nodes, and the first network node and the second network node include a sixth channel and a seventh channel.

[0376] The processing flow of the working network element in Figure 5c is essentially the same as that of the working network element in Figure 5a , with the following differences: in Figure 5c , the working network element receives status information for channel A2 via channel C and receives status information for channel B2 via channel D. Furthermore, when determining the service transmission path, the fault status of channels C and D is considered. Similarly, the processing flow of the protection network element in Figure 5c is essentially the same as that of the protection network element in Figure 5a , with the following differences: in Figure 5c , the protection network element receives status information for channel A1 via channel C and receives status information for channel B1 via channel D. Furthermore, when determining the service transmission path, the fault status of channels C and D is considered.

[0377] 5d is a schematic diagram of another technical architecture provided by an embodiment of the present application. FIG5d shows a schematic diagram of a technical architecture when the first network node and the second network node are different PE nodes and the first network node and the second network node include a sixth channel and a seventh channel.

[0378] In FIG5 d , channel A1 and channel A2 are network-side channels, and channel B1 and channel B2 are user-side channels. Channel A1 and channel A2 are small-granularity channels, and channel B1 and channel B2 are AC links.

[0379] The processing flow of the working NE in Figure 5d is essentially the same as that of the working NE in Figure 5c , except that the working NE in Figure 5d no longer sends and receives OAM and DH-RDI messages through the FGU timeslot included in channel B1, but instead sends and receives service messages, LAG messages, and MSP messages through channel B1. The processing flow of the protection NE in Figure 5d is essentially the same as that of the protection NE in Figure 5c , except that the protection NE in Figure 5d no longer sends and receives OAM and DH-RDI messages through the FGU timeslot included in channel B2, but instead sends and receives service messages, LAG messages, and MSP messages through channel B2.

[0380] Next, the transmission path of the service determined by the first network node and / or the second network node is introduced in combination with specific scenarios.

[0381] In Figures 6a to 6h, a dual-homing work (DHW) network element represents a network element on a working path, working path A1 represents the A1 channel on the working path, and working path B1 represents the B1 channel on the working path. A dual-homing protection (DHP) network element represents a network element on a protection path, protection path A2 represents the A2 channel on the protection path, and protection path B2 represents the B2 channel on the protection path. An "X" indicates a fault.

[0382] See Figure 6a, which is a schematic diagram of an exemplary application scenario provided by an embodiment of the present application. Figure 6a shows 12 network scenarios in which the west-side channels (A1 and A2) are configured as 1:1 protection switching channels and the east-side channels (B1 and B2) are configured as 1:1 protection switching channels. It also shows the service transmission paths determined by each network scenario. In Figure 6a, the service transmission paths are represented by directional arrows. In the scenario shown in Figure 6a, a fifth channel (i.e., the channel between C1 and C2) is included between the DHW network element and the DHP network element.

[0383] As shown in FIG6a , in scenario 1, working path A1 , working path B1 , protection path A2 , protection path B2 and the fifth channel are all fault-free, and the determined service transmission path is working path A1 <-> B1 .

[0384] As shown in FIG6a , in scenario 2, working path A1 , working path B1 , protection path A2 , and protection path B2 are all fault-free, but the fifth channel is faulty, and the determined service transmission path is working path A1 <-> B1 .

[0385] As shown in Figure 6a, in scenario 3, working path A1 and the fifth channel fail, while working path B1, protection path A2, and protection path B2 are all intact. The service transmission path is determined to be protection path A2<->B2. Furthermore, the DHW network element can also send DH-RDI to the remote end via working path B1.

[0386] As shown in Figure 6a, in scenario 4, working path B1 and the fifth channel fail, while working path A1, protection path A2, and protection path B2 are all intact. The service transmission path is determined to be protection path A2<->B2. Furthermore, the DHW network element can send DH-RDI to the remote end via working path A1.

[0387] As shown in Figure 6a, in scenario 5, protection path A2 and the fifth channel fail, while working path A1, working path B1, and protection path B2 are all intact. The service transmission path is determined to be working path A1 <-> B1. Furthermore, the DHP network element can also send DH-RDI to the remote end via protection path B2.

[0388] As shown in FIG6 a , in scenario 6 , the working path A1 fails, and the working path B1 , the protection path A2 , the protection path B2 and the fifth channel are all normal. Then the determined service transmission path is the path A2 <-> B1 .

[0389] As shown in FIG6a , in scenario 7, working path A1 and working path B1 fail, protection path A2, protection path B2 and the fifth channel are all normal, and the determined service transmission path is protection path A2<->B2.

[0390] As shown in FIG6a , in scenario 8, the working path A1 and the protection path B2 fail, and the protection path A2 , the working path B1 and the fifth channel are all normal. The determined service transmission path is path A2<->B1 .

[0391] As shown in FIG6a , in scenario 9, the working path B1 fails, and the working path A1 , the protection path A2 , the protection path B2 and the fifth channel are all normal. Then the determined service transmission path is path A1 <-> B2 .

[0392] As shown in FIG6a , in scenario 10 , the working path B1 and the protection path A2 fail, and the working path A1 , the protection path B2 and the fifth channel all have no failures, and the determined service transmission path is path A1 <-> B2 .

[0393] As shown in FIG6a , in scenario 11 , the DHW network element fails, that is, all channels connected to the DHW network element fail, while protection path A2 and protection path B2 are not faulty. Then the determined service transmission path is protection path A2<->B2.

[0394] As shown in FIG6a , in scenario 12 , the DHP network element fails, that is, all channels connected to the DHP network element fail, while working path A1 and working path B1 are not faulty. The determined service transmission path is working path A1<->B1.

[0395] Refer to Figure 6b, which is a schematic diagram of an exemplary application scenario provided by an embodiment of the present application. Figure 6b shows 12 network scenarios in which the west channel (A1 and A2) is configured as a 1:1 protection switching channel and the east channel (B1 and B2) is configured as a 1:1 protection switching channel, and shows the transmission paths of the services determined by the various network scenarios. In Figure 6b, the transmission paths of the services are represented by directional arrows. In the scenario shown in Figure 6b, the DHW network element and the DHP network element include a sixth channel (i.e., the channel between C1 and C2) and a seventh channel (i.e., the channel between D1 and D2). The various network scenarios shown in Figure 6b and the corresponding transmission paths of the services are not described in detail here.

[0396] Refer to Figure 6c, which is a schematic diagram of an exemplary application scenario provided by an embodiment of the present application. Figure 6c shows 12 network scenarios in which the west channel (A1 and A2) is configured as a 1:1 protection switching channel and the east channel (B1 and B2) is configured as a 1+1 protection switching channel, and shows the transmission paths of the services determined by the various network scenarios. In Figure 6c, the transmission path of the service is represented by a directional arrow. In the scenario shown in Figure 6c, a fifth channel (i.e., the channel between C1 and C2) is included between the DHW network element and the DHP network element. The various network scenarios shown in Figure 6c and the corresponding transmission paths of the services are not described in detail here.

[0397] Refer to Figure 6d, which is a schematic diagram of an exemplary application scenario provided by an embodiment of the present application. Figure 6d shows 12 network scenarios in which the west channel (A1 and A2) is configured as a 1:1 protection switching channel and the east channel (B1 and B2) is configured as a 1+1 protection switching channel, and shows the transmission paths of the services determined by the various network scenarios. In Figure 6d, the transmission paths of the services are represented by directional arrows. In the scenario shown in Figure 6d, the DHW network element and the DHP network element include a sixth channel (i.e., the channel between C1 and C2) and a seventh channel (i.e., the channel between D1 and D2). The various network scenarios shown in Figure 6d and the corresponding transmission paths of the services are not described in detail here.

[0398] See Figure 6e, which is a schematic diagram of an exemplary application scenario provided by an embodiment of the present application. Figure 6e shows 12 network scenarios in which the west channel (A1 and A2) is configured as a 1+1 protection switching channel and the east channel (B1 and B2) is configured as a 1+1 protection switching channel, and shows the transmission paths of the services determined by the various network scenarios. In Figure 6e, the transmission paths of the services are represented by directional arrows. In the scenario shown in Figure 6e, a fifth channel (i.e., the channel between C1 and C2) is included between the DHW network element and the DHP network element. The various network scenarios shown in Figure 6e and the corresponding transmission paths of the services are not described in detail here.

[0399] Refer to Figure 6f, which is a schematic diagram of an exemplary application scenario provided by an embodiment of the present application. Figure 6f shows 12 network scenarios in which the west channel (A1 and A2) is configured as a 1+1 protection switching channel and the east channel (B1 and B2) is configured as a 1+1 protection switching channel, and shows the transmission paths of the services determined by the various network scenarios. In Figure 6f, the transmission paths of the services are represented by directional arrows. In the scenario shown in Figure 6f, the DHW network element and the DHP network element include a sixth channel (i.e., the channel between C1 and C2) and a seventh channel (i.e., the channel between D1 and D2). The various network scenarios shown in Figure 6f and the transmission paths of the corresponding services are not described in detail here.

[0400] See Figure 6g, which is a schematic diagram of an exemplary application scenario provided by an embodiment of the present application. Figure 6g shows 12 network scenarios in which the west channel (A1 and A2) is configured as a 1+1 protection switching channel and the east channel (B1 and B2) is configured as a 1:1 protection switching channel, and shows the transmission paths of the services determined by the various network scenarios. In Figure 6g, the transmission paths of the services are represented by directional arrows. In the scenario shown in Figure 6g, a fifth channel (i.e., the channel between C1 and C2) is included between the DHW network element and the DHP network element. The various network scenarios shown in Figure 6g and the transmission paths of the corresponding services are not described in detail here.

[0401] Refer to Figure 6h, which is a schematic diagram of an exemplary application scenario provided by an embodiment of the present application. Figure 6h shows 12 network scenarios in which the west channel (A1 and A2) is configured as a 1+1 protection switching channel and the east channel (B1 and B2) is configured as a 1:1 protection switching channel, and shows the transmission paths of the services determined by the various network scenarios. In Figure 6h, the transmission paths of the services are represented by directional arrows. In the scenario shown in Figure 6h, the DHW network element and the DHP network element include a sixth channel (i.e., the channel between C1 and C2) and a seventh channel (i.e., the channel between D1 and D2). The various network scenarios shown in Figure 6h and the corresponding transmission paths of the services are not described in detail here.

[0402] By utilizing the solution of the embodiment of the present application, business interruption can be effectively reduced and avoided. For example, after applying the solution provided by the embodiment of the present application to the application scenario shown in Figure 1a, the transmission path of the business can be as shown in Figure 7a. For another example, after applying the solution provided by the embodiment of the present application to the application scenario shown in Figure 1b, the transmission path of the business can be as shown in Figure 7b. After applying the solution provided by the embodiment of the present application to the application scenario shown in Figure 1c, the transmission path of the business can be as shown in Figure 7c. After applying the solution provided by the embodiment of the present application to the application scenario shown in Figure 1d, the transmission path of the business can be as shown in Figure 7d. After applying the solution provided by the embodiment of the present application to the application scenario shown in Figure 1e, the transmission path of the business can be as shown in Figure 7e. After applying the solution provided by the embodiment of the present application to the application scenario shown in Figure 1f, the transmission path of the business can be as shown in Figure 7f. Figures 7a to 7f are schematic diagrams of 6 exemplary application scenarios provided by the embodiments of the present application.

[0403] 8, which is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. The data processing device 800 shown in FIG8 can be applied to a first network node to execute the data processing method provided by the first network node in the above method embodiment.

[0404] As shown in FIG8 , the data processing device 800 includes an acquiring unit 801 and a processing unit 802 .

[0405] The acquisition unit 801 is used to acquire the status of the channel, where the status of the channel includes at least one of a status set, and the status set includes: the status of a first channel, the status of a second channel, the status of a third channel, and the status of a fourth channel. The first channel and the second channel are respectively connected to the first network node, and the first channel and the second channel belong to a first path. The third channel and the fourth channel are respectively connected to the second network node, and the third channel and the fourth channel belong to a second path. The first channel and the third channel are each other's protection switching channels, and the second channel and the fourth channel are each other's protection switching channels.

[0406] The processing unit 802 is configured to determine a transmission path for the service based on the status of the channel, where the transmission path for the service is one or more paths in a path set, where the path set includes: the first path, the second path, the third path, and the fourth path, where the third path includes the first channel and the fourth channel, and the fourth path includes the second channel and the third channel.

[0407] In a possible implementation manner, the first network node and the second network node are the same network node.

[0408] In a possible implementation, the first network node and the second network node are different network nodes, a fifth channel is included between the first network node and the second network node, and the third path and the fourth path also include the fifth channel.

[0409] In a possible implementation manner, the state set further includes the state of the fifth channel.

[0410] In a possible implementation, the first network node and the second network node are different network nodes, a sixth channel and a seventh channel are included between the first network node and the second network node, and both the third path and the fourth path include the sixth channel or the seventh channel, wherein: when the first network node sends a service to the second network node through the third path, the third path includes the seventh channel; when the second network node sends a service to the first network node through the third path, the third path includes the sixth channel; when the first network node sends a service to the second network node through the fourth path, the fourth path includes the sixth channel; when the second network node sends a service to the first network node through the fourth path, the fourth path includes the seventh channel.

[0411] In a possible implementation, the state set further includes the state of the sixth channel and the state of the seventh channel.

[0412] In a possible implementation manner, both the first network node and the second network node are operator edge devices (PEs).

[0413] In a possible implementation manner, the first network node and the second network node are operator intermediate devices.

[0414] In a possible implementation, the first channel, the second channel, the third channel, and the fourth channel are all small-granularity channels; or, the first channel, the second channel, the third channel, and the fourth channel are all metropolitan area transport network (MTN) channels.

[0415] In a possible implementation, the first channel and the third channel are AC links, and the second channel and the fourth channel are small-particle channels; or, the first channel and the third channel are AC links, and the second channel and the fourth channel are MTN channels.

[0416] In one possible implementation, the status of the first channel is determined based on a first factor, where the first factor includes one or more of the following: the status of the third channel, local fault information of the first channel, first remote fault indication information received through the first channel, and the status of the second channel.

[0417] In a possible implementation, if the first network node and the second network node are different network nodes, the first factor also includes: a status of a target channel, where the status of the target channel is used to indicate whether the target channel is faulty; wherein: when a fifth channel is included between the first network node and the second network node, the target channel includes the fifth channel; when a sixth channel and a seventh channel are included between the first network node and the second network node, the target channel includes the sixth channel and the seventh channel.

[0418] In one possible implementation, the first path is a working path, and the status of the first channel is determined as follows: when the status of the third channel is active, the status of the first channel is determined to be standby; or, when local fault information of the first channel indicates that a local fault occurs in the first channel, the status of the first channel is determined to be standby; or, when the first remote fault indication information is received through the first channel, the status of the first channel is determined to be standby; or, when the status of the second channel is standby and the status of the target channel indicates that the target channel has a fault, the status of the first channel is determined to be standby.

[0419] In one possible implementation, the first path is a protection path, and the state of the first channel is determined as follows: when the state of the third channel is standby, determining that the state of the first channel is active; or, when local fault information of the first channel indicates that a local fault occurs on the first channel, determining that the state of the first channel is standby; or, when the first remote fault indication information is received through the first channel, determining that the state of the first channel is standby; when the state of the second channel is standby and the state of the target channel indicates that the target channel has a fault, determining that the state of the first channel is standby.

[0420] In a possible implementation manner, the acquiring unit 801 is configured to receive the status of the third channel and the status of the fourth channel sent by the second network node.

[0421] In a possible implementation, if a fifth channel is provided between the first network node and the second network node, the acquiring unit 801 is configured to receive the status of the third channel and the status of the fourth channel sent by the second network node through the fifth channel.

[0422] In a possible implementation, if a sixth channel and a seventh channel are included between the first network node and the second network node, the acquiring unit 801 is configured to: receive the status of the third channel sent by the second network node through the sixth channel; and receive the status of the fourth channel sent by the second network node through the seventh channel.

[0423] In a possible implementation, the acquiring unit 801 is configured to receive status information of the third channel sent by the second network node, where the status information includes the status of the third channel.

[0424] In a possible implementation, the acquiring unit 801 is configured to receive a first Operation, Administration, and Maintenance (OAM) code block sent by the second network node, where the first OAM code block carries the status information.

[0425] In a possible implementation manner, the type field of the first OAM code block indicates that the first OAM code block carries the status information.

[0426] In a possible implementation, the first OAM code block is a first automatic protection switching APS code block, and the status information is carried by an available field of the first APS code block.

[0427] In a possible implementation, the acquiring unit 801 is configured to receive a first Ethernet message sent by the second network node, where the first Ethernet message includes the state information.

[0428] In a possible implementation, the status information further includes: local fault information of the third channel, and / or second remote fault indication information received through the third channel.

[0429] In a possible implementation manner, the apparatus further includes: a sending unit, configured to send the state of the first channel and the state of the second channel to the second network node.

[0430] In a possible implementation, the apparatus further includes: a sending unit configured to send third remote fault indication information through the first channel when the state of the second channel is standby and the state of the target channel indicates that the target channel is faulty.

[0431] In a possible implementation, the target fault indication information is carried by the second OAM code block, and the target fault indication information includes the first remote fault indication information, the second remote fault indication information, or the third remote fault indication information.

[0432] In a possible implementation manner, the type field of the second OAM code block indicates that the second OAM code block carries the target remote fault indication information.

[0433] In a possible implementation, the second OAM code block is a basic code block, and the target remote fault indication information is carried through a reserved field or a remote defect indication RDI field of the basic code block.

[0434] In a possible implementation manner, the second OAM code block is a second APS code block, and the target remote fault indication information is carried by an available field of the second APS code block.

[0435] In one possible implementation, the device further includes: a sending unit, configured to send or receive a target OAM message through the first channel, wherein: the target OAM message is an end-to-end small-granule channel OAM message; or, the O code block type field of the target OAM message indicates a message type of the target OAM message; or, the type field of the target OAM code block indicates a message type of the target OAM message.

[0436] In one possible implementation, the first channel and the third channel are configured as 1:1 protection switching channels, and the second channel and the fourth channel are also configured as 1:1 protection switching channels; the processing unit 802 is used to: when the status of the first channel and the status of the second channel are both active, determine the first path as the transmission path of the service; or, when the status of the first channel is active and the status of the second channel is standby, determine the third path as the transmission path of the service; or, when the status of the first channel is standby and the status of the second channel is active, determine the fourth path as the transmission path of the service; or, when the status of the first channel and the status of the second channel are both standby, determine the first path as the transmission path of the service or determine to discard the service.

[0437] In a possible implementation, the first channel and the third channel are configured as 1:1 protection switching channels, and the second channel and the fourth channel are configured as 1+1 protection switching channels. The processing unit 802 is configured to: when the first channel and the second channel are both in active state, determine the first path and the third path as transmission paths for the service, and the third path is a unidirectional path, and in the third path, the first network node is an upstream node of the second network node; or, when the first channel is in active state and the second channel is in standby state, determine the first path and the third path as transmission paths for the service, and the first path is a unidirectional path, and in the first path, the first channel is an upstream channel of the second channel; or, when the first channel is in standby state and the second channel is in active state, determine the fourth path as the transmission path for the service; or, when the first channel and the second channel are both in standby state, determine the fourth path as the transmission path for the service, the fourth path is a unidirectional path, and in the fourth path, the first network node is a downstream node of the second network node.

[0438] In a possible implementation, the first channel and the third channel are configured as 1+1 protection switching channels, and the second channel and the fourth channel are configured as 1:1 protection switching channels. The processing unit 802 is configured to: when the first channel and the second channel are both in active state, determine the first path and the fourth path as transmission paths for the service, and the fourth path is a unidirectional path, and in the fourth path, the first network node is an upstream node of the second network node; or, when the first channel is in active state and the second channel is in standby state, determine the third path as the transmission path for the service; or, when the first channel is in standby state and the second channel is in active state, determine the fourth path and the first path as transmission paths for the service, the first path is a unidirectional path, and in the first path, the second channel is an upstream path of the first channel; or, when the first channel and the second channel are both in standby state, determine the third path as the transmission path for the service, and the third path is a unidirectional path, and in the third path, the second network node is an upstream node of the first network node.

[0439] In one possible implementation, the first channel and the third channel are configured as 1+1 protection switching channels, and the second channel and the fourth channel are also configured as 1+1 protection switching channels; the processing unit 802 is used to: when the status of the first channel and the status of the second channel are both active, determine the first path as the transmission path of the service; or, when the status of the first channel is active and the status of the second channel is standby, determine the first path and the third path as the transmission paths of the service, and the first path is a unidirectional path, and in the first path, the first channel is the upstream channel of the second channel; or, when the status of the first channel is standby and the status of the second channel is active, determine the fourth path and the first path as the transmission paths of the service, the first path is a unidirectional path, and in the first path, the second channel is the upstream channel of the first channel; or, when the status of the first channel and the status of the second channel are both standby, determine the first path as the transmission path of the service.

[0440] In a possible implementation, the first channel and the third channel are configured as 1+1 protection switching channels, and the second channel and the fourth channel are also configured as 1+1 protection switching channels; the processing unit 802 is configured to: when the state of the first channel and the state of the second channel are both active, determine the first path, the third path, and the fourth path as the transmission path of the service, and the first path is a bidirectional path, the third path and the fourth path are both unidirectional paths, the unidirectional third path includes the seventh channel, and the unidirectional fourth path includes the sixth channel; or, when the state of the first channel is active and the state of the second channel is standby, determine the first path and the third path as the transmission path of the service, and the first path is a unidirectional path and the third path is a bidirectional path, and in the first unidirectional path, the first channel is the upstream channel of the second channel; or, when the state of the first channel is standby and the state of the second channel is active, the fourth path and the first path are determined as transmission paths for the service, the first path is a unidirectional path and the fourth path is a bidirectional path, and in the first unidirectional path, the second channel is the upstream channel of the first channel; or, when the state of the first channel and the state of the second channel are both standby, the third path and the fourth path are determined as transmission paths for the service, the third path and the fourth path are both unidirectional paths, the unidirectional third path includes the sixth channel, and the unidirectional fourth path includes the seventh channel.

[0441] Refer to Figure 9, which is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. The data processing device 900 shown in Figure 9 includes a processing circuit 910 and an interface circuit 920. The processing circuit 910 and the interface circuit 920 are coupled to each other. It will be understood that the interface circuit 920 can be a transceiver or an input / output interface. Optionally, the data processing device 900 may also include a memory for storing instructions executed by the processing circuit or storing input data required for the processing circuit 910 to execute instructions or storing data generated after the processing circuit 910 executes instructions. In one example, the interface circuit 920 is used to perform the transceiver operations performed by the first network node provided in the above method embodiment, and the processing circuit 910 is used to perform other operations performed by the first network node in addition to the transceiver operations.

[0442] Refer to Figure 10, which is a schematic diagram of the structure of another data processing device provided in an embodiment of the present application. The data processing device 1000 shown in Figure 10 includes a processor 1010 and a communication interface 1020. The processor 1010 and the communication interface 1020 are coupled to each other. It will be understood that the communication interface 1020 can be a transceiver or an input / output interface. Optionally, the communication device 1000 may further include a memory 1030 for storing instructions executed by the processor 1010 or storing input data required by the processor 1010 to execute instructions or storing data generated after the processor 1010 executes instructions. In one example, the communication interface 1020 is used to perform the transceiver operations performed by the first network node provided in the above method embodiment, and the processor 1010 is used to perform other operations performed by the first network node in addition to the transceiver operations.

[0443] The terms "first," "second," "third," "fourth," and the like (if any) in the specification and claims of this application and in the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or sequential sequence. It should be understood that the terms used in this manner are interchangeable where appropriate so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having," and any variations thereof, are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0444] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0445] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of units is only a logical business division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0446] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0447] In addition, each business unit in each embodiment of the present application can be integrated into a processing unit, each unit can exist physically separately, or two or more units can be integrated into a single unit. The above-mentioned integrated units can be implemented in the form of hardware or software business units.

[0448] If the integrated unit is implemented in the form of a software business unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0449] Those skilled in the art will appreciate that, in one or more of the above examples, the services described herein can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these services can be stored on a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, including any medium that facilitates the transmission of computer programs from one location to another. Storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0450] The above specific implementation methods further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention.

[0451] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A communication system, characterized in that: The communication system includes a target network; The target network includes at least one sub-network domain, the at least one sub-network domain includes a first sub-network domain, the first sub-network domain includes a first network node and a second network node, the first network node belongs to a first path, the second network node belongs to a second path, the first path includes a first channel and a second channel connected to the first network node, the second path includes a third channel and a fourth channel connected to the second network node, the first channel and the third channel are each other's protection switching channels, and the second channel and the fourth channel are each other's protection switching channels; The first network node and / or the second network node is used to determine a transmission path of the service based on a state of a channel; wherein: The state of the channel includes at least one of a state set, the state set including: a state of the first channel, a state of the second channel, a state of the third channel, and a state of the fourth channel; The transmission path of the service is one or more paths in a path set, and the path set includes: the first path, the second path, the third path and the fourth path, the third path includes the first channel and the fourth channel, and the fourth path includes the second channel and the third channel.

2. The system according to claim 1, characterized in that The first network node and the second network node are the same network node.

3. The system according to claim 1, characterized in that The first network node and the second network node are different network nodes, and a fifth channel is included between the first network node and the second network node; The third path and the fourth path further include the fifth channel.

4. The system according to claim 3, characterized in that The state set also includes the state of the fifth channel.

5. The system according to claim 1, characterized in that The first network node and the second network are different network nodes, a sixth channel and a seventh channel are included between the first network node and the second network node, and the third path and the fourth path both include the sixth channel or the seventh channel, wherein: When the first network node sends a service to the second network node through the third path, the third path includes the seventh channel; When the second network node sends the service to the first network node through the third path, the third path includes the sixth channel; When the first network node sends the service to the second network node through the fourth path, the fourth path includes the sixth channel; When the second network node sends the service to the first network node through the fourth path, the fourth path includes the seventh channel.

6. The system according to claim 5, characterized in that The state set also includes a state of the sixth channel and a state of the seventh channel.

7. The system according to any one of claims 3 to 6, characterized in that: The first network node and the second network node are both operator edge devices PE.

8. The system according to any one of claims 1 to 6, characterized in that: The first network node and the second network node are operator intermediate devices.

9. The system according to claim 8, characterized in that The first channel, the second channel, the third channel and the fourth channel are all small particle channels; or, The first channel, the second channel, the third channel and the fourth channel are all metropolitan area transport network (MTN) channels.

10. The system according to claim 7, characterized in that The first channel and the third channel are access circuit AC links, and the second channel and the fourth channel are small particle channels; or The first channel and the third channel are AC links, and the second channel and the fourth channel are MTN channels.

11. A data processing method, characterized in that: Applied to a first network node, the method comprises: Get the state of the channel, the state of the channel includes at least one of the state sets, the state set includes: the state of the first channel state, the state of the second channel, the state of the third channel and the state of the fourth channel, the first channel and the second channel are respectively connected to the first network node, the first channel and the second channel belong to the first path, the third channel and the fourth channel are respectively connected to the second network node, the third channel and the fourth channel belong to the second path, the first channel and the third channel are each other's protection switching channels, and the second channel and the fourth channel are each other's protection switching channels; According to the state of the channel, a transmission path of the service is determined, and the transmission path of the service is one or more paths in a path set, and the path set includes: the first path, the second path, the third path and the fourth path, the third path includes the first channel and the fourth channel, and the fourth path includes the second channel and the third channel.

12. The method according to claim 11, characterized in that The first network node and the second network node are the same network node.

13. The method according to claim 11, characterized in that The first network node and the second network node are different network nodes, a fifth channel is included between the first network node and the second network node, and the third path and the fourth path also include the fifth channel.

14. The method according to claim 13, characterized in that The state set also includes the state of the fifth channel.

15. The system according to claim 11, characterized in that The first network node and the second network are different network nodes, a sixth channel and a seventh channel are included between the first network node and the second network node, and the third path and the fourth path both include the sixth channel or the seventh channel, wherein: When the first network node sends a service to the second network node through the third path, the third path includes the seventh channel; When the second network node sends the service to the first network node through the third path, the third path includes the sixth channel; When the first network node sends the service to the second network node through the fourth path, the fourth path includes the sixth channel; When the second network node sends the service to the first network node through the fourth path, the fourth path includes the seventh channel.

16. The system according to claim 15, characterized in that The state set also includes a state of the sixth channel and a state of the seventh channel.

17. The method according to any one of claims 13 to 16, characterized in that: The first network node and the second network node are both operator edge devices PE.

18. The method according to any one of claims 11 to 16, characterized in that: The first network node and the second network node are operator intermediate devices.

19. The system according to claim 18, characterized in that The first channel, the second channel, the third channel and the fourth channel are all small particle channels; or, The first channel, the second channel, the third channel and the fourth channel are all metropolitan area transport network (MTN) channels.

20. The system according to claim 17, characterized in that The first channel and the third channel are access circuit AC links, and the second channel and the fourth channel are small particle channels; or, The first channel and the third channel are AC links, and the second channel and the fourth channel are MTN channels.

21. The method according to any one of claims 11 to 20, characterized in that: The state of the first channel is determined according to a first factor, and the first factor includes one or more of the following: The state of the third channel, local fault information of the first channel, first remote fault indication information received through the first channel, and the state of the second channel.

22. The method according to claim 21, characterized in that If the first network node and the second network node are different network nodes, the first factor further includes: The state of the target channel is used to indicate whether the target channel is faulty; wherein: When a fifth channel is included between the first network node and the second network node, the target channel includes the fifth channel; When a sixth channel and a seventh channel are included between the first network node and the second network node, the target channel includes the sixth channel and the seventh channel.

23. The method according to claim 22, characterized in that The first path is a working path, and the state of the first channel is determined in the following manner: When the state of the third channel is active, determining that the state of the first channel is standby; or, When the local fault information of the first channel indicates that a local fault occurs in the first channel, determining that the state of the first channel is standby; or, When receiving the first remote fault indication information through the first channel, determining that the state of the first channel is standby; or, When the state of the second channel is standby and the state of the target channel indicates that the target channel is faulty, it is determined that the state of the first channel is standby.

24. The method according to claim 22, characterized in that The first path is a protection path, and the state of the first channel is determined in the following manner: When the state of the third channel is standby, determining that the state of the first channel is active; or, When the local fault information of the first channel indicates that a local fault occurs in the first channel, determining that the state of the first channel is standby; or, When receiving the first remote fault indication information through the first channel, determining that the state of the first channel is standby; When the state of the second channel is standby and the state of the target channel indicates that the target channel is faulty, it is determined that the state of the first channel is standby.

25. The method according to any one of claims 11 to 24, characterized in that: The state of the acquisition channel includes: The state of the third channel and the state of the fourth channel sent by the second network node are received.

26. The method according to claim 25, characterized in that If a fifth channel is included between the first network node and the second network node, the receiving the state of the third channel and the state of the fourth channel sent by the second network node includes: The state of the third channel and the state of the fourth channel sent by the second network node through the fifth channel are received.

27. The method according to claim 25, characterized in that If a sixth channel and a seventh channel are included between the first network node and the second network node, the receiving the state of the third channel and the state of the fourth channel sent by the second network node includes: receiving a state of the third channel sent by the second network node through the sixth channel; and receiving a state of the fourth channel sent by the second network node through the seventh channel.

28. The method according to any one of claims 25 to 27, characterized in that: The receiving the state of the third channel sent by the second network node includes: The state information of the third channel sent by the second network node is received, where the state information includes the state of the third channel.

29. The method according to claim 28, characterized in that The receiving the state information of the third channel sent by the second network node includes: A first operation, administration and maintenance (OAM) code block is received from the second network node, where the first OAM code block carries the status information.

30. The method according to claim 29, characterized in that The type field of the first OAM code block indicates that the first OAM code block carries the status information.

31. The method according to claim 29, characterized in that The first OAM code block is a first automatic protection switching APS code block, and the state information is carried by an available field of the first APS code block.

32. The method according to claim 28, characterized in that The receiving the state information of the third channel sent by the second network node includes: A first Ethernet message sent by the second network node is received, where the first Ethernet message includes the state information.

33. The method according to any one of claims 28 to 32, characterized in that: The status information also includes: Local fault information of the third channel, and / or second remote fault indication information received through the third channel.

34. The method according to any one of claims 11 to 33, characterized in that: The method further comprises: The state of the first channel and the state of the second channel are sent to the second network node.

35. The method according to claim 23 or 24, characterized in that The method further comprises: When the state of the second channel is standby and the state of the target channel indicates that the target channel is faulty, third remote fault indication information is sent through the first channel.

36. The method according to any one of claims 21 to 35, characterized in that The target fault indication information is carried by the second OAM code block, and the target fault indication information includes the first remote fault indication information, the second remote fault indication information, or the third remote fault indication information.

37. The method according to claim 36, characterized in that The type field of the second OAM code block indicates that the second OAM code block carries the target remote fault indication information.

38. The method according to claim 36, characterized in that The second OAM code block is a basic code block, and the target remote fault indication information is carried through a reserved field or a remote defect indication RDI field of the basic code block.

39. The method according to claim 36, characterized in that The second OAM code block is a second APS code block, and the target remote fault indication information is carried by an available field of the second APS code block.

40. The method according to any one of claims 11 to 39, characterized in that: The method further comprises: Sending or receiving a target OAM message through the first channel, wherein: The target OAM message is an end-to-end small-granularity channel OAM message; or, The O code block type field of the target OAM message indicates the message type of the target OAM message; or, The type field of the target OAM code block indicates the message type of the target OAM message.

41. The method according to any one of claims 13 to 16, characterized in that: The first channel and the third channel are configured as 1:1 protection switching channels, and the second channel and the fourth channel are also configured as 1:1 protection switching channels; The determining, according to the state of the channel, a transmission path of the service includes: When the state of the first channel and the state of the second channel are both active, determining the first path as a transmission path for the service; or, When the state of the first channel is active and the state of the second channel is standby, determining the third path as a transmission path for the service; or, When the state of the first channel is standby and the state of the second channel is active, determining the fourth path as a transmission path for the service; or, When the states of the first channel and the second channel are both standby, the first path is determined as a transmission path for the service or the service is determined to be discarded.

42. The method according to any one of claims 13 to 16, characterized in that: The first channel and the third channel are configured as 1:1 protection switching channels, and the second channel and the fourth channel are configured as 1+1 protection switching channels; The determining, according to the state of the channel, a transmission path of the service includes: When the states of the first channel and the second channel are both active, determining the first path and the third path as transmission paths of the service, and the third path is a unidirectional path, and in the third path, the first network node is an upstream node of the second network node; or, When the state of the first channel is active and the state of the second channel is standby, the first path and the third path are determined as transmission paths of the service, and the first path is a unidirectional path, and in the first path, the first channel is an upstream channel of the second channel; or, When the state of the first channel is standby and the state of the second channel is active, determining the fourth path as a transmission path for the service; or, When the states of the first channel and the second channel are both standby, the fourth path is determined as the transmission path of the service, the fourth path is a unidirectional path, and in the fourth path, the first network node is a downstream node of the second network node. Travel node.

43. The method according to any one of claims 13 to 16, characterized in that: The first channel and the third channel are configured as 1+1 protection switching channels, and the second channel and the fourth channel are configured as 1:1 protection switching channels; The determining, according to the state of the channel, a transmission path of the service includes: When the states of the first channel and the second channel are both active, determining the first path and the fourth path as transmission paths of the service, and the fourth path is a unidirectional path, and in the fourth path, the first network node is an upstream node of the second network node; or, When the state of the first channel is active and the state of the second channel is standby, determining the third path as a transmission path for the service; or, When the state of the first channel is standby and the state of the second channel is active, the fourth path and the first path are determined as transmission paths of the service, the first path is a unidirectional path, and in the first path, the second channel is an upstream channel of the first channel; or, When the states of the first channel and the second channel are both standby, the third path is determined as the transmission path of the service, and the third path is a unidirectional path. In the third path, the second network node is an upstream node of the first network node.

44. The method according to claim 13 or 14, characterized in that The first channel and the third channel are configured as 1+1 protection switching channels, and the second channel and the fourth channel are also configured as 1+1 protection switching channels; The determining, according to the state of the channel, a transmission path of the service includes: When the state of the first channel and the state of the second channel are both active, determining the first path as a transmission path for the service; or, When the state of the first channel is active and the state of the second channel is standby, the first path and the third path are determined as transmission paths of the service, and the first path is a unidirectional path, and in the first path, the first channel is an upstream channel of the second channel; or, When the state of the first channel is standby and the state of the second channel is active, the fourth path and the first path are determined as transmission paths of the service, the first path is a unidirectional path, and in the first path, the second channel is an upstream channel of the first channel; or, When the states of the first channel and the second channel are both standby, the first path is determined as the transmission path of the service.

45. The method according to claim 15 or 16, characterized in that The first channel and the third channel are configured as 1+1 protection switching channels, and the second channel and the fourth channel are also configured as 1+1 protection switching channels; The determining, according to the state of the channel, a transmission path of the service includes: When the states of the first channel and the second channel are both active, the first path, the third path, and the fourth path are determined as transmission paths for the service, and the first path is a bidirectional path, the third path and the fourth path are both unidirectional paths, the unidirectional third path includes the seventh channel, and the unidirectional fourth path includes the sixth channel; or, When the state of the first channel is active and the state of the second channel is standby, the first path and the third path are determined as transmission paths of the service, and the first path is a unidirectional path and the third path is a bidirectional path, and in the unidirectional first path, the first channel is an upstream channel of the second channel; or, When the state of the first channel is standby and the state of the second channel is active, the fourth path and the first The path is determined to be a transmission path of the service, the first path is a unidirectional path and the fourth path is a bidirectional path, and in the unidirectional first path, the second channel is an upstream channel of the first channel; or, When the states of the first channel and the second channel are both standby, the third path and the fourth path are determined as transmission paths for the service, and the third path and the fourth path are both unidirectional paths, the unidirectional third path includes the sixth channel, and the unidirectional fourth path includes the seventh channel.

46. ​​A data processing device, characterized in that: The device comprises: an acquisition unit, configured to acquire a state of a channel, the state of the channel including at least one of a state set, the state set including: a state of a first channel, a state of a second channel, a state of a third channel, and a state of a fourth channel, the first channel and the second channel are respectively connected to the first network node, the first channel and the second channel belong to a first path, the third channel and the fourth channel are respectively connected to a second network node, the third channel and the fourth channel belong to a second path, the first channel and the third channel are each other's protection switching channels, and the second channel and the fourth channel are each other's protection switching channels; A processing unit is used to determine a transmission path of the service according to the state of the channel, where the transmission path of the service is one or more paths in a path set, where the path set includes: the first path, the second path, a third path and a fourth path, where the third path includes the first channel and the fourth channel, and the fourth path includes the second channel and the third channel.

47. A data processing device, characterized in that: include: A communication interface and a processor. According to the communication interface and the processor, the communication device executes the method described in any one of claims 11-45.

48. A computer-readable storage medium, characterized in that The method comprises instructions or a computer program which, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 45.

49. A computer program product, characterized in that The invention comprises a computer program which, when executed on a processor, executes the method according to any one of claims 1 to 45 above.

Citation Information

Patent Citations

  • Data processing method and device and communication system

    CN118869454A

  • Path protection method and network node

    CN112787916A

  • Dual-homing protection method, system and equipment

    CN113810281A

  • Method and device for performing protection switching in segment routing (SR) network

    CN114844817A

  • Fault detection method and apparatus, electronic device and computer-readable medium

    WO2021073291A1