CN116471164A - Communication method, device and system - Google Patents

Communication method, device and system Download PDF

Info

Publication number
CN116471164A
CN116471164A CN202210033798.4A CN202210033798A CN116471164A CN 116471164 A CN116471164 A CN 116471164A CN 202210033798 A CN202210033798 A CN 202210033798A CN 116471164 A CN116471164 A CN 116471164A
Authority
CN
China
Prior art keywords
check
code stream
segment
segments
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210033798.4A
Other languages
Chinese (zh)
Inventor
梁伟光
耿东玉
马会肖
黄科超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202210033798.4A priority Critical patent/CN116471164A/en
Publication of CN116471164A publication Critical patent/CN116471164A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0847Transmission error

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

A communication method, device and system belong to the technical field of communication. The method comprises the following steps: after obtaining m service code streams to be transmitted and at least one check code stream, the coding node sends a plurality of code rates comprising the m service code streams and the at least one check code stream to the decoding node. Wherein different ones of the multiple streams are for transmission over different links; m is more than or equal to 1; the check code stream comprises a plurality of check segments, and at least one check code stream comprises: a first check code stream; the service code stream comprises a plurality of service segments corresponding to the plurality of check segments in the first check code stream one by one, and the check segments in the first check code stream are obtained by encoding the corresponding m service segments in the m service code streams. The method and the device can detect whether the fault link exists between the nodes or not, and are used for detecting the fault link.

Description

Communication method, device and system
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a communication method, device, and system.
Background
The communication system includes a plurality of nodes, between which the nodes can communicate via a code stream.
Taking a first node and a second node in a communication system as an example, a switching node exists on a link between the first node and the second node, and when the first node communicates with the second node, the first node can send a code stream to the second node through the switching node.
However, the switching node is relatively easy to fail, so that a link of code stream transmission fails, and the error rate of the code stream received by the second node is relatively high. Also, when the bit error rate of the code stream received by the second node is high, the second node cannot determine whether the high bit error rate is caused by a link failure transmitted by the code stream, and thus a method for detecting whether a failed link exists between the nodes is needed.
Disclosure of Invention
The application provides a communication method, a device and a system, which can realize the detection of whether a fault link exists between nodes, and the technical scheme is as follows:
in a first aspect, a communication method is provided, the method comprising: after obtaining m service code streams to be transmitted and at least one check code stream, the coding node sends a plurality of code rates comprising the m service code streams and the at least one check code stream to the decoding node. Wherein different ones of the multiple barcode streams are for transmission over different links; m is more than or equal to 1; the check code stream includes a plurality of check segments, and the at least one check code stream includes: a first check code stream; the service code stream comprises a plurality of service segments corresponding to the plurality of check segments in the first check code stream one by one, and the check segments in the first check code stream are obtained by encoding the corresponding m service segments in the m service code streams.
In the communication method provided by the embodiment of the application, the encoding node can acquire the first check code stream and send m service code streams and the first check code stream to the decoding node. The first check code stream comprises a plurality of check segments, and each check segment in the first check code stream is obtained by encoding a service segment in m service code streams. After receiving the first check code stream, the decoding node can check at least part of check segments in the first check code stream, and if the error rate of the check segments in the at least part of check segments is higher, the decoding node indicates that a certain bar code stream is continuously bit-wrong due to link failure, so that it can be determined that a failure link exists in m service code streams and links for transmitting the first check code stream. Therefore, in the communication method provided by the embodiment of the application, the decoding node can determine that a fault link exists in the link of the code stream transmission, and when the error rate of the code stream received by the decoding node is higher, the decoding node can determine whether the higher error rate is caused by the link fault transmitted by the code stream.
The encoding mode adopted by the check segment in the first check code stream is not limited, for example, any one of the following encoding modes can be adopted by the check segment in the first check code stream: parity code encoding, cyclic redundancy check (cyclic redundancy check, CRC) encoding, hamming code encoding, cyclic code encoding, and reed-solomon (RS) code encoding.
Illustratively, the service code stream and the first check code stream each include at least one data frame; the check segment in the first check code stream includes: the ith bit in the (r) data frame of the first check code stream is not less than 1 and not more than 1; the service segment corresponding to the check segment in the first check code stream comprises: and the ith bit in the (r) th data frame in the service code stream to which the service segment belongs. In this case, the parity check code encoding mode may be adopted for the check segment in the first check code stream, and of course, other encoding modes may be adopted for the check segment, which is not limited in this application.
At least one check code stream in the above content includes a first check code stream, and the multi-bar code stream sent by the encoding node includes m service code streams and the first check code stream as an example, optionally, on this basis, the at least one check code stream further includes a second check code stream, and the multi-bar code stream sent by the encoding node may further include the second check code stream.
The second check code stream comprises n check segments, n is more than or equal to m, the n check segments are in one-to-one correspondence with the n bar code stream segments, and the check segments in the second check code stream are obtained by encoding the corresponding code stream segments; the n bar code stream segments belong to n reference code streams in one-to-one correspondence. The n reference code streams include the m service code streams, or the n reference code streams include the m service code streams and the first check code stream.
Illustratively, when the multiple bar code streams each include at least one data frame, the n check segments all belong to an r data frame in the second check code stream, and r is greater than or equal to 1; the code stream segment corresponding to the check segment in the second check code stream comprises: and an r-th data frame in the code stream to which the code stream section belongs. It can be seen that the encoding node encodes the r data frame in the reference code stream to obtain a check segment in the second check code stream. After the r-th data frame in the n reference code streams is encoded, n check segments in the second check code stream can be obtained.
When the multi-bar code stream comprises the second check code stream, if the decoding node determines that the error rate of the check segment in at least part of the check segments of the first check code stream is greater than the first probability, the decoding node can also check the check segments according to the code stream segments (the code stream segments belong to the service code stream) corresponding to the check segments in at least part of the check segments in the second check code stream so as to determine whether the check segments are in error; at this time, the above-mentioned fault conditions further include: the error rate of the check segment in at least part of the check segments of the second check code stream is greater than the second probability.
And if the error rate of the check segment in at least part of the check segments of the second check code stream is smaller than or equal to the second probability, indicating that the error rate of the m service code streams is lower. At this time, if the decoding node determines that the error rate of the check segment in at least part of the check segments of the first check code stream is greater than the first probability (which indicates that the error rate of the m service code streams is higher), it indicates that the first check code stream is in error, and at this time, the decoding node cannot determine that a faulty link exists in the links transmitted by the multiple code streams. In this way, the decoding node is prevented from misjudging whether the faulty link exists according to the first check code stream with errors.
And if the error rate of the check segment in at least part of the check segments of the second check code stream is greater than the second probability, indicating that the error rate of the m service code streams is higher. At this time, if the decoding node determines that the error rate of the check segment in at least part of the check segments of the first check code stream is greater than the first probability (which indicates that the error rate of the m service code streams is higher), it indicates that the first check code stream is error-free, and at this time, the decoding node can determine that a faulty link exists in the links transmitted by the multiple code streams.
Optionally, when the coding node codes the n reference code streams, the coding node may code the n reference code streams in a corresponding coding manner according to the length of the code stream segment. For example, the length of the code stream segment is greater than the target length, and the check segment in the second check code stream is encoded by adopting a first encoding mode. Or the length of the code stream section is smaller than or equal to the target length, and the check section in the second check code stream is encoded by adopting a second encoding mode. Wherein the error correction capability of the first encoding mode is greater than the error correction capability of the second encoding mode. For example, the first coding scheme is a CRC coding scheme, and the second coding scheme is a parity coding scheme. When the length of the code stream section is larger than the target length, more errors easily occur in the transmission process of the code stream section, and at this time, the coding node can code n pieces of reference code streams by adopting a first coding mode with stronger error correction capability; when the length of the code stream segment is smaller than or equal to the target length, errors easily occurring in the transmission process of the code stream segment are fewer, and at this time, the coding node can code the n reference code streams by adopting a second coding mode with weaker error correction capability.
Further, the m service code streams may be encoded code streams or not encoded code streams.
When the m service code streams are coded code streams, the coding node may first acquire m data code streams to be transmitted when acquiring the m service code streams. For example, the coding node divides the m data code streams according to the data to be transmitted, or the coding node obtains the m data code streams according to the code streams sent by other nodes. And then, the coding node can acquire m business code streams corresponding to the m data code streams one by one according to the m data code streams. Correspondingly, after receiving m service code streams, the decoding node may further obtain the m data code streams according to the m service code streams.
Wherein, for one service code stream corresponding to one data code stream, the service code stream includes: the data code stream and a first additional section obtained by encoding the data code stream; the encoding node may encode the data code stream to obtain the first additional segment, and further obtain a service code stream including the data code stream and the first additional segment. The decoding node may decode the service code stream to correct the data code stream according to the first additional segment, so as to obtain a data code stream in the service code stream.
Each of at least one check code stream (e.g., the first check code stream and the second check code stream) obtained by the encoding node according to the m service code streams includes a plurality of check segments. And for the check segment in the first check code stream, the check segment is obtained by encoding bits in m service segments in m service code streams. And for the check segment in the second check code stream, the check segment is obtained by encoding bits in the code stream segment corresponding to the check segment.
In an alternative manner, the check code stream includes a check segment obtained by encoding bits in the data code stream; and, the check code stream further includes: and a second additional segment obtained by encoding the plurality of check segments in the check code stream. When the check code stream includes the second additional segment, the decoding node may correct the check segment in the check code stream according to the second additional segment before checking at least part of the check segments in the first check code stream, so as to improve the accuracy of the check segment. Alternatively, the at least part of the check segments in the first check code stream may be all the check segments in the first check code stream.
Or in another alternative, the check code stream includes a check segment obtained by encoding bits in the data code stream and a check segment obtained by encoding bits in the first additional segment; and, the check code stream may not include the second additional segment. Optionally, the at least part of the check segments in the first check code stream may include a check segment obtained by encoding bits in the data code stream and a check segment obtained by encoding bits in the first additional segment; alternatively, the at least part of the check segments in the first check code stream may comprise check segments encoded from bits in the data code stream.
Further, the communication system provided by the application may include at least three nodes connected in sequence, where one edge node of the at least three nodes is configured to send a code stream to another edge node through a switching node, and the switching node is located between the one edge node and the another edge node; the encoding node and the decoding node are any two nodes of the at least three nodes.
In a second aspect, there is provided a communication method, the method comprising: after receiving the multi-bar code stream sent by the encoding node, the decoding node checks the first check segment according to the service segment corresponding to the first check segment to determine whether the first check segment is wrong; at least part of the check segments in the first check code stream are all the first check segments; when the fault condition is met, determining that a fault link exists in the links transmitted by the multi-bar code stream; the fault condition includes: the error rate of the first check segment is greater than a first probability.
Wherein the multi-barcode stream comprises: m business code streams and at least one check code stream, wherein the first check code stream comprises a plurality of check sections, and m is more than or equal to 1; the at least one check code stream comprises a first check code stream, the service code stream comprises a plurality of service segments corresponding to the plurality of check segments in the first check code stream one by one, and the check segments in the first check code stream are obtained by encoding corresponding m service segments in the m service code streams; different ones of the multiple streams are for transmission over different links.
In the communication method provided by the embodiment of the application, the encoding node can acquire the first check code stream and send m service code streams and the first check code stream to the decoding node. The first check code stream comprises a plurality of check segments, and each check segment in the first check code stream is obtained by encoding a service segment in m service code streams. After receiving the first check code stream, the decoding node can check at least part of check segments in the first check code stream, and if the error rate of the check segments in the at least part of check segments is higher, the decoding node indicates that a certain bar code stream is continuously bit-wrong due to link failure, so that it can be determined that a failure link exists in m service code streams and links for transmitting the first check code stream. Therefore, in the communication method provided by the embodiment of the application, the decoding node can determine that a fault link exists in the link of the code stream transmission, and when the error rate of the code stream received by the decoding node is higher, the decoding node can determine whether the higher error rate is caused by the link fault transmitted by the code stream.
Optionally, the at least one check code stream further includes: the second check code stream comprises n check segments, the n check segments are in one-to-one correspondence with the n bar code stream segments, and the check segments in the second check code stream are obtained by encoding the corresponding code stream segments; the n bar code stream segments belong to n reference code streams in one-to-one correspondence, wherein the n reference code streams comprise the m business code streams, and n is more than or equal to m.
When the multi-bar code stream comprises a second check code stream, if the decoding node determines that the error rate of the first check segment is greater than the first probability, the decoding node can also check the second check segment according to the code stream segment corresponding to the check segment (the code stream segment belongs to the service code stream) in the second check segment so as to determine whether the second check segment is in error; at this time, the above-mentioned fault conditions further include: the error rate of the second check segment is greater than the second probability. The code stream segment corresponding to the second check segment belongs to the service code stream; at least part of the check segments in the second check code stream are all the second check segments.
If the error rate of the second check segment is smaller than or equal to the second probability, the error rate of the m service code streams is lower. At this time, if the decoding node determines that the error rate of the first check segment is greater than the first probability (which indicates that the error rate of the m service code streams is higher), it indicates that the first check code stream is in error, and at this time, the decoding node does not determine that a faulty link exists in the links transmitted by the multiple code streams. In this way, the decoding node is prevented from misjudging whether the faulty link exists according to the first check code stream with errors.
If the error rate of the second check segment is greater than the second probability, the error rate of the m service code streams is higher. At this time, if the decoding node determines that the error rate of the first check segment is greater than the first probability (which indicates that the error rate of the m service code streams is higher), it indicates that the first check code stream is error-free, and at this time, the decoding node may determine that a faulty link exists in the links transmitted by the multiple code streams.
Optionally, the method further comprises: when the fault condition is met, if the m service code streams have fault service code streams with the error rate larger than the target error rate, the decoding node determines that the link transmitted by the fault service code streams is the fault link, so that the fault link is positioned, and effective communication among the nodes is ensured.
Optionally, after determining that the m service code streams have a fault service code stream with an error rate greater than the target error rate, the decoding node may perform data recovery on the fault service code stream according to all code streams except the fault service code stream in the multiple code streams (including the m service code streams and the first check code stream), so as to ensure effective communication between the nodes. It should be noted that, the first check code stream is related to the m service code streams, so the decoding node may perform data recovery on the fault service code stream according to the first check code stream and other service code streams except for the fault service code stream in the m service code streams.
Optionally, after determining the above-mentioned failed link, the decoding node may further perform an alarm operation for the failed link, so that a worker may repair the failed link in time, and ensure effective communication between nodes as early as possible.
Further, the m service code streams may be encoded code streams or not encoded code streams.
When the m service code streams are coded code streams, the coding node may first acquire m data code streams to be transmitted when acquiring the m service code streams. For example, the coding node divides the m data code streams according to the data to be transmitted, or the coding node obtains the m data code streams according to the code streams sent by other nodes. And then, the coding node can acquire m business code streams corresponding to the m data code streams one by one according to the m data code streams. Correspondingly, after receiving m service code streams, the decoding node may further obtain the m data code streams according to the m service code streams.
Wherein, for one service code stream corresponding to one data code stream, the service code stream includes: the data code stream and a first additional section obtained by encoding the data code stream; the encoding node may encode the data code stream to obtain the first additional segment, and further obtain a service code stream including the data code stream and the first additional segment. The decoding node may decode the service code stream to correct the data code stream according to the first additional segment, so as to obtain a data code stream in the service code stream.
Each of at least one check code stream (e.g., the first check code stream and the second check code stream) obtained by the encoding node according to the m service code streams includes a plurality of check segments. And for the check segment in the first check code stream, the check segment is obtained by encoding bits in m service segments in m service code streams. And for the check segment in the second check code stream, the check segment is obtained by encoding bits in the code stream segment corresponding to the check segment.
In an alternative manner, the check code stream includes a check segment obtained by encoding bits in the data code stream; and, the check code stream further includes: and a second additional segment obtained by encoding the plurality of check segments in the check code stream. When the check code stream includes the second additional segment, the decoding node may correct the check segment in the check code stream according to the second additional segment before checking at least part of the check segments in the first check code stream, so as to improve the accuracy of the check segment. Alternatively, in this case, the above-mentioned at least partial check segments in the first check code stream may be all check segments in the first check code stream, in other words, each check segment in the first check code stream is a first check segment.
Or in another alternative, the check code stream includes a check segment obtained by encoding bits in the data code stream and a check segment obtained by encoding bits in the first additional segment; and, the check code stream may not include the second additional segment. Optionally, the at least part of the check segments in the first check code stream may include a check segment obtained by encoding bits in the data code stream and a check segment obtained by encoding bits in the first additional segment; alternatively, the at least part of the check segments in the first check code stream may comprise check segments encoded from bits in the data code stream.
Further, the communication system provided by the application may include at least three nodes connected in sequence, where one edge node of the at least three nodes is configured to send a code stream to another edge node through a switching node, and the switching node is located between the one edge node and the another edge node; the encoding node and the decoding node are any two nodes of the at least three nodes.
In a third aspect, there is provided a communication apparatus, the communication apparatus being a coding node in a communication system, the communication apparatus comprising: the device comprises a first acquisition module, a second acquisition module and a sending module. The first acquisition module is used for acquiring m business code streams to be transmitted, wherein m is more than or equal to 1; the second acquisition module is used for acquiring at least one check code stream; the check code stream includes a plurality of check segments, and the at least one check code stream includes: a first check code stream; the service code stream comprises a plurality of service segments which are in one-to-one correspondence with the plurality of check segments in the first check code stream, and the check segments in the first check code stream are obtained by encoding the corresponding m service segments in the m service code streams; the sending module is used for sending the multi-bar code stream to the decoding node; the multi-barcode stream includes: and the m service code streams and the at least one check code stream, and different code streams in the multi-code stream are used for transmission on different links.
In the application, the encoding node may acquire the first check code stream, and send m service code streams and the first check code stream to the decoding node. The first check code stream comprises a plurality of check segments, and each check segment in the first check code stream is obtained by encoding a service segment in m service code streams. After receiving the first check code stream, the decoding node can check at least part of check segments in the first check code stream, and if the error rate of the check segments in the at least part of check segments is higher, the decoding node indicates that a certain bar code stream is continuously bit-wrong due to link failure, so that it can be determined that a failure link exists in m service code streams and links for transmitting the first check code stream. Therefore, the decoding node in the application can determine that a fault link exists in the link of the code stream transmission, and when the error rate of the code stream received by the decoding node is higher, the decoding node can determine whether the higher error rate is caused by the link fault transmitted by the code stream.
The encoding mode adopted by the check segment in the first check code stream is not limited, for example, any one of the following encoding modes can be adopted by the check segment in the first check code stream: parity code encoding scheme, CRC encoding scheme, hamming code encoding scheme, cyclic code encoding scheme, and RS code encoding scheme.
Illustratively, the service code stream and the first check code stream each include at least one data frame; the check segment in the first check code stream includes: the ith bit in the (r) data frame of the first check code stream is not less than 1 and not more than 1; the service segment corresponding to the check segment in the first check code stream comprises: and the ith bit in the (r) th data frame in the service code stream to which the service segment belongs. In this case, the parity check code encoding mode may be adopted for the check segment in the first check code stream, and of course, other encoding modes may be adopted for the check segment, which is not limited in this application.
At least one check code stream in the above content includes a first check code stream, and the multi-bar code stream sent by the encoding node includes m service code streams and the first check code stream as an example, optionally, on this basis, the at least one check code stream further includes a second check code stream, and the multi-bar code stream sent by the encoding node may further include the second check code stream.
The second check code stream comprises n check segments, n is more than or equal to m, the n check segments are in one-to-one correspondence with the n bar code stream segments, and the check segments in the second check code stream are obtained by encoding the corresponding code stream segments; the n bar code stream segments belong to n reference code streams in one-to-one correspondence. The n reference code streams include the m service code streams, or the n reference code streams include the m service code streams and the first check code stream.
Illustratively, when the multiple bar code streams each include at least one data frame, the n check segments all belong to an r data frame in the second check code stream, and r is greater than or equal to 1; the code stream segment corresponding to the check segment in the second check code stream comprises: and an r-th data frame in the code stream to which the code stream section belongs. It can be seen that the encoding node encodes the r data frame in the reference code stream to obtain a check segment in the second check code stream. After the r-th data frame in the n reference code streams is encoded, n check segments in the second check code stream can be obtained.
When the multi-bar code stream comprises the second check code stream, if the decoding node determines that the error rate of the check segment in at least part of the check segments of the first check code stream is greater than the first probability, the decoding node can also check the check segments according to the code stream segments (the code stream segments belong to the service code stream) corresponding to the check segments in at least part of the check segments in the second check code stream so as to determine whether the check segments are in error; at this time, the above-mentioned fault conditions further include: the error rate of the check segment in at least part of the check segments of the second check code stream is greater than the second probability.
And if the error rate of the check segment in at least part of the check segments of the second check code stream is smaller than or equal to the second probability, indicating that the error rate of the m service code streams is lower. At this time, if the decoding node determines that the error rate of the check segment in at least part of the check segments of the first check code stream is greater than the first probability (which indicates that the error rate of the m service code streams is higher), it indicates that the first check code stream is in error, and at this time, the decoding node cannot determine that a faulty link exists in the links transmitted by the multiple code streams. In this way, the decoding node is prevented from misjudging whether the faulty link exists according to the first check code stream with errors.
And if the error rate of the check segment in at least part of the check segments of the second check code stream is greater than the second probability, indicating that the error rate of the m service code streams is higher. At this time, if the decoding node determines that the error rate of the check segment in at least part of the check segments of the first check code stream is greater than the first probability (which indicates that the error rate of the m service code streams is higher), it indicates that the first check code stream is error-free, and at this time, the decoding node can determine that a faulty link exists in the links transmitted by the multiple code streams.
Optionally, when the coding node codes the n reference code streams, the coding node may code the n reference code streams in a corresponding coding manner according to the length of the code stream segment. For example, the length of the code stream segment is greater than the target length, and the check segment in the second check code stream is encoded by adopting a first encoding mode. Or the length of the code stream section is smaller than or equal to the target length, and the check section in the second check code stream is encoded by adopting a second encoding mode. Wherein the error correction capability of the first encoding mode is greater than the error correction capability of the second encoding mode. For example, the first coding scheme is a CRC coding scheme, and the second coding scheme is a parity coding scheme. When the length of the code stream section is larger than the target length, more errors easily occur in the transmission process of the code stream section, and at this time, the coding node can code n pieces of reference code streams by adopting a first coding mode with stronger error correction capability; when the length of the code stream segment is smaller than or equal to the target length, errors easily occurring in the transmission process of the code stream segment are fewer, and at this time, the coding node can code the n reference code streams by adopting a second coding mode with weaker error correction capability.
Further, the m service code streams may be encoded code streams or not encoded code streams.
When the m service code streams are coded code streams, the first acquisition module may first acquire m data code streams to be transmitted when acquiring the m service code streams. For example, the coding node divides the m data code streams according to the data to be transmitted, or the coding node obtains the m data code streams according to the code streams sent by other nodes. And then, the first acquisition module can acquire m business code streams corresponding to the m data code streams one by one according to the m data code streams. Correspondingly, after receiving m service code streams, the decoding node may further obtain the m data code streams according to the m service code streams.
Wherein, for one service code stream corresponding to one data code stream, the service code stream includes: the data code stream and a first additional section obtained by encoding the data code stream; the encoding node may encode the data code stream to obtain the first additional segment, and further obtain a service code stream including the data code stream and the first additional segment. The decoding node may decode the service code stream to correct the data code stream according to the first additional segment, so as to obtain a data code stream in the service code stream.
Each of at least one check code stream (e.g., the first check code stream and the second check code stream) obtained by the encoding node according to the m service code streams includes a plurality of check segments. And for the check segment in the first check code stream, the check segment is obtained by encoding bits in m service segments in m service code streams. And for the check segment in the second check code stream, the check segment is obtained by encoding bits in the code stream segment corresponding to the check segment.
In an alternative manner, the check code stream includes a check segment obtained by encoding bits in the data code stream; and, the check code stream further includes: and a second additional segment obtained by encoding the plurality of check segments in the check code stream. When the check code stream includes the second additional segment, the decoding node may correct the check segment in the check code stream according to the second additional segment before checking at least part of the check segments in the first check code stream, so as to improve the accuracy of the check segment. Alternatively, the at least part of the check segments in the first check code stream may be all the check segments in the first check code stream.
Or in another alternative, the check code stream includes a check segment obtained by encoding bits in the data code stream and a check segment obtained by encoding bits in the first additional segment; and, the check code stream may not include the second additional segment. Optionally, the at least part of the check segments in the first check code stream may include a check segment obtained by encoding bits in the data code stream and a check segment obtained by encoding bits in the first additional segment; alternatively, the at least part of the check segments in the first check code stream may comprise check segments encoded from bits in the data code stream.
Further, the communication system provided by the application may include at least three nodes connected in sequence, where one edge node of the at least three nodes is configured to send a code stream to another edge node through a switching node, and the switching node is located between the one edge node and the another edge node; the encoding node and the decoding node are any two nodes of the at least three nodes.
In a fourth aspect, there is provided a communication apparatus, the communication apparatus being a decoding node in a communication system, the communication apparatus comprising: the device comprises a receiving module, a first checking module and a first determining module. The receiving module is used for receiving the multi-bar code stream sent by the encoding node; the multi-barcode stream includes: m business code streams and at least one check code stream, wherein the first check code stream comprises a plurality of check sections, and m is more than or equal to 1; the at least one check code stream comprises a first check code stream, the service code stream comprises a plurality of service segments corresponding to the plurality of check segments in the first check code stream one by one, and the check segments in the first check code stream are obtained by encoding corresponding m service segments in the m service code streams; different code streams in the multi-code stream are used for transmission on different links; the first check module is used for checking the check segments in the first check code stream according to the service segments corresponding to the check segments in the first check code stream so as to determine whether the check segments in the first check code stream are wrong; the first determining module is used for determining that a fault link exists in links transmitted by the multi-bar code stream when the fault condition is met; the fault condition includes: and the error rate of the check segment in the first check code stream is larger than the first probability.
In the application, the encoding node may acquire the first check code stream, and send m service code streams and the first check code stream to the decoding node. The first check code stream comprises a plurality of check segments, and each check segment in the first check code stream is obtained by encoding a service segment in m service code streams. After receiving the first check code stream, the decoding node can check at least part of check segments in the first check code stream, and if the error rate of the check segments in the at least part of check segments is higher, the decoding node indicates that a certain bar code stream is continuously bit-wrong due to link failure, so that it can be determined that a failure link exists in m service code streams and links for transmitting the first check code stream. Therefore, the decoding node in the application can determine that a fault link exists in the link of the code stream transmission, and when the error rate of the code stream received by the decoding node is higher, the decoding node can determine whether the higher error rate is caused by the link fault transmitted by the code stream.
Optionally, the at least one check code stream further includes: the second check code stream comprises n check segments, the n check segments are in one-to-one correspondence with the n bar code stream segments, and the check segments in the second check code stream are obtained by encoding the corresponding code stream segments; the n bar code stream segments belong to n reference code streams in one-to-one correspondence, wherein the n reference code streams comprise the m business code streams, and n is more than or equal to m.
The communication device further includes: the second checking module is used for checking the second checking section according to the code stream section corresponding to the second checking section when the error rate of the first checking section is larger than the first probability so as to determine whether the second checking section is in error or not; the code stream segment corresponding to the second check segment belongs to the service code stream; at least part of the check segments in the second check code stream are all the second check segments; the fault condition further includes: the error rate of the second check segment is greater than the second probability.
It can be seen that when the multi-bar code stream includes the second check code stream, if the decoding node determines that the error rate of the first check segment is greater than the first probability, the decoding node may further check the second check segment according to the code stream segment (the code stream segment belongs to the service code stream) corresponding to the check segment in the second check segment, so as to determine whether the second check segment is in error; at this time, the above-mentioned fault conditions further include: the error rate of the second check segment is greater than the second probability. The code stream segment corresponding to the second check segment belongs to the service code stream; at least part of the check segments in the second check code stream are all the second check segments.
If the error rate of the second check segment is smaller than or equal to the second probability, the error rate of the m service code streams is lower. At this time, if the decoding node determines that the error rate of the first check segment is greater than the first probability (which indicates that the error rate of the m service code streams is higher), it indicates that the first check code stream is in error, and at this time, the decoding node does not determine that a faulty link exists in the links transmitted by the multiple code streams. In this way, the decoding node is prevented from misjudging whether the faulty link exists according to the first check code stream with errors.
If the error rate of the second check segment is greater than the second probability, the error rate of the m service code streams is higher. At this time, if the decoding node determines that the error rate of the first check segment is greater than the first probability (which indicates that the error rate of the m service code streams is higher), it indicates that the first check code stream is error-free, and at this time, the decoding node may determine that a faulty link exists in the links transmitted by the multiple code streams.
Optionally, the communication device further includes: and the second determining module is used for determining that the link transmitted by the fault service code stream is the fault link if the fault service code stream with the error rate larger than the target error rate exists in the m service code streams when the fault condition is met, so that the fault link is positioned, and effective communication among the nodes is ensured.
Optionally, the communication device further includes: and the recovery module is used for carrying out data recovery on the fault service code streams according to the code streams except the fault service code streams in the multi-code streams after the second determination module determines that the link transmitted by the fault service code streams is the fault link, so that effective communication among the nodes is ensured. It should be noted that, the first check code stream is related to the m service code streams, so the recovery module may perform data recovery on the fault service code stream according to the first check code stream and other service code streams except the fault service code stream in the m service code streams.
Optionally, the communication device further includes: and the alarm module is used for executing alarm operation for the fault link after the second determination module determines that the link used for transmitting the fault service code stream is the fault link.
Further, the m service code streams may be encoded code streams or not encoded code streams.
When the m service code streams are coded code streams, the coding node may first acquire m data code streams to be transmitted when acquiring the m service code streams. For example, the coding node divides the m data code streams according to the data to be transmitted, or the coding node obtains the m data code streams according to the code streams sent by other nodes. And then, the coding node can acquire m business code streams corresponding to the m data code streams one by one according to the m data code streams. Correspondingly, the communication device serving as the decoding node further comprises an acquisition module, which is used for acquiring the m data code streams according to the m service code streams after the receiving module receives the m service code streams.
Wherein, for one service code stream corresponding to one data code stream, the service code stream includes: the data code stream and a first additional section obtained by encoding the data code stream; the encoding node may encode the data code stream to obtain the first additional segment, and further obtain a service code stream including the data code stream and the first additional segment. The decoding node may decode the service code stream to correct the data code stream according to the first additional segment, so as to obtain a data code stream in the service code stream.
Each of at least one check code stream (e.g., the first check code stream and the second check code stream) obtained by the encoding node according to the m service code streams includes a plurality of check segments. And for the check segment in the first check code stream, the check segment is obtained by encoding bits in m service segments in m service code streams. And for the check segment in the second check code stream, the check segment is obtained by encoding bits in the code stream segment corresponding to the check segment.
In an alternative manner, the check code stream includes a check segment obtained by encoding bits in the data code stream; and, the check code stream further includes: and a second additional segment obtained by encoding the plurality of check segments in the check code stream. When the check code stream includes the second additional segment, the communication device as the decoding node further includes an error correction module, configured to correct the error of the check segment in the check code stream according to the second additional segment before the first check module performs the check on at least a part of the check segments in the first check code stream, so as to improve the accuracy of the check segments. Alternatively, the at least part of the check segments in the first check code stream may be all the check segments in the first check code stream.
Or in another alternative, the check code stream includes a check segment obtained by encoding bits in the data code stream and a check segment obtained by encoding bits in the first additional segment; and, the check code stream may not include the second additional segment. Optionally, the at least part of the check segments in the first check code stream may include a check segment obtained by encoding bits in the data code stream and a check segment obtained by encoding bits in the first additional segment; alternatively, the at least part of the check segments in the first check code stream may comprise check segments encoded from bits in the data code stream.
Further, the communication system provided by the application may include at least three nodes connected in sequence, where one edge node of the at least three nodes is configured to send a code stream to another edge node through a switching node, and the switching node is located between the one edge node and the another edge node; the encoding node and the decoding node are any two nodes of the at least three nodes.
In a fifth aspect, a communication system is provided, the communication system comprising an encoding node and a decoding node, the encoding node being the communication device according to any one of the designs of the third aspect, the decoding node being the communication device according to any one of the designs of the fourth aspect.
In a sixth aspect, there is provided a chip comprising programmable logic circuits and/or program instructions for implementing the communication method according to any one of the designs of the first aspect when the chip is run or for implementing the communication method according to any one of the designs of the second aspect when the chip is run.
The technical effects of any one of the fifth aspect and the sixth aspect may be referred to the technical effects of the corresponding design of the first aspect to the fourth aspect, and will not be described herein.
Drawings
Fig. 1 is a schematic structural diagram of a communication system according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of another communication system according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of another communication system according to an embodiment of the present application;
fig. 4 is a flowchart of a communication method provided in an embodiment of the present application;
fig. 5 is a schematic diagram of a relationship between a first check code stream and a service code stream according to an embodiment of the present application;
fig. 6 is a schematic diagram of a relationship between a first check code stream and a service code stream according to another embodiment of the present application;
fig. 7 is a schematic diagram of a relationship between a second check code stream and a reference code stream according to an embodiment of the present application;
FIG. 8 is a schematic diagram illustrating a relationship between a second check code stream and a reference code stream according to another embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of another communication system according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an encoding node according to an embodiment of the present application;
FIG. 11 is a schematic structural diagram of another encoding node according to an embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of another encoding node according to an embodiment of the present disclosure;
fig. 13 is a schematic structural diagram of a decoding node according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of another decoding node according to an embodiment of the present disclosure;
fig. 15 is a schematic structural diagram of another decoding node according to an embodiment of the present disclosure;
fig. 16 is a schematic structural diagram of another communication system according to an embodiment of the present application;
fig. 17 is a schematic structural diagram of another encoding node according to an embodiment of the present disclosure;
fig. 18 is a schematic structural diagram of another encoding node according to an embodiment of the present disclosure;
fig. 19 is a schematic structural diagram of another decoding node according to an embodiment of the present disclosure;
fig. 20 is a schematic structural diagram of another decoding node according to an embodiment of the present disclosure;
Fig. 21 is a schematic structural diagram of another decoding node according to an embodiment of the present disclosure;
fig. 22 is a schematic structural diagram of another communication system according to an embodiment of the present application;
fig. 23 is a schematic structural diagram of another communication system according to an embodiment of the present application;
fig. 24 is a schematic structural diagram of another communication system according to an embodiment of the present application;
fig. 25 is a schematic structural diagram of another communication system according to an embodiment of the present application;
fig. 26 is a schematic structural diagram of a communication device according to an embodiment of the present application;
fig. 27 is a schematic structural diagram of another communication device according to an embodiment of the present application.
Detailed Description
In order to make the principles and technical solutions of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Embodiments of the present application provide a communication system, which may be a wireless cellular communication system, a wireless communication technology (WiFi) communication system, or a high-speed optical transmission system.
The communication system comprises at least three nodes with links between them. The node may be a communication device, or the node may be a part of a communication device (e.g., a function board in a communication device). The communication device may be a terminal (e.g., a cell phone, a computer, etc.), a base station, a gateway, a router, etc., and the communication device may include one or more nodes. The link may be a wired link or a wireless link.
Fig. 1 is a schematic structural diagram of a communication system according to an embodiment of the present application, as shown in fig. 1, where the communication system includes a first node 01 and a second node 02 (the first node and the second node are also referred to as edge nodes), and at least one switching node 03 (one switching node 03 is illustrated in fig. 1) located between the first node 01 and the second node 02. There are a plurality of links between the first node 01 and the second node 02, and the switching node 03 is located on at least one of the plurality of links (five links are schematically shown in fig. 1 and the switching node 03 is located on the five links).
The first node 01 comprises a first processing unit and a plurality of encoding units connected, and the second node 02 comprises a plurality of decoding units and a second processing unit connected. The coding unit and the decoding unit are both connected to the switching node 03.
In the first node 01, the first processing unit is configured to generate service data to be transmitted to the second node 02, divide the service data into m barcode streams (m is greater than or equal to 1, and in fig. 1, m=5 is an example), and distribute the m barcode streams to m encoding units. The encoding unit is configured to encode the distributed code stream and transmit the encoded code stream to the link, so as to send the encoded code stream to the second node 02 through the switching node 03 on the link.
In the second node 02, the decoding unit is configured to receive the encoded code stream transmitted on the link, and decode the stream to obtain a code stream before encoding. The second processing unit is used for assembling m bar code streams obtained by decoding in m decoding units to obtain service data which needs to be transmitted to the second node 02 by the first node 01.
The encoding method may be a forward error correction (forward error correction, FEC) encoding method, and the decoding method may be an FEC decoding method. When the first node encodes the code stream by adopting the FEC encoding mode, certain check bits are added into the code stream. If the code stream generates error codes in the transmission process, the second node can correct the error codes according to the check bits when decoding the code stream, so as to obtain more accurate code stream. By FEC encoding and decoding, the signal-to-noise ratio (signal noise ratio, SNR) margin of the second node can be reduced, so as to improve Bit Error Rate (BER) performance of the communication system, improve communication reliability of the communication system, prolong the transmission distance of signals, reduce the transmission power of the first node, and reduce the cost of the communication system.
The FEC encoding method includes: parity code (single parity check, spc) encoding scheme, CRC encoding scheme, hamming code (hamming code) encoding scheme, cyclic code (BCH) encoding scheme, RS code encoding scheme, and the like. Among them, the RS code coding scheme has a low coding gain, but the RS code coding scheme has a high coding rate and a low complexity.
There are two common RS code encoding methods in the communication standard IEEE 802.3. A coding scheme called KP4, whose code words are denoted RS (544, 514, 15, 10), wherein 544 is the number of symbols of the code word, each symbol being 10 bits; 514 is the number of data symbols in the codeword, each symbol also being 10 bits; 15 is the error correction capability of the codeword, indicating that the codeword can correct 15 symbols. Another coding scheme called KR4, the codeword of which is denoted RS (528, 514,7, 10), wherein 528 is the number of symbols of the codeword, each symbol being 10 bits; 514 is the number of data symbols in the codeword, each symbol also being 10 bits; and 7 is the error correction capability of the codeword, which means that the codeword can correct 7 symbols.
In the embodiment of the present application, the first node 01 is taken as a transmitting end, and the second node 02 is taken as a receiving end as an example. Alternatively, the first node 01 may also be a receiving end, and the second node 02 may also be a transmitting end; alternatively, the first node 01 may serve as a transmitting end and a receiving end at the same time, and the second node 02 may serve as a transmitting end and a receiving end at the same time, which is not limited in the embodiment of the present application. In other words, of at least three nodes in the communication system, one edge node (e.g. the first node or the second node) is configured to send a code stream to the other edge node via the switching node.
With continued reference to fig. 1, for each link between the first node 01 and the second node 02, the link passes through two ports of the switching node 03, and a code stream on the link is input to the switching node 03 from one of the two ports and output from the other port by the switching node 03. For a different link between the first node 01 and the second node 02, the different link differs in at least one of the two ports traversed in the switching node 03.
After receiving the code stream from the link, the switching node 03 performs port switching on the code stream to output the code stream input from one port of the switching node from the other port of the switching node.
When the switching node 03 performs port switching on the code stream, the port switching may be performed by an optical switching manner (in this case, the switching node is also referred to as an optical switching node), or may be performed by an electrical switching manner (in this case, the switching node is also referred to as an electrical switching node). The port switching is performed in an optical switching mode, and the optical switching device has the characteristics of low power consumption and large capacity.
As shown in fig. 1, when the switching node 03 is an optical switching node, the code stream is transmitted in the form of an optical signal, and the switching node 03 includes a plurality of switching units for switching an optical signal input from one port to any one of the output ports for output.
As shown in fig. 2, when the switching node 03 is an electrical switching node, the code stream is transmitted in the form of an optical signal or an electrical signal. When the code stream is transmitted in the form of an electrical signal, the switching node comprises a plurality of switching units (also called interleaving units), each corresponding to two ports of the switching node. When the switching node 03 performs port switching on the code stream, the switching unit switches the electrical signal input by a corresponding port to the other port output by the switching unit. When the code stream is transmitted in the form of an optical signal, the switching node also comprises a plurality of switching units, each corresponding to two ports of the switching node. When the switching node 03 performs port switching on the code stream, the switching unit converts an optical signal input by a corresponding port into an electrical signal, then switches the electrical signal to another port corresponding to the switching unit, and converts the electrical signal into an optical signal at the port and outputs the optical signal.
Further, when the switching node 03 is an electrical switching node, the switching node 03 may also decode and encode the code stream. The process of decoding the code stream by the switching node 03 may refer to the process of decoding the code stream by the second node, and the process of encoding the code stream by the switching node 03 may refer to the process of encoding the code stream by the first node. For example, as shown in fig. 2, the switching node further includes a plurality of encoding units and a plurality of decoding units, where the encoding units, the decoding units and the switching units are connected in a one-to-one correspondence. The decoding unit decodes the code stream before the switching unit performs port switching on the code stream, and the encoding unit encodes the code stream after the switching unit performs port switching on the code stream. For example, as shown in fig. 3, in addition to fig. 2, the decoding unit may decode the code stream and the encoding unit may encode the code stream before the switching unit performs port switching on the code stream. And then, the switching unit performs port switching on the code stream. Of course, when the switching node 03 is an electrical switching node, the switching node 03 may not perform such decoding and encoding on the code stream, which is not limited in the embodiment of the present application.
In the process of the first node 01 and the second node 02 communicating, if there is a faulty switching node 03, a faulty link between the first node 01 and the second node 02 is caused, so that the first node 01 and the second node 02 cannot effectively communicate.
For example, when the switching node 03 fails, the link where the switching node 03 is located fails, and the code stream after the switching node 03 switches is in error, and the second node 02 decodes the received code stream by adopting the FEC decoding method, which cannot solve the problem of code stream error.
For another example, when the switching node 03 fails, the link where the switching node 03 is located fails, and the switching node 03 cannot implement data exchange, and at this time, the second node 02 cannot receive the code stream sent by the first node 01, and cannot decode the code stream.
In addition, when the link where the switching node 03 is located fails, even if the second node 02 can receive the code stream with a higher bit error rate sent by the first node 01, the second node 03 cannot determine whether the higher bit error rate of the code stream is caused by the link failure.
Therefore, there is a need for a method for detecting whether a failed link exists between nodes, recovering data from a code stream after detecting the failed link, and alerting the failed link to a failure.
The embodiment of the application provides a communication method which can detect whether a fault link exists between nodes, recover data of a code stream after the fault link is detected, and alarm the fault of the fault link.
The communication method provided by the embodiment of the application is executed by the encoding node and the decoding node in the communication system. The communication system provided by the embodiment of the application comprises at least three nodes which are connected in sequence, wherein the coding node and the decoding node are any two nodes in the at least three nodes.
For example, the encoding node is one edge node (such as the first node or the second node) of the at least three nodes, and the decoding node is another edge node of the at least three nodes; or the encoding node is an edge node in the at least three nodes, and the decoding node is a switching node in the middle in the at least three nodes; or the coding node is the switching node, and the decoding node is an edge node in the at least three nodes; alternatively, the encoding node is one switching node and the decoding node is another switching node.
Alternatively, there may be a set of codec nodes in the communication system, or multiple sets of codec nodes arranged in sequence. Each set of codec nodes includes one encoding node and one decoding node, and when the communication system includes a plurality of sets of codec nodes, the plurality of sets of codec nodes may be independent of each other or may overlap. For example, for two consecutive sets of codec nodes, a decoding node in the first set of codec nodes may be used as a coding node in the second set of codec nodes, which is not limited in the embodiments of the present application.
It should be noted that, the edge node refers to a first node or a last node of the at least three nodes. The edge node may be connected to a node outside the communication system, e.g. the edge node is a network device, which is connected to a terminal outside the communication system; alternatively, the edge node is not connected to a node outside the communication system, e.g. the edge node is a terminal, which is not connected to a node outside the communication system. In addition, in the embodiment of the present application, the communication system includes at least three nodes connected in sequence, and the communication system may further include other nodes than the at least three nodes, and a plurality of nodes in the communication system may be connected as a communication network, which is not limited in the embodiment of the present application.
Further, fig. 4 is a flowchart of a communication method according to an embodiment of the present application, where an encoding node and a decoding node are both edge nodes. As shown in fig. 4, the communication method provided in the embodiment of the present application includes:
s101, the coding node acquires m business code streams to be transmitted, wherein m is more than or equal to 1.
The m service code streams may be all service code streams to be transmitted by the coding node, or may be part of service code streams to be transmitted by the coding node, which is not limited in the embodiment of the present application.
S102, a coding node acquires at least one check code stream, wherein the check code stream comprises a plurality of check segments; the at least one check code stream comprises: a first check code stream; the service code stream comprises a plurality of service segments corresponding to the plurality of check segments in the first check code stream one by one, and the check segments in the first check code stream are obtained by encoding the corresponding m service segments in the m service code streams.
The encoding node may perform longitudinal encoding on the service segments in the m service code streams to obtain a first check code stream. Illustratively, as shown in FIG. 5, the first check code stream includes a plurality of check segments, such as check segments 1, 2. The check segments in the first check code stream are obtained by encoding corresponding m service segments in m service code streams. As shown in fig. 5, the check segment 1 in the first check code stream corresponds to the service segment 1 in each service code stream, and the check segment 1 in the first check code stream is obtained by encoding m service segments 1 in m service code streams; the check segment 2 in the first check code stream corresponds to the service segment 2 in each service code stream, and the check segment 2 in the first check code stream is obtained by encoding m service segments 2 in m service code streams.
The code stream includes a plurality of consecutive bits, the check segment includes at least one bit, and the service segment includes at least one bit. Further, the code stream includes at least one data frame, each data frame includes a plurality of bits, and in this case, the check segment may be located in one data frame or a plurality of data frames, and the service segment may also be located in one data frame or a plurality of data frames. In addition, the number of bits contained in the check segment and the service segment may be the same or different, which is not limited in the embodiment of the present application.
Illustratively, when the traffic stream and the first check stream each include at least one data frame, as shown in fig. 6, each data frame includes at least one bit (in fig. 6, each data frame includes t bits as an example). Assuming that the (m+1) bar code stream of the m service streams and the first check stream, the (q) th bit in the (p) th data frame in the(s) th bar code stream can be expressed as B s,p,q S is more than or equal to 1 and less than or equal to m+1, p is more than or equal to 1, and q is more than or equal to 1. Then the individual bits in the nth data frame in the multiple barcode stream may be as shown in fig. 6. The check segment in the first check code stream includes: the ith bit (denoted B m+1,r,i ) I is more than or equal to 1, r is more than or equal to 1 and t is more than or equal to t; at this time, the service segment corresponding to the check segment in the first check code stream includes: the service segment belongs to the ith bit in the (r) data frame in the service code stream, so that m service segments corresponding to the check segment in the first check code stream are respectively: b (B) 1,r,i 、B 2,r,i 、......、B m,r,i . Encoding the bits to obtain the ith bit B in the (r) th data frame in the first check code stream m+1,r,i
The encoding mode adopted by the check segment in the first check code stream is not limited, for example, the check segment in the first check code stream can be encoded by any one of the followingCode mode: parity code encoding scheme, CRC encoding scheme, hamming code encoding scheme, cyclic code encoding scheme, and RS code encoding scheme. If the parity check code coding mode is adopted for the check segment in the first check code stream, thenThe formula represents B 1,r,i 、B 2,r,i 、......、B m,r,i Exclusive OR is carried out to obtain B m+1,r,i
S103, the encoding node sends a multi-bar code stream to the decoding node, wherein the multi-bar code stream comprises: m service code streams and at least one check code stream, different code streams in the multiple code streams are used for transmission on different links.
After obtaining m service code streams and at least one check code stream, the encoding node can send different code streams in the multiple code streams to the decoding node through different links.
In this embodiment, the encoding node and the decoding node are both edge nodes, and at least one switching node exists on a link between the encoding node and the decoding node.
S104, the decoding node checks the first check segment according to the service segment corresponding to the first check segment to determine whether the first check segment is wrong, and at least part of the check segments in the first check code stream are all the first check segments.
The first check code stream comprises a plurality of check sections, and the plurality of check sections are all first check sections, or part of the check sections are all first check sections.
After receiving the multi-bar code stream sent by the encoding node, the decoding node can check the first check segment according to the service segment corresponding to the first check segment to determine whether the first check segment is wrong.
For example, taking the parity check code encoding mode as an example of the first check segment, the decoding node may exclusive-or the first check segment with m service segments corresponding to the first check segment. If the result of the exclusive or operation between the first check segment and the m service segments is 0, it is indicated that the check segment obtained by the exclusive or operation between the m service segments corresponding to the first check segment is the same as the first check segment, and the first check segment is correct. If the result of the exclusive or operation between the first check segment and the m service segments is 1, it is indicated that the check segment obtained by the exclusive or operation between the m service segments corresponding to the first check segment is different from the first check segment, and the first check segment is wrong.
S105, when the fault condition is met, the decoding node determines that a fault link exists in links transmitted by the multi-bar code stream; the fault conditions include: the error rate of the first check segment is greater than the first probability.
After determining whether each first check segment is erroneous, the decoding node may obtain the error rate of that first check segment (number of erroneous first check segments/number of first check segments in the first check code stream).
After determining the error rate of the first check segment, the decoding node may compare the error rate with a preset first probability. If the error rate of the first check segment is greater than the first probability, the decoding node determines that the fault condition is met, and determines that a fault link exists in the m service code streams and the links transmitted by the first check code streams. If the error rate of the first check segment is smaller than or equal to the first probability, the decoding node determines that the fault condition is not satisfied, and the decoding node determines that no fault link exists in the m service code streams and the links transmitted by the first check code stream.
From the above, it can be seen that the first check segment is obtained by encoding m service segments in the m service code streams, and therefore, the first check segment is related to the m service segments, and the first check segment is related to the m service code streams. If there is a faulty link in the links transmitted by the m service code streams, there will be a code stream with a higher error rate in the m service code streams, and if the first check segment is checked, the first check segment will be in error. Therefore, if the number of the first check segments in error is large and the error rate of the first check segments is larger than the first probability, it is indicated that the first check segment error is not caused by accidental code stream transmission error, but caused by continuous error code of a certain code stream caused by link failure, so that the decoding node can determine that a failed link exists in a plurality of links.
And S106, when the fault condition is met, if the m service code streams have fault service code streams with the error rate larger than the target error rate, determining that the link transmitted by the fault service code streams is a fault link by the decoding node.
When the fault condition is satisfied, the decoding node can also locate the fault link according to the error rate of the m service code streams. Illustratively, the decoding node may count the bit error rate of each of the m service code streams, and compare the bit error rate of each service code stream with the target bit error rate to determine whether there is a failed service code stream with a bit error rate greater than the target bit error rate in the m service code streams. If the fault service code stream exists in the m service code streams and the fault condition is met, the decoding node can determine that the link transmitted by the fault service code stream is a fault link.
For example, assuming that the bit error rate of the service code stream 1 in the m service code streams is higher than the target bit error rate and the fault condition is satisfied, the decoding node determines that the link transmitted by the service code stream 1 is a faulty link.
And S107, the decoding node recovers the data of the fault service code stream according to the code streams except the fault service code stream in the multi-code stream.
After determining that the m service code streams have the fault service code streams with the error rate larger than the target error rate, the decoding node can recover the data of the fault service code streams according to all the code streams except the fault service code streams in the multiple code streams (including the m service code streams and the first check code stream).
For example, assuming that the service code stream 1 in the m service code streams is a failure service code stream, the decoding node may perform data recovery on the service code stream 1 according to the service code streams 2 to m and the first check code stream.
It should be noted that, the first check code stream is related to the m service code streams, so the decoding node may perform data recovery on the fault service code stream according to the first check code stream and other service code streams except for the fault service code stream in the m service code streams.
S108, the decoding node executes alarm operation for the fault link.
After determining the failed link, the decoding node may also perform an alarm operation for the failed link.
When the decoding node is a function board in the communication device, the communication device further includes a system reporting unit, and the decoding node may send the alarm information of the failed link to the system reporting unit, so that the system reporting unit reports the alarm information to the operating system, so that the operating system can display the alarm information. For example, the operating system controls the display screen to display the alarm information, or the operating system controls the loudspeaker to play the alarm information; or the operating system sends the alarm information to the terminal of the staff, so that the terminal can display the alarm information.
Also for example, when the decoding node has a display function, the decoding node may display alarm information for the failed link.
In summary, in the communication method provided in the embodiment of the present application, the encoding node may obtain the first check code stream, and send m service code streams and the first check code stream to the decoding node. The first check code stream comprises a plurality of check segments, and each check segment in the first check code stream is obtained by encoding a service segment in m service code streams. After receiving the first check code stream, the decoding node can check at least part of check segments in the first check code stream, and if the error rate of the check segments in the at least part of check segments is higher, the decoding node indicates that a certain bar code stream is continuously bit-wrong due to link failure, so that it can be determined that a failure link exists in m service code streams and links for transmitting the first check code stream. Therefore, in the communication method provided by the embodiment of the application, the decoding node can determine that a fault link exists in the link of the code stream transmission, and when the error rate of the code stream received by the decoding node is higher, the decoding node can determine whether the higher error rate is caused by the link fault transmitted by the code stream.
In the communication method provided by the embodiment of the application, the decoding node can also locate the fault link and recover the data of the code stream transmitted on the fault link when determining that the fault link exists, so that effective communication between the nodes is ensured. In addition, the decoding node can also carry out fault alarm on the fault link, so that staff can maintain the fault link in time according to the fault alarm, and effective communication between the nodes is ensured as soon as possible.
In the above embodiment, taking the example that at least one check code stream in S102 includes a first check code stream, and the multiple barcode stream in S103 includes m service code streams and the first check code stream, optionally, on this basis, the at least one check code stream further includes a second check code stream, and the multiple barcode stream in S103 may further include the second check code stream. At this time, in S102, the encoding node may also acquire the second check code stream.
The second check code stream comprises n check segments, the n check segments are in one-to-one correspondence with the n bar code stream segments, and the check segments in the second check code stream are obtained by encoding the corresponding code stream segments; the n bar code stream segments belong to n reference code streams in a one-to-one correspondence. The n reference code streams comprise m business code streams, and n is more than or equal to m.
Illustratively, the encoding node may laterally encode the code stream segments in the n reference code streams to obtain a second check code stream. As shown in fig. 7, the second check code stream includes n check segments, such as check segments 1, 2. The n check segments are in one-to-one correspondence with the n bar code stream segments, each check segment in the second check code stream is obtained by encoding the corresponding code stream segment, and the n bar code stream segments belong to n reference code streams in one-to-one correspondence. As shown in fig. 7, a check segment 1 in the second check code stream corresponds to a code stream segment 1 in the 1 st service code stream, and the check segment 1 in the second check code stream is obtained by encoding the code stream segment 1; the check segment 2 in the second check code stream corresponds to the code stream segment 2 in the 2 nd service code stream, and the check segment 2 in the second check code stream is obtained by encoding the code stream segment 2.
The code stream comprises a plurality of continuous bits, the check segment comprises at least one bit, the code stream segment comprises at least one bit, and the number of the bits contained in the check segment and the code stream segment is not limited in the embodiment of the present application. Further, the code stream includes at least one data frame, each data frame includes a plurality of bits, and in this case, the check segment may be located in one data frame or a plurality of data frames, and the code stream segment may also be located in one data frame or a plurality of data frames. In addition, the number of bits contained in the check segment and the code stream segment may be the same or different, which is not limited in the embodiment of the present application.
For example, when the multiple bar code streams each include at least one data frame, as shown in fig. 8, n check segments in the second check code stream all belong to an r data frame in the second check code stream, where r is greater than or equal to 1; at this time, the code stream segment corresponding to the check segment in the second check code stream includes: the code stream segment belongs to the (r) th data frame in the code stream. It can be seen that the encoding node encodes the r data frame in the reference code stream to obtain a check segment in the second check code stream. After the r-th data frame in the n reference code streams is encoded, n check segments in the second check code stream can be obtained.
Optionally, when the coding node codes the n reference code streams, the coding node may code the n reference code streams in a corresponding coding manner according to the length of the code stream segment.
Optionally, the length of the code stream segment is greater than the target length, and the check segment in the second check code stream is encoded by adopting a first encoding mode. Or the length of the code stream section is smaller than or equal to the target length, and the check section in the second check code stream is encoded by adopting a second encoding mode. Wherein the error correction capability of the first encoding mode is greater than the error correction capability of the second encoding mode. For example, the first coding scheme is a CRC coding scheme, and the second coding scheme is a parity coding scheme. When the length of the code stream section is larger than the target length, more errors easily occur in the transmission process of the code stream section, and at this time, the coding node can code n pieces of reference code streams by adopting a first coding mode with stronger error correction capability; when the length of the code stream segment is smaller than or equal to the target length, errors easily occurring in the transmission process of the code stream segment are fewer, and at this time, the coding node can code the n reference code streams by adopting a second coding mode with weaker error correction capability.
For example, assuming that the check segment in the second check code stream is encoded by adopting a CRC encoding manner, the encoding node encodes an r data frame in an s-th reference code stream in the n reference code streams, so as to obtain a check segment including X bits (e.g., 4 bits, 8 bits, etc.) in the second check code stream.
Then the first time period of the first time period,
{ B in the formula m+2,r,(s-1)X+1 ,B m+2,r,(s-1)X+2 ,......,B m+2,r,(s-1)X+X And the X bits are represented by,the coding of the r data frame in the s-th reference code stream by adopting a CRC coding mode is shown.
When one check segment in the second check code stream comprises X bits and n check segments all belong to the w data frame in the second check code stream, the n check segments contain nX bits, and nX is smaller than or equal to the number of bits contained in the w data frame. If nX is less than or equal to the number of bits contained in the w-th data frame, and the first nX bits in the w-th data frame include n check segments, then the values of the bits following the nX bits in the w-th data frame may be zero.
Also, for example, when the encoding node encodes n reference code streams by using the parity check code encoding method, assuming that the nth data frame in the nth reference code stream in the n reference code streams is encoded to obtain the nth bit in the nth data frame in the second parity check code stream, the nth bit may be expressed as B m+2,r,st represents the number of bits in a data frame. The formula represents: exclusive or is carried out on each bit in the (r) th data frame in the(s) th reference code stream, so that B can be obtained m+2,r,s
When the coding node adopts a parity check code coding mode to code n reference code streams, n check segments comprise n bits. And n is less than or equal to t, when n is less than t, the first n bits in the w data frame comprise n check segments, and then the values of bits after the n bits in the w data frame can be zero.
Further, when the multi-bar code stream includes the second check code stream, if the decoding node determines that the error rate of the first check segment is greater than the first probability, the decoding node may further check the second check segment according to the code stream segment corresponding to the second check segment (the code stream segment belongs to the service code stream) to determine whether the second check segment is in error; at this time, the above-mentioned fault conditions further include: the error rate of the second check segment is greater than the second probability. The code stream segment corresponding to the second check segment belongs to the service code stream; at least part of the check segments in the second check code stream are all second check segments. The second check code stream includes a plurality of check segments, where the plurality of check segments are all second check segments, or some check segments in the plurality of check segments are all second check segments.
If the error rate of the second check segments is smaller than or equal to the second probability, the error rate of the service code streams where the code stream segments corresponding to the second check segments are located is lower, and the error rates of the m service code streams are lower. At this time, if the error rate of the first check segment is greater than the first probability (indicating that the error rate of the m service code streams is higher), it indicates that the first check code stream is in error, and at this time, the decoding node cannot determine that a faulty link exists in the links transmitted by the multiple code streams. In this way, the decoding node is prevented from misjudging whether the faulty link exists according to the first check code stream with errors.
If the error rate of the second check segments is greater than the second probability, the error rate of the service code streams where the code stream segments corresponding to the second check segments are located is higher, and the error rates of the m service code streams are higher. At this time, if the error rate of the first check segment is greater than the first probability (indicating that the error rate of the m service code streams is higher), it indicates that the first check code stream is error-free, and at this time, the decoding node may determine that a faulty link exists in the links transmitted by the multiple code streams.
In the above embodiment, the n reference code streams include m service code streams as an example, optionally, the n reference code streams may also include a first check code stream, and of course, the n reference code streams may also not include the first check code stream.
Further, the m service code streams in S101 may be encoded code streams or not encoded code streams.
When the m service code streams are coded code streams, the coding node may first acquire m data code streams to be transmitted when acquiring the m service code streams in S101. For example, the coding node divides the m data code streams according to the data to be transmitted, or the coding node obtains the m data code streams according to the code streams sent by other nodes. And then, the coding node can acquire m business code streams corresponding to the m data code streams one by one according to the m data code streams. Correspondingly, after receiving the m service code streams in S103, the decoding node may further obtain the m data code streams according to the m service code streams.
The bit error rate of the service code stream is related to the bit error rate of the data code stream corresponding to the service code stream, and the decoding node can determine the bit error rate of the service code stream according to the bit error rate of the data code stream (for example, the bit error rate of the data code stream is used as the bit error rate of the service code stream).
For a service code stream corresponding to the data code stream, the service code stream includes: the data code stream and a first additional section obtained by encoding the data code stream; the first additional segment may also include at least one parity bit. The encoding node may encode the data code stream to obtain the first additional segment, and further obtain a service code stream including the data code stream and the first additional segment. The decoding node may decode the service code stream to correct the data code stream according to the first additional segment, so as to obtain a data code stream in the service code stream. The encoding method may refer to the encoding method of the first node in fig. 1 (e.g., KP4 encoding method), and the decoding method may refer to the decoding method of the second node in fig. 1, which is not described herein in detail.
Each of at least one check code stream (e.g., the first check code stream and the second check code stream) obtained by the encoding node according to the m service code streams includes a plurality of check segments. For a check segment in the first check code stream, the check segment is encoded by bit(s) in m service segments in m service code streams. And for the check segment in the second check code stream, the check segment is obtained by encoding bit(s) in the code stream segment corresponding to the check segment.
In an alternative way, the check code stream includes a check segment encoded by bits in the data code stream; and, the check code stream further includes: and a second additional segment obtained by encoding the plurality of check segments in the check code stream. When the check code stream includes the second additional segment, the decoding node may correct the error of the check segment in the check code stream according to the second additional segment before executing S104, so as to improve the accuracy of the check segment. Alternatively, in this case, the above-mentioned at least partial check segments in the first check code stream may be all check segments in the first check code stream, in other words, each check segment in the first check code stream is a first check segment.
Or in another alternative, the check code stream includes a check segment encoded by bits in the data code stream and a check segment encoded by bits in the first additional segment; and, the check code stream may not include the second additional segment. Alternatively, in this case, the above-mentioned at least partial check segments in the first check code stream may include a check segment obtained by encoding bits in the data code stream and a check segment obtained by encoding bits in the first additional segment; alternatively, the at least part of the check segments in the first check code stream may comprise check segments encoded from bits in the data code stream.
The code stream includes a plurality of bits in succession, and the first additional segment, the second additional segment, and the target segment each include at least one bit in the code stream.
In this embodiment, the encoding node and the decoding node are both edge nodes. At this time, the encoding node may obtain m service code streams according to the data to be transmitted in S101. For example, the m data code streams are obtained according to the division of the data to be transmitted, and then the m data code streams are encoded to obtain m service code streams.
When the encoding node is not an edge node but a switching node, in S101, the encoding node may obtain the m service code streams according to a code stream sent by one edge node. For example, the encoding node decodes the code stream sent by the edge node, and then obtains the m service code streams according to the code stream obtained by decoding (e.g., the m data code streams). Wherein the encoding node is located between the edge node and the decoding node.
Further, when the encoding node is a switching node, the encoding node may perform port switching on the multi-barcode stream when transmitting the multi-barcode stream in S103, and then transmit the multi-barcode stream after the port switching to the decoding node. Alternatively, the encoding node may perform port switching on the m data code streams before encoding the m data code streams to obtain the m service code streams, and perform port switching on the check code streams before encoding the second additional segments obtained by encoding the plurality of check segments in the check code streams. It can be seen that, in the embodiment of the present application, the sequence of the port switching and the encoding to obtain the additional segments (the first additional segment and the second additional segment) is not limited, and the encoding node may obtain the additional segments by encoding first and then the port switching, or may obtain the additional segments by encoding first and then the port switching.
When the decoding node is not an edge node but a switching node, after the decoding node performs data recovery on the failed service code stream in S107, the decoding node may transmit m service code streams after data recovery to the edge node. The decoding node is located between the encoding node and the edge node. When the decoding node transmits m service code streams after data recovery to the edge node, the m service code streams after data recovery can be used as m service code streams in S101, and the code streams are transmitted by adopting the mode of the encoding nodes in S101, S102 and S103, which is not described in detail herein.
Further, the encoding node provided in the embodiment of the present application includes: the first coding unit is used for generating the check segment in the first check code stream, and the second coding unit is used for generating the check segment in the second check code stream. Accordingly, the decoding unit includes: the first decoding unit is used for checking the check segment in the first check code stream, and the second decoding unit is used for checking the check segment in the second check code stream.
When the coding node needs to code the data code stream to obtain the service code stream, the coding node further comprises: and the m third coding units are used for coding the m data code streams one by one to obtain m service code streams. Accordingly, the decoding unit further includes: and the m third decoding units are used for decoding the m service code streams one by one to obtain m data code streams. When the check code stream includes the second additional segment, the encoding node further includes: the decoding node further comprises: and a fourth decoding unit for correcting the check segments in each check code stream according to the second additional segments in the check code stream.
The first encoding unit and the second encoding unit may be the same unit or may be different units; the first decoding unit and the second decoding unit may be the same unit or may be different units.
(1) Taking the check code stream as an example, the check code stream is obtained by encoding bits in a data code stream in the service code stream, and the check code stream further comprises a second additional segment obtained by encoding a plurality of check segments in the check code stream. When the first encoding unit and the second encoding unit are the same unit and the first decoding unit and the second decoding unit are the same unit, as shown in fig. 9, the encoding node includes a link protection encoding unit, m third encoding units, and two fourth encoding units, and the decoding node includes two fourth decoding units, m third decoding units, and a link protection decoding unit. The link protection coding unit includes a first coding unit and a second coding unit. The link protection decoding unit includes a first decoding unit and a second decoding unit.
The link protection coding unit is used for obtaining the check segments in the first check code stream and the second check code stream according to the m data code streams, distributing the multi-bar code stream comprising the m data code streams, the plurality of check segments in the first check code stream and the plurality of check segments in the second check code stream to the plurality of coding units (m third coding units and two fourth coding units) in a one-to-one correspondence mode, so that the third coding unit codes the distributed data code stream to obtain a service code stream comprising the data code stream and the first check segment, and the fourth coding unit codes the distributed check segments to obtain the check code stream comprising the plurality of check segments and the second additional segment.
And the third decoding unit is used for decoding the received service code stream to obtain a data code stream. The fourth decoding unit is used for decoding the received check code stream to obtain a check segment. The link protection decoding unit is used for checking a first check segment in the first check code stream and a second check segment in the second check code stream according to the plurality of data code streams.
Fig. 9 shows only a partial structure of the encoding node and the decoding node.
In one aspect, when the encoding node is an edge node, as shown in fig. 10, on the basis of fig. 9, the encoding node further includes a processing unit for generating m data code streams according to service data to be transmitted.
When the encoding node is a switching node, as shown in fig. 11, on the basis of fig. 9, the encoding node further includes a plurality of switching units for performing port switching on the multi-barcode stream, and the third encoding unit and the fourth encoding unit may be located between the link protection encoding unit and the plurality of switching units. Alternatively, as shown in fig. 12, the plurality of switching units may be located between the link protection coding unit and the plurality of third coding units. Further, when the encoding node is a switching node, as shown in fig. 11 and fig. 12, the encoding node may further include a plurality of decoding units, configured to decode the received m service code streams to obtain m data code streams.
On the other hand, when the decoding node is an edge node, as shown in fig. 13, the decoding node further includes a processing unit for obtaining service data according to the m data code streams obtained by the link protection decoding unit.
When the decoding node is a switching node, as shown in fig. 14, the decoding node does not include the processing unit in fig. 13, but the decoding node further includes m encoding units for encoding m data code streams output from the link protection decoding unit. Further, when the decoding node is a switching node, the decoding node may further include m switching units, and m encoding units for encoding m service code streams output by the m encoding units. With continued reference to fig. 14, the coding unit may be located between the link protection decoding unit and the switching unit, or with reference to fig. 15, the switching unit may be located between the link protection decoding unit and the coding unit.
(2) Taking check code stream as an example, the data code stream in the service code stream and the bits in the first additional segment are encoded. When the first encoding unit and the second encoding unit are the same unit and the first decoding unit and the second decoding unit are the same unit, as shown in fig. 16, the encoding node includes a link protection encoding unit and m third encoding units, and the decoding node includes m third decoding units and a link protection decoding unit. The link protection coding unit includes a first coding unit and a second coding unit. The link protection decoding unit includes a first decoding unit and a second decoding unit.
And the m third coding units are used for coding the m data code streams one by one to obtain m service code streams. The link protection coding unit is used for obtaining the first check code stream and the second check code stream according to the m service code streams, and distributing different code streams in the m service code streams, the first check code stream and the second check code stream to different links.
The link protection decoding unit is used for checking the first check segment in the first check code stream and the second check segment in the second check code stream according to the service segments in the m service code streams, and distributing the m service code streams to the m third decoding units one by one. And the third decoding unit is used for decoding the received service code stream to obtain a data code stream.
Fig. 16 shows only a partial structure of the encoding node and the decoding node.
In one aspect, when the encoding node is an edge node, as shown in fig. 17, on the basis of fig. 16, the encoding node further includes a processing unit for generating m data code streams according to service data to be transmitted.
When the encoding node is a switching node, as shown in fig. 18, on the basis of fig. 16, the encoding node further includes a plurality of switching units for performing port switching on the multiple barcode streams (the m service code streams, the first check code stream, and the second check code stream), and the link protection encoding unit is located between the plurality of third encoding units and the plurality of switching units. Further, when the encoding node is a switching node, as shown in fig. 18, the encoding node may further include m decoding units, configured to decode the received m service code streams to obtain m data code streams.
On the other hand, when the decoding node is an edge node, as shown in fig. 19, the decoding node further includes a processing unit for obtaining service data according to the m data code streams obtained by the link protection decoding unit.
When the decoding node is a switching node, as shown in fig. 20, the decoding node does not include the processing unit in fig. 19, but the decoding node further includes m encoding units for encoding m data code streams output from m third decoding units. Further, when the decoding node is a switching node, the decoding node may be further configured to perform port switching on m switching units of the m service code streams obtained by encoding m coding units. With continued reference to fig. 20, the encoding unit may be located between the third decoding unit and the switching unit, or with reference to fig. 21, the switching unit may be located between the third decoding unit and the switching unit.
In fig. 16 to 21, the link protection decoding units firstly check the first check segment in the first check code stream and the second check segment in the second check code stream according to the service segments in the m service code streams, and then the m third decoding units decode the m service code streams one by one to obtain m data code streams as an example. Alternatively, as shown in fig. 22, m third decoding units may decode m service code streams one by one to obtain m data code streams, and then the link protection decoding unit performs verification on the first verification segment in the first verification code stream and the second verification segment in the second verification code stream according to the service segments in the m data code streams.
Further, fig. 9 to 22 each take an example that the multi-barcode stream transmitted between the encoding node and the decoding node includes a first check-up code stream and a second check-up code stream, alternatively, the multi-barcode stream transmitted between the encoding node and the decoding node may also include the first check-up code stream and not include the second check-up code stream. For example, if the multi-barcode stream does not include the second check-up code stream on the basis of fig. 9, the communication system may be as shown in fig. 23; if the multi-barcode stream does not include the second check-up stream based on fig. 16, the communication system may be as shown in fig. 24; on the basis of fig. 22, if the multi-barcode stream does not include the second check-code stream, the communication system may be as shown in fig. 25.
Like the above-described fig. 10 to 15, the encoding nodes in fig. 22 to 25 may be edge nodes or switching nodes. Similar to the above-mentioned fig. 17 to 21, the decoding nodes in fig. 22 to 25 may be edge nodes or switching nodes, and the embodiments of the present application are not described herein.
The communication methods provided in the present application are described in detail above in connection with fig. 1 to 25, and it is understood that, in order to implement the functions described in the above methods, the communication device needs to include corresponding hardware and/or software modules for performing the respective functions. The execution of the methods described in connection with the embodiments disclosed herein may be embodied in hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality in varying ways for each particular application in conjunction with the embodiments, but such implementation is not to be considered as beyond the scope of the present application.
In this embodiment, the functional modules of the corresponding communication device may be divided according to the above-described method embodiment, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated modules described above may be implemented in hardware.
When the function block division is adopted, a communication apparatus provided in the present application will be described below with reference to fig. 26 and 27.
Fig. 26 is a block diagram of a communication device provided in an embodiment of the present application, where the communication device may be, for example, a coding node in the foregoing embodiments. As shown in fig. 26, the communication device includes: a first acquisition module 2601, a second acquisition module 2602, and a transmission module 2603.
The first obtaining module 2601 is configured to obtain m service code streams to be transmitted, where m is greater than or equal to 1; the operation performed by the first obtaining module 2601 may refer to the content related to the encoding node in S101 in the foregoing embodiment.
A second obtaining module 2602, configured to obtain at least one check code stream; the check code stream includes a plurality of check segments, and the at least one check code stream includes: a first check code stream; the service code stream comprises a plurality of service segments which are in one-to-one correspondence with the plurality of check segments in the first check code stream, and the check segments in the first check code stream are obtained by encoding the corresponding m service segments in the m service code streams; the operation performed by the second obtaining module 2602 may refer to the content related to the encoding node in S102 in the foregoing embodiment.
A sending module 2603, configured to send the multi-barcode stream to a decoding node; the multi-barcode stream includes: and the m service code streams and the at least one check code stream, and different code streams in the multi-code stream are used for transmission on different links. The operation performed by the transmission module 2603 may refer to the content related to the encoding node in S103 in the foregoing embodiment.
In the application, the second acquisition module in the encoding node can acquire the first check code stream, and the sending module can send m service code streams and the first check code stream to the decoding node. The first check code stream comprises a plurality of check segments, and each check segment in the first check code stream is obtained by encoding a service segment in m service code streams. After receiving the first check code stream, the decoding node can check at least part of check segments in the first check code stream, and if the error rate of the check segments in the at least part of check segments is higher, the decoding node indicates that a certain bar code stream is continuously bit-wrong due to link failure, so that it can be determined that a failure link exists in m service code streams and links for transmitting the first check code stream. Therefore, the decoding node in the application can determine that a fault link exists in the link of the code stream transmission, and when the error rate of the code stream received by the decoding node is higher, the decoding node can determine whether the higher error rate is caused by the link fault transmitted by the code stream.
The encoding mode adopted by the check segment in the first check code stream is not limited, for example, any one of the following encoding modes can be adopted by the check segment in the first check code stream: parity code encoding scheme, CRC encoding scheme, hamming code encoding scheme, cyclic code encoding scheme, and RS code encoding scheme.
Illustratively, the service code stream and the first check code stream each include at least one data frame; the check segment in the first check code stream includes: the ith bit in the (r) data frame of the first check code stream is not less than 1 and not more than 1; the service segment corresponding to the check segment in the first check code stream comprises: and the ith bit in the (r) th data frame in the service code stream to which the service segment belongs. In this case, the parity check code encoding mode may be adopted for the check segment in the first check code stream, and of course, other encoding modes may be adopted for the check segment, which is not limited in this application.
At least one check code stream in the above content includes a first check code stream, and the multi-bar code stream sent by the encoding node includes m service code streams and the first check code stream as an example, optionally, on this basis, the at least one check code stream further includes a second check code stream, and the multi-bar code stream sent by the encoding node may further include the second check code stream.
The second check code stream comprises n check segments, n is more than or equal to m, the n check segments are in one-to-one correspondence with the n bar code stream segments, and the check segments in the second check code stream are obtained by encoding the corresponding code stream segments; the n bar code stream segments belong to n reference code streams in one-to-one correspondence. The n reference code streams include the m service code streams, or the n reference code streams include the m service code streams and the first check code stream.
Illustratively, when the multiple bar code streams each include at least one data frame, the n check segments all belong to an r data frame in the second check code stream, and r is greater than or equal to 1; the code stream segment corresponding to the check segment in the second check code stream comprises: and an r-th data frame in the code stream to which the code stream section belongs. It can be seen that the encoding node encodes the r data frame in the reference code stream to obtain a check segment in the second check code stream. After the r-th data frame in the n reference code streams is encoded, n check segments in the second check code stream can be obtained.
When the multi-bar code stream comprises the second check code stream, if the decoding node determines that the error rate of the check segment in at least part of the check segments of the first check code stream is greater than the first probability, the decoding node can also check the check segments according to the code stream segments (the code stream segments belong to the service code stream) corresponding to the check segments in at least part of the check segments in the second check code stream so as to determine whether the check segments are in error; at this time, the above-mentioned fault conditions further include: the error rate of the check segment in at least part of the check segments of the second check code stream is greater than the second probability.
And if the error rate of the check segment in at least part of the check segments of the second check code stream is smaller than or equal to the second probability, indicating that the error rate of the m service code streams is lower. At this time, if the decoding node determines that the error rate of the check segment in at least part of the check segments of the first check code stream is greater than the first probability (which indicates that the error rate of the m service code streams is higher), it indicates that the first check code stream is in error, and at this time, the decoding node cannot determine that a faulty link exists in the links transmitted by the multiple code streams. In this way, the decoding node is prevented from misjudging whether the faulty link exists according to the first check code stream with errors.
And if the error rate of the check segment in at least part of the check segments of the second check code stream is greater than the second probability, indicating that the error rate of the m service code streams is higher. At this time, if the decoding node determines that the error rate of the check segment in at least part of the check segments of the first check code stream is greater than the first probability (which indicates that the error rate of the m service code streams is higher), it indicates that the first check code stream is error-free, and at this time, the decoding node can determine that a faulty link exists in the links transmitted by the multiple code streams.
Optionally, when the coding node codes the n reference code streams, the coding node may code the n reference code streams in a corresponding coding manner according to the length of the code stream segment. For example, the length of the code stream segment is greater than the target length, and the check segment in the second check code stream is encoded by adopting a first encoding mode. Or the length of the code stream section is smaller than or equal to the target length, and the check section in the second check code stream is encoded by adopting a second encoding mode. Wherein the error correction capability of the first encoding mode is greater than the error correction capability of the second encoding mode. For example, the first coding scheme is a CRC coding scheme, and the second coding scheme is a parity coding scheme. When the length of the code stream section is larger than the target length, more errors easily occur in the transmission process of the code stream section, and at this time, the coding node can code n pieces of reference code streams by adopting a first coding mode with stronger error correction capability; when the length of the code stream segment is smaller than or equal to the target length, errors easily occurring in the transmission process of the code stream segment are fewer, and at this time, the coding node can code the n reference code streams by adopting a second coding mode with weaker error correction capability.
Further, the m service code streams may be encoded code streams or not encoded code streams.
When the m service code streams are coded code streams, the first acquisition module may first acquire m data code streams to be transmitted when acquiring the m service code streams. For example, the coding node divides the m data code streams according to the data to be transmitted, or the coding node obtains the m data code streams according to the code streams sent by other nodes. And then, the first acquisition module can acquire m business code streams corresponding to the m data code streams one by one according to the m data code streams. Correspondingly, after receiving m service code streams, the decoding node may further obtain the m data code streams according to the m service code streams.
Wherein, for one service code stream corresponding to one data code stream, the service code stream includes: the data code stream and a first additional section obtained by encoding the data code stream; the encoding node may encode the data code stream to obtain the first additional segment, and further obtain a service code stream including the data code stream and the first additional segment. The decoding node may decode the service code stream to correct the data code stream according to the first additional segment, so as to obtain a data code stream in the service code stream.
Each of at least one check code stream (e.g., the first check code stream and the second check code stream) obtained by the encoding node according to the m service code streams includes a plurality of check segments. And for the check segment in the first check code stream, the check segment is obtained by encoding bits in m service segments in m service code streams. And for the check segment in the second check code stream, the check segment is obtained by encoding bits in the code stream segment corresponding to the check segment.
In an alternative manner, the check code stream includes a check segment obtained by encoding bits in the data code stream; and, the check code stream further includes: and a second additional segment obtained by encoding the plurality of check segments in the check code stream. When the check code stream includes the second additional segment, the decoding node may correct the check segment in the check code stream according to the second additional segment before checking at least part of the check segments in the first check code stream, so as to improve the accuracy of the check segment. Alternatively, the at least part of the check segments in the first check code stream may be all the check segments in the first check code stream.
Or in another alternative, the check code stream includes a check segment obtained by encoding bits in the data code stream and a check segment obtained by encoding bits in the first additional segment; and, the check code stream may not include the second additional segment. Optionally, the at least part of the check segments in the first check code stream may include a check segment obtained by encoding bits in the data code stream and a check segment obtained by encoding bits in the first additional segment; alternatively, the at least part of the check segments in the first check code stream may comprise check segments encoded from bits in the data code stream.
Further, the communication system provided by the application may include at least three nodes connected in sequence, where one edge node of the at least three nodes is configured to send a code stream to another edge node through a switching node, and the switching node is located between the one edge node and the another edge node; the encoding node and the decoding node are any two nodes of the at least three nodes.
Fig. 27 is a block diagram of another communication device provided in an embodiment of the present application, where the communication device may be, for example, a decoding node in the foregoing embodiments. As shown in fig. 27, the communication apparatus includes: a receiving module 2701, a first verifying module 2702 and a first determining module 2703.
The receiving module 2701 is configured to receive a multi-bar code stream sent by the encoding node; the multi-barcode stream includes: m business code streams and at least one check code stream, wherein the first check code stream comprises a plurality of check sections, and m is more than or equal to 1; the at least one check code stream comprises a first check code stream, the service code stream comprises a plurality of service segments corresponding to the plurality of check segments in the first check code stream one by one, and the check segments in the first check code stream are obtained by encoding corresponding m service segments in the m service code streams; different code streams in the multi-code stream are used for transmission on different links; the operation performed by the receiving module 2701 may refer to the content related to the decoding node in S103 in the foregoing embodiment.
A first check module 2702, configured to check a check segment in the first check code stream according to the service segment corresponding to the check segment in the first check code stream, so as to determine whether the check segment in the first check code stream is wrong; the operation performed by the first verification module 2702 may refer to the content related to the decoding node in S104 in the foregoing embodiment.
A first determining module 2703, configured to determine that a faulty link exists in the links transmitted by the multiple barcode flows when the fault condition is satisfied; the fault condition includes: and the error rate of the check segment in the first check code stream is larger than the first probability. The operation performed by the first determining module 2703 may refer to the content related to the decoding node in S105 in the foregoing embodiment.
In the application, the encoding node may acquire the first check code stream, and send m service code streams and the first check code stream to the decoding node. The first check code stream comprises a plurality of check segments, and each check segment in the first check code stream is obtained by encoding a service segment in m service code streams. After receiving the first check code stream, the decoding node can check at least part of check segments in the first check code stream, and if the error rate of the check segments in the at least part of check segments is higher, the decoding node indicates that a certain bar code stream is continuously bit-wrong due to link failure, so that it can be determined that a failure link exists in m service code streams and links for transmitting the first check code stream. Therefore, the decoding node in the application can determine that a fault link exists in the link of the code stream transmission, and when the error rate of the code stream received by the decoding node is higher, the decoding node can determine whether the higher error rate is caused by the link fault transmitted by the code stream.
Optionally, the at least one check code stream further includes: the second check code stream comprises n check segments, the n check segments are in one-to-one correspondence with the n bar code stream segments, and the check segments in the second check code stream are obtained by encoding the corresponding code stream segments; the n bar code stream segments belong to n reference code streams in one-to-one correspondence, wherein the n reference code streams comprise the m business code streams, and n is more than or equal to m.
The communication device further includes: a second checking module (not shown in fig. 27) configured to check, when the error rate of the first checking segment is greater than a first probability, the second checking segment according to the code stream segment corresponding to the second checking segment, so as to determine whether the second checking segment is erroneous; the code stream segment corresponding to the second check segment belongs to the service code stream; at least part of the check segments in the second check code stream are all the second check segments; the fault condition further includes: the error rate of the second check segment is greater than the second probability.
It can be seen that when the multi-bar code stream includes the second check code stream, if the decoding node determines that the error rate of the first check segment is greater than the first probability, the decoding node may further check the second check segment according to the code stream segment (the code stream segment belongs to the service code stream) corresponding to the check segment in the second check segment, so as to determine whether the second check segment is in error; at this time, the above-mentioned fault conditions further include: the error rate of the second check segment is greater than the second probability. The code stream segment corresponding to the second check segment belongs to the service code stream; at least part of the check segments in the second check code stream are all the second check segments.
If the error rate of the second check segment is smaller than or equal to the second probability, the error rate of the m service code streams is lower. At this time, if the decoding node determines that the error rate of the first check segment is greater than the first probability (which indicates that the error rate of the m service code streams is higher), it indicates that the first check code stream is in error, and at this time, the decoding node does not determine that a faulty link exists in the links transmitted by the multiple code streams. In this way, the decoding node is prevented from misjudging whether the faulty link exists according to the first check code stream with errors.
If the error rate of the second check segment is greater than the second probability, the error rate of the m service code streams is higher. At this time, if the decoding node determines that the error rate of the first check segment is greater than the first probability (which indicates that the error rate of the m service code streams is higher), it indicates that the first check code stream is error-free, and at this time, the decoding node may determine that a faulty link exists in the links transmitted by the multiple code streams.
Optionally, the communication device further includes: and a second determining module (not shown in fig. 27) configured to determine, when the fault condition is met, that a link transmitted by the fault service code stream is the fault link if a fault service code stream with a bit error rate greater than a target bit error rate exists in the m service code streams, thereby positioning the fault link and ensuring effective communication between nodes. The operation performed by the second determining module may refer to the operation related to the decoding node in S106 of the foregoing embodiment.
Optionally, the communication device further includes: and a recovery module (not shown in fig. 27) configured to, after the second determining module determines that the link transmitted by the faulty service code stream is the faulty link, perform data recovery on the faulty service code stream according to the code streams other than the faulty service code stream in the multiple code streams, so as to ensure effective communication between the nodes. It should be noted that, the first check code stream is related to the m service code streams, so the recovery module may perform data recovery on the fault service code stream according to the first check code stream and other service code streams except the fault service code stream in the m service code streams. The operation for the restoration module to perform may refer to the operation related to the decoding node in S107 of the foregoing embodiment.
Optionally, the communication device further includes: an alarm module (not shown in fig. 27) for performing an alarm operation for the failed link after the second determining module determines that the link for transmission of the failed traffic stream is the failed link. The operation for the alarm module to perform may refer to the operation related to the decoding node in S108 of the foregoing embodiment.
Further, the m service code streams may be encoded code streams or not encoded code streams.
When the m service code streams are coded code streams, the coding node may first acquire m data code streams to be transmitted when acquiring the m service code streams. For example, the coding node divides the m data code streams according to the data to be transmitted, or the coding node obtains the m data code streams according to the code streams sent by other nodes. And then, the coding node can acquire m business code streams corresponding to the m data code streams one by one according to the m data code streams. Accordingly, the communication device as a decoding node further includes an acquisition module (not shown in fig. 27) configured to acquire the m data code streams according to the m service code streams after the receiving module receives the m service code streams.
Wherein, for one service code stream corresponding to one data code stream, the service code stream includes: the data code stream and a first additional section obtained by encoding the data code stream; the encoding node may encode the data code stream to obtain the first additional segment, and further obtain a service code stream including the data code stream and the first additional segment. The decoding node may decode the service code stream to correct the data code stream according to the first additional segment, so as to obtain a data code stream in the service code stream.
Each of at least one check code stream (e.g., the first check code stream and the second check code stream) obtained by the encoding node according to the m service code streams includes a plurality of check segments. And for the check segment in the first check code stream, the check segment is obtained by encoding bits in m service segments in m service code streams. And for the check segment in the second check code stream, the check segment is obtained by encoding bits in the code stream segment corresponding to the check segment.
In an alternative manner, the check code stream includes a check segment obtained by encoding bits in the data code stream; and, the check code stream further includes: and a second additional segment obtained by encoding the plurality of check segments in the check code stream. When the check code stream includes the second additional segment, the communication device as the decoding node further includes an error correction module (not shown in fig. 27) configured to correct the check segment in the check code stream according to the second additional segment before the first check module performs the check on at least a portion of the check segments in the first check code stream, so as to improve the accuracy of the check segments. Alternatively, the at least part of the check segments in the first check code stream may be all the check segments in the first check code stream.
Or in another alternative, the check code stream includes a check segment obtained by encoding bits in the data code stream and a check segment obtained by encoding bits in the first additional segment; and, the check code stream may not include the second additional segment. Optionally, the at least part of the check segments in the first check code stream may include a check segment obtained by encoding bits in the data code stream and a check segment obtained by encoding bits in the first additional segment; alternatively, the at least part of the check segments in the first check code stream may comprise check segments encoded from bits in the data code stream.
Further, the communication system provided by the application may include at least three nodes connected in sequence, where one edge node of the at least three nodes is configured to send a code stream to another edge node through a switching node, and the switching node is located between the one edge node and the another edge node; the encoding node and the decoding node are any two nodes of the at least three nodes.
The present application also provides a chip including programmable logic circuits and/or program instructions for implementing operations performed by an encoding node in any of the communication methods provided by the embodiments of the present application when the chip is running, or for implementing operations performed by a decoding node in any of the communication methods provided by the embodiments of the present application when the chip is running.
In this application, the terms "first" and "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The term "at least one" means one or more, "a plurality" means two or more, unless expressly defined otherwise.
Different types of embodiments, such as a method embodiment and a device embodiment, provided in the embodiments of the present application may be mutually referred to, and the embodiments of the present application are not limited to this. The sequence of the steps of the method embodiment provided in the embodiment of the present application can be appropriately adjusted, the steps can be correspondingly increased or decreased according to the situation, and any method which is easily conceivable to be changed by a person skilled in the art within the technical scope of the present application should be covered within the protection scope of the present application, so that no further description is provided.
In the corresponding embodiments provided in the present application, it should be understood that the disclosed system and apparatus may be implemented in other structural manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules is merely a logical function division, and there may be additional divisions of actual implementation, e.g., multiple modules may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical or other forms.
Elements illustrated as separate elements may or may not be physically separate, and elements described as elements may or may not be physically located, or may be distributed over several apparatuses. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (23)

1. A method of communication, the method performed by a coding node in a communication system, the method comprising:
obtaining m business code streams to be transmitted, wherein m is more than or equal to 1;
acquiring at least one check code stream; the check code stream includes a plurality of check segments, and the at least one check code stream includes: a first check code stream; the service code stream comprises a plurality of service segments which are in one-to-one correspondence with the plurality of check segments in the first check code stream, and the check segments in the first check code stream are obtained by encoding the corresponding m service segments in the m service code streams;
Transmitting the multi-bar code stream to a decoding node; the multi-barcode stream includes: and the m service code streams and the at least one check code stream, and different code streams in the multi-code stream are used for transmission on different links.
2. The method of claim 1, wherein the check segment in the first check code stream adopts any one of the following coding modes: parity code encoding scheme, cyclic redundancy check CRC encoding scheme, hamming code encoding scheme, cyclic code encoding scheme, and Reed-Solomon RS code encoding scheme.
3. The method of claim 1, wherein the traffic stream and the first check stream each comprise at least one data frame;
the check segment in the first check code stream includes: the ith bit in the (r) data frame of the first check code stream is not less than 1 and not more than 1;
the service segment corresponding to the check segment in the first check code stream comprises: and the ith bit in the (r) th data frame in the service code stream to which the service segment belongs.
4. The method of claim 3, wherein the check segments in the first check code stream are encoded using parity check codes.
5. The method of any of claims 1 to 4, wherein the at least one check code stream further comprises: a second check code stream;
the second check code stream comprises n check segments, n is more than or equal to m, the n check segments are in one-to-one correspondence with the n bar code stream segments, and the check segments in the second check code stream are obtained by encoding the corresponding code stream segments;
the n bar code stream segments belong to n reference code streams in one-to-one correspondence; the n reference code streams include the m service code streams.
6. The method of claim 5, wherein the n reference code streams further comprise the first check code stream.
7. The method of claim 5 or 6, wherein the multiple barcode streams each comprise at least one data frame;
the n check segments belong to an r data frame in the second check code stream, and r is more than or equal to 1;
the code stream segment corresponding to the check segment in the second check code stream comprises: and an r-th data frame in the code stream to which the code stream section belongs.
8. The method according to any one of claims 5 to 7, wherein the length of the code stream segment is greater than a target length, and the check segment in the second check code stream is encoded by a first encoding mode;
Or the length of the code stream section is smaller than or equal to the target length, and the check section in the second check code stream is encoded by adopting a second encoding mode;
wherein the error correction capability of the first encoding mode is greater than the error correction capability of the second encoding mode.
9. The method of claim 8, wherein the first encoding scheme is a CRC encoding scheme and the second encoding scheme is a parity encoding scheme.
10. The method according to any one of claims 1 to 9, wherein the obtaining m service code streams to be transmitted includes:
obtaining m data code streams to be transmitted;
according to the m data code streams, m business code streams corresponding to the m data code streams one by one are obtained;
wherein, for one service code stream corresponding to one data code stream, the service code stream includes: the data code stream and a first additional section obtained by encoding the data code stream;
for one of the check code streams:
the check code stream comprises a check segment obtained by encoding bits in the data code stream and a second additional segment obtained by encoding the plurality of check segments;
alternatively, the check code stream includes a check segment encoded by bits in the data code stream and a check segment encoded by bits in the first additional segment.
11. The method according to any of claims 1 to 10, wherein the communication system comprises at least three nodes connected in sequence;
one edge node of the at least three nodes is used for sending a code stream to another edge node through a switching node, and the switching node is positioned between the one edge node and the another edge node;
the encoding node and the decoding node are any two nodes of the at least three nodes.
12. A method of communication, the method performed by a decoding node in a communication system, the method comprising:
receiving a multi-bar code stream sent by a coding node; the multi-barcode stream includes: m business code streams and at least one check code stream, wherein the first check code stream comprises a plurality of check sections, and m is more than or equal to 1; the at least one check code stream comprises a first check code stream, the service code stream comprises a plurality of service segments corresponding to the plurality of check segments in the first check code stream one by one, and the check segments in the first check code stream are obtained by encoding corresponding m service segments in the m service code streams; different code streams in the multi-code stream are used for transmission on different links;
Checking the first check segment according to the service segment corresponding to the first check segment to determine whether the first check segment is wrong; at least part of the check segments in the first check code stream are all the first check segments;
when the fault condition is met, determining that a fault link exists in links transmitted by the multi-bar code stream; the fault condition includes: the error rate of the first check segment is greater than a first probability.
13. The method of claim 12, wherein the at least one check code stream further comprises: the second check code stream comprises n check segments, the n check segments are in one-to-one correspondence with the n bar code stream segments, and the check segments in the second check code stream are obtained by encoding the corresponding code stream segments; the n bar code stream sections belong to n reference code streams in one-to-one correspondence, wherein the n reference code streams comprise the m business code streams, and n is more than or equal to m;
the method further comprises the steps of:
when the error rate of the first check segment is greater than the first probability, checking the second check segment according to the code stream segment corresponding to the second check segment to determine whether the second check segment is in error or not; the code stream segment corresponding to the second check segment belongs to the service code stream; at least part of the check segments in the second check code stream are all the second check segments;
The fault condition further includes: the error rate of the second check segment is greater than the second probability.
14. The method according to claim 12 or 13, characterized in that the method further comprises:
and when the fault condition is met, if the m service code streams have fault service code streams with the error rate larger than the target error rate, determining that the link transmitted by the fault service code streams is the fault link.
15. The method of claim 14, wherein after determining that the link to which the failed traffic stream is transmitted is the failed link, the method further comprises:
and recovering the data of the fault service code stream according to the code streams except the fault service code stream in the multi-code stream.
16. The method according to claim 14 or 15, wherein after determining that the link for transmission of the failed traffic stream is the failed link, the method further comprises:
and executing an alarm operation for the failed link.
17. The method according to any of claims 12 to 16, wherein for one of the check code streams, the check code stream comprises: a check segment obtained by encoding bits in the data code stream, and a second additional segment obtained by encoding the plurality of check segments;
Before checking the first check segment, the method further includes:
according to the m service code streams, m data code streams corresponding to the m service code streams one by one are obtained, and for one data code stream corresponding to one service code stream, the service code streams comprise: the data code stream and a first additional section obtained by encoding the data code stream;
and for one check code stream, correcting errors of a plurality of check segments in the check code stream according to the second additional segment in the check code stream.
18. The method according to any of claims 12 to 16, wherein after receiving the multi-barcode stream transmitted by the encoding node, the method further comprises:
according to the m service code streams, m data code streams corresponding to the m service code streams one by one are obtained, and for one data code stream corresponding to one service code stream, the service code streams comprise: the data code stream and a first additional section obtained by encoding the data code stream;
for one of the check code streams, the check code stream includes a check segment encoded by bits in the data code stream and a check segment encoded by bits in the first additional segment;
At least part of the check segments in the first check code stream comprise: a check segment obtained by encoding bits in the data code stream and a check segment obtained by encoding bits in the first additional segment; alternatively, at least part of the check segments in the first check code stream include: and a check segment obtained by encoding the bits in the data code stream.
19. A method according to any one of claims 12 to 18, wherein the communication system comprises at least three nodes connected in sequence, one of the at least three nodes being arranged to transmit traffic streams to another edge node via a switching node, the switching node being located between the one edge node and the other edge node; the encoding node and the decoding node are any two nodes of the at least three nodes.
20. A communication device, wherein the communication device is a coding node in a communication system, the communication device comprising:
the first acquisition module is used for acquiring m business code streams to be transmitted, wherein m is more than or equal to 1;
the second acquisition module is used for acquiring at least one check code stream; the check code stream includes a plurality of check segments, and the at least one check code stream includes: a first check code stream; the service code stream comprises a plurality of service segments which are in one-to-one correspondence with the plurality of check segments in the first check code stream, and the check segments in the first check code stream are obtained by encoding the corresponding m service segments in the m service code streams;
The sending module is used for sending the multi-bar code stream to the decoding node; the multi-barcode stream includes: and the m service code streams and the at least one check code stream, and different code streams in the multi-code stream are used for transmission on different links.
21. A communication device, wherein the communication device is a decoding node in a communication system, the communication device comprising:
the receiving module is used for receiving the multi-bar code stream sent by the encoding node; the multi-barcode stream includes: m business code streams and at least one check code stream, wherein the first check code stream comprises a plurality of check sections, and m is more than or equal to 1; the at least one check code stream comprises a first check code stream, the service code stream comprises a plurality of service segments corresponding to the plurality of check segments in the first check code stream one by one, and the check segments in the first check code stream are obtained by encoding corresponding m service segments in the m service code streams; different code streams in the multi-code stream are used for transmission on different links;
the first verification module is used for verifying the first verification segment according to the service segment corresponding to the first verification segment so as to determine whether the first verification segment is wrong; at least part of the check segments in the first check code stream are all the first check segments;
The first determining module is used for determining that a fault link exists in links transmitted by the multi-bar code stream when the fault condition is met; the fault condition includes: the error rate of the first check segment is greater than a first probability.
22. A communication system comprising an encoding node and a decoding node, the encoding node being the communication device of claim 20 and the decoding node being the communication device of claim 21.
23. A chip comprising programmable logic circuits and/or program instructions for implementing the communication method according to claims 1 to 11 when the chip is run or for implementing the communication method according to claims 12 to 19 when the chip is run.
CN202210033798.4A 2022-01-12 2022-01-12 Communication method, device and system Pending CN116471164A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210033798.4A CN116471164A (en) 2022-01-12 2022-01-12 Communication method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210033798.4A CN116471164A (en) 2022-01-12 2022-01-12 Communication method, device and system

Publications (1)

Publication Number Publication Date
CN116471164A true CN116471164A (en) 2023-07-21

Family

ID=87174054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210033798.4A Pending CN116471164A (en) 2022-01-12 2022-01-12 Communication method, device and system

Country Status (1)

Country Link
CN (1) CN116471164A (en)

Similar Documents

Publication Publication Date Title
US6823470B2 (en) Method and apparatus for correcting data
US8001445B2 (en) Protected communication link with improved protection indication
US6557139B2 (en) Encoding apparatus and encoding method for multidimensionally coding and encoding method and decoding apparatus for iterative decoding of multidimensionally coded information
US7418644B2 (en) System for error correction coding and decoding
US7730385B2 (en) Method for decoding a received control channel message with a priori information
US8392800B2 (en) Multi-hop network having increased reliability
US7957642B2 (en) Efficient and simple bit error rate calculation on optical transport layer
Zhao et al. Embracing corruption burstiness: Fast error recovery for zigbee under wi-fi interference
US6697985B1 (en) Predictive forward error correction redundancy
US20080155372A1 (en) Methods and apparatus for improving error indication performance in systems with low-density parity check codes
CN108599896B (en) CRC (Cyclic redundancy check) system and method based on redundant coding system
US20100262887A1 (en) High Integrity Data Network System and Method
US20040107398A1 (en) Error detection in received data transmissions
US20230023776A1 (en) Codeword Synchronization Method, Receiver, Network Device, and Network System
US6378106B1 (en) Viterbi decoding using single-wrong-turn correction
CN108337069B (en) Improved error rate reducing end parallel grouping CRC (Cyclic redundancy check) system
US6678854B1 (en) Methods and systems for providing a second data signal on a frame of bits including a first data signal and an error-correcting code
WO2008154826A1 (en) Transmitting, receiving method and apparatus for realizing service data recovery
CN116471164A (en) Communication method, device and system
WO2022228370A1 (en) Codeword synchronization method, receiver, network device and network system
US8429484B2 (en) Digitized radar information redundancy method and system
US7380193B1 (en) Jointly coded cooperative networking
WO2021017890A1 (en) Communication method and communication device
US6532564B1 (en) Encoder for multiplexing blocks of error protected bits with blocks of unprotected bits
Sauter et al. Majority Manchester decoding for active redundant data transmission

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication