CN112511266A - Transmission method, detection method and device, acquisition method, network equipment and system - Google Patents
Transmission method, detection method and device, acquisition method, network equipment and system Download PDFInfo
- Publication number
- CN112511266A CN112511266A CN202010627644.9A CN202010627644A CN112511266A CN 112511266 A CN112511266 A CN 112511266A CN 202010627644 A CN202010627644 A CN 202010627644A CN 112511266 A CN112511266 A CN 112511266A
- Authority
- CN
- China
- Prior art keywords
- code
- block
- code block
- stream
- code stream
- 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.)
- Withdrawn
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 180
- 230000005540 biological transmission Effects 0.000 title claims abstract description 78
- 238000000034 method Methods 0.000 title claims abstract description 70
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 119
- 238000004364 calculation method Methods 0.000 claims description 42
- 230000003993 interaction Effects 0.000 claims description 12
- 230000001360 synchronised effect Effects 0.000 claims description 5
- 238000012546 transfer Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 20
- 238000004891 communication Methods 0.000 description 14
- 238000005516 engineering process Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 7
- 230000008859 change Effects 0.000 description 6
- 238000012217 deletion Methods 0.000 description 4
- 230000037430 deletion Effects 0.000 description 4
- 238000013500 data storage Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 238000011144 upstream manufacturing Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000003780 insertion Methods 0.000 description 2
- 230000037431 insertion Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
- 230000007723 transport mechanism Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0045—Arrangements at the receiver end
- H04L1/0046—Code rate detection or code type detection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/20—Arrangements for detecting or preventing errors in the information received using signal quality detector
- H04L1/203—Details of error rate determination, e.g. BER, FER or WER
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Detection And Prevention Of Errors In Transmission (AREA)
Abstract
The present disclosure provides a data transmission method, including: replacing a target code block in the client service code stream by using the substitute code block to obtain an intermediate code stream; calculating code blocks in the intermediate code stream by using a preset error code detection algorithm to obtain a detection reference value of the intermediate code stream; and sending the detection reference value and the intermediate code stream. The present disclosure also provides an error code detection method, a client service acquisition method, a data transmission device, an error code detection device, a client service acquisition device, a computer-readable storage medium, a first network device, a second network device, and a network system.
Description
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a data transmission method, an error detection method, a client service acquisition method, a data transmission device, an error detection device, a client service acquisition device, a computer-readable storage medium, a first network device, a second network device, and a network system.
Background
The main service content transmitted by the communication network in the past is telephone service, and the communication network adopts the technology of Plesiochronous Digital Hierarchy (PDH) and Synchronous Digital Hierarchy (SDH) to form a communication system for transmitting client information.
The SDH network has high reliability, has a reliable error code detection mechanism for a transmission signal channel, can detect error conditions in client service transmission in real time, and reports an alarm in time when the error code rate of a client reaches a certain degree, so that the network is prompted to select an alternative path to transmit client information again, and the client information transmission is prevented from being influenced.
With the rapid development of data services, at present, the main transmission content of a communication Network is a data Packet service, the communication Network gradually transitions from a device of an SDH technology to a Network composed of a Packet Transport Network (PTN) device, a router, and the like, the communication Network transmits client service content as a data Packet, and the Network device interface is mainly an Ethernet interface or a flexible Ethernet (FlexE, Flexeble Ethernet) interface.
For network devices with ethernet and FlexE interfaces, how to perform reliable error code detection on a service transmission channel becomes a research focus of various manufacturers.
Disclosure of Invention
The present disclosure is directed to a data transmission method, an error code detection method, a client service acquisition method, a data transmission device, an error code detection device, a client service acquisition apparatus, a computer-readable storage medium, and a data transmission system.
As a first aspect of the present disclosure, there is provided a data transmission method including:
replacing a target code block in the client service code stream by using the substitute code block to obtain an intermediate code stream;
calculating code blocks in the intermediate code stream by using a preset error code detection algorithm to obtain a detection reference value of the intermediate code stream;
transmitting the detection reference value and the intermediate code stream, wherein,
the target code block satisfies the following conditions: the calculation result obtained by calculating the client service code stream by using the preset error code detection algorithm is inconsistent with the calculation result obtained by calculating the client service code stream added or deleted by using the preset error code detection algorithm, and the replacement code block meets the following conditions: and the calculation result obtained by calculating the intermediate code stream by using the preset error code detection algorithm is consistent with the calculation result obtained by calculating the intermediate code stream added or deleted with the substitute code block by using the preset error code detection algorithm.
Optionally, the predetermined error detection algorithm is a bit interleaved parity check, BIP, algorithm,
the number of bytes in the alternate code block is even, and the number of bits of "1" in each byte of the alternate code block is even.
Optionally, the data transmission method further includes, before the step of replacing the target code block in the customer service code stream with the substitute code block:
encoding a client service message to obtain a client service code stream, wherein the client service code stream comprises a message starting block, a data block, a message ending block, a self-low-power idle LPI code block, a local fault LF code block and a remote fault RF code block, the LPI code block, the LF code block and the RF are all the target code blocks,
in the step of replacing a target code block in a customer service code stream with a replacement code block to obtain an intermediate code stream, replacing the LPI code block with a replacement code block corresponding to the LPI code block, replacing the LF code block with a replacement code block corresponding to the LF code block, and replacing the RF code block with a replacement code block corresponding to the RF code block.
Optionally, the content structure of the LPI code block includes: a 0x1e byte and 8 7-bit 0x06 bytes arranged in sequence;
the content of the substitute code block corresponding to the LPI code block includes one 0x1e byte and 7 8-bit 0x06 bytes.
Optionally, the content structure of the LF code block includes: one 0x4B byte, two 0x00 bytes, one 0x01 byte and four 0x00 bytes arranged in sequence;
the content of the alternative code block corresponding to the LF code block includes: one 0x4B byte, two 0x00 bytes, one 0x11 byte, and four 0x00 bytes arranged in this order.
Optionally, the content of the RF code block includes: one 0x4B byte, two 0x00 bytes, one 0x02 byte, four 0x00 bytes arranged in sequence;
the contents of the alternate code block corresponding to the RF code block include: one 0x4B byte, two 0x00 bytes, one 0x22 byte, four 0x00 bytes are arranged in sequence.
Optionally, the format of the substitute code is: the first byte of content is 0x1e, the next six bytes of content are 0x00, and the last byte of content is 0xii, where i is selected from any one of 0 to F.
Optionally, the code blocks in the target code intermediate code stream are code blocks with a length of 66 bits, and the step of calculating the code blocks in the intermediate code stream by using a predetermined error detection algorithm includes:
dividing the code block into a plurality of check groups;
and respectively calculating each check group by using the predetermined error code detection algorithm to obtain a plurality of check values, wherein the detection reference value comprises the plurality of check values.
Optionally, the code blocks in the intermediate code stream are code blocks with a length of 66 bits, and the step of calculating the code blocks in the intermediate code stream by using a predetermined error detection algorithm includes:
grouping 64 bits of the target code block except for a synchronization header to obtain a plurality of check groups;
and respectively calculating each check group by using the predetermined error code detection algorithm to obtain a plurality of check values, wherein the detection reference value comprises the plurality of check values.
Optionally, the step of grouping the 64 bits of the target code block except for the synchronization header comprises any one of the following steps:
taking each byte as a check group;
using the bits at the same position in a plurality of bytes as a check group;
the plurality of check groups comprise a first check group and a second check group, a first control byte is used as one check group, and the alignment bits in a plurality of C fields defined by the following 56 bits according to the 802.3 standard are used as a plurality of second check groups.
Optionally, the code blocks in the intermediate code stream are code blocks with a length of 66 bits, and the step of calculating the code blocks in the intermediate code stream by using a predetermined error detection algorithm includes:
grouping 64 bits of the target code block except for a synchronization header to obtain a plurality of check groups;
allocating two bits in the synchronization header to one or both of a plurality of parity groups;
and respectively calculating the check group of the data in the unassigned synchronous head and the check group of the data in the assigned synchronous head by using the preset error code detection algorithm to obtain a plurality of check values, wherein the detection reference value comprises the plurality of check values.
As a second aspect of the present disclosure, there is provided an error detection method, including:
receiving a detection reference value and an intermediate code stream, wherein the detection reference value and the intermediate code stream are sent by the data transmission method provided by the disclosure;
calculating the received intermediate code stream by using the preset error code detection algorithm to obtain a comparison value;
and comparing the comparison value with the detection reference value to determine the error condition.
As a third aspect of the present disclosure, there is provided a client service acquisition method, including:
receiving a detection reference value and an intermediate code stream, wherein the detection reference value and the intermediate code stream are sent by the data transmission method provided by the disclosure;
calculating the received intermediate code stream by using the preset error code detection algorithm to obtain a comparison value;
comparing the comparison value with the detection reference value to determine an error condition;
and restoring the substitute code blocks in the intermediate code stream into corresponding target code blocks to obtain the customer service code stream.
As a fourth aspect of the present disclosure, there is provided a data transmission device including:
the replacing module is used for replacing a target code block in the client service code stream by using a replacing code block to obtain an intermediate code stream;
the detection reference value calculation module is used for calculating code blocks in the intermediate code stream by using a preset error code detection algorithm so as to obtain a detection reference value of the intermediate code stream; and
a sending module, configured to send the detection reference value and the intermediate code stream, where,
the target code block satisfies the following conditions: the calculation result obtained by calculating the client service code stream by using the preset error code detection algorithm is inconsistent with the calculation result obtained by calculating the client service code stream added or deleted by using the preset error code detection algorithm, and the replacement code block meets the following conditions: and the calculation result obtained by calculating the intermediate code stream by using the preset error code detection algorithm is consistent with the calculation result obtained by calculating the intermediate code stream added or deleted with the substitute code block by using the preset error code detection algorithm.
As a fifth aspect of the present disclosure, there is provided an error detecting device including:
a receiving module, configured to receive a detection reference value and an intermediate code stream, where the detection reference value and the intermediate code stream are sent by a data transmission device provided by the present disclosure;
the comparison value calculation module is used for calculating the received intermediate code stream by using the preset error code detection algorithm to obtain a comparison value; and
and the error code condition determining module is used for comparing the comparison value with the detection reference value to determine the error code condition.
As a sixth aspect of the present disclosure, a client service acquisition apparatus includes:
an error code detecting device; and
and the restoring module is used for restoring the substitute code blocks in the intermediate code stream into corresponding target code blocks so as to obtain the customer service code stream.
As a seventh aspect of the present disclosure, there is provided a first network device comprising:
a first storage module having a first executable program stored thereon;
one or more first processors capable of invoking the first executable program to cause the one or more first processors to implement the above-described data transmission method provided by the present disclosure;
and the one or more I/O first interfaces are connected between the first processor and the first storage module and are configured to realize information interaction between the first processor and the first storage module.
As an eighth aspect of the present disclosure, there is provided an error detecting device comprising:
a second storage module having a second executable program stored thereon;
one or more second processors capable of invoking the second executable program to cause the one or more second processors to implement the above-described error detection method provided by the present disclosure;
and the one or more I/O second interfaces are connected between the second processor and the second storage module and are configured to realize information interaction between the second processor and the second storage module.
As a ninth aspect of the present disclosure, there is provided a second network device comprising:
a third storage module having a third executable program stored thereon;
one or more third processors capable of invoking the third executable program to cause the one or more third processors to implement the above-described customer service acquisition method provided by the present disclosure;
and the one or more I/O third interfaces are connected between the third processor and the third storage module and are configured to realize information interaction between the third processor and the third storage module.
As a tenth aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon an executable program that, when invoked, implements any one of the following methods:
the data transmission method provided by the present disclosure;
the error code detection method provided by the present disclosure;
the client service acquisition method provided by the disclosure.
As an eleventh aspect of the present disclosure, there is provided a network system including:
at least one first network device provided by the present disclosure; and
at least one second network device provided by the present disclosure.
When the data transmission method provided by the disclosure is used for transmitting the intermediate code stream, according to the specific situation of each network equipment node in the communication network, the IDLE code block can be added or deleted, or the substitute code block can be added or deleted, so as to adjust the transmission speed. As described above, the addition and deletion of the substitute code block has no influence on the predetermined error detection algorithm, and therefore, at the sink node of the client service, the value obtained by calculating the received code stream using the predetermined error detection algorithm (for convenience of description, the value is named as a comparison value) can accurately reflect the error condition of the transmission path.
Accordingly, the customer service acquisition method provided by the present disclosure may restore the substitute code block to the target code block to obtain a customer service code stream.
The data transmission device provided by the disclosure can realize the data transmission method, and the error code detection device provided by the disclosure can realize the error code detection method.
Drawings
FIG. 1 is a schematic diagram of an application of a communication network for communicating customer service data;
FIG. 2 illustrates the 64/66 encoding principle in the 802.3 standard;
FIG. 3 is a schematic diagram of the delivery of a customer service code stream encoded by a customer message 64/66;
fig. 4 is a schematic diagram of an implementation method for error detection in a customer service code block stream;
FIG. 5 is a schematic diagram of BIP8 algorithm implementation;
fig. 6 is a diagram showing a block structure of 66-bit length for error detection;
FIG. 7 is a schematic diagram of the implementation of the BIP8 algorithm in a client service code stream;
FIG. 8 is a schematic diagram of the structure of an IDLE block IDLE block;
fig. 9 is a schematic structure of an LPI code block;
fig. 10 is a schematic diagram of the structure of an LF code block;
FIG. 11 is a diagram illustrating the structure of an RP code;
FIG. 12 is a flow chart of one embodiment of a method of data transmission provided by the first aspect of the present disclosure;
fig. 13 is a schematic diagram showing an implementation of the data transmission method provided by the present disclosure;
fig. 14 is a flow chart of another embodiment of a data transmission method provided in the first aspect of the present disclosure;
fig. 15 is a schematic structure diagram of an LPI code block and its alternative code block;
fig. 16 is a schematic diagram of an LF code block and its alternative code blocks;
fig. 17 is a schematic diagram of an RF code block and its alternative codes;
FIG. 18 is a schematic diagram of another structure of an alternative code;
fig. 19 is a schematic diagram of grouping code blocks in a second manner;
FIG. 20 is a schematic diagram of one embodiment of step S120;
FIG. 21 is a schematic view of another embodiment of step S120;
FIG. 22 is a schematic diagram of yet another embodiment of step S120;
fig. 23 is a flowchart of an embodiment of an error detection method according to a third aspect of the present disclosure;
fig. 24 is a flowchart of an embodiment of a client service acquisition method according to a fourth aspect of the present disclosure;
FIG. 25 is a block diagram of one embodiment of a data transmission device provided in a fifth aspect of the present disclosure;
fig. 26 is a block diagram of an embodiment of an error detection apparatus provided in the sixth aspect of the present disclosure;
fig. 27 is a block diagram of an embodiment of a client service acquisition device provided in the seventh aspect of the present disclosure.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are given by way of illustration and explanation only, not limitation.
Shown in fig. 1 is a communication network formed by network devices using ethernet interfaces and FLexE interfaces, where a client a sends a client traffic stream to a client B through a network device a, a network device B, a network device C, and a network device D in the communication network.
And the clocks of the network devices in the network are asynchronous, and each network device adopts the respective system clock to transmit the client service flow. The traffic flow rate of the receiving port (the speed depends on the system clock of the upstream network device) and the traffic flow rate of the transmitting port (the speed depends on the system clock of the present network device) on the same network device are different, and therefore, the network device needs to adjust the client traffic flow.
The client information adopting the Ethernet interface technology and the Flexe interface technology is Ethernet messages, and frame intervals exist between the Ethernet messages. The standard specifies that the average minimum value of the frame spacing between messages is 12 bytes, and when the client message is not at full flow, the frame spacing between messages will be greater than 12 bytes. The network device adjusts the actual transmission speed of the client service flow by adjusting the number of the message frame interval bytes so as to adapt to the condition that the upstream speed and the downstream speed of the network device are inconsistent.
Before the ethernet packet is transmitted, the ethernet packet is 64/66 encoded according to the encoding rule shown in fig. 2, forming a code block of 66 bits in length. On ethernet interfaces (10GE speed interface and higher), FlexE interfaces, customer traffic streams are transported as code block streams 66 bits long.
In fig. 2, "Input Data" indicates Input Data, "Data Block Format" indicates a Data Block Format, "Bit Position" indicates a Bit Position, "Sync" indicates a Sync header, and "Block Payload" indicates an information field of a Block. "Block Type Field" indicates a Block Type Field.
Specifically, the 64/66 encoding rule is to slice the client message information into 64-bit (8-byte) long blocks, and add 2-bit synchronization headers (sync) to the front of the blocks to form 66-bit code blocks. The code block of 66-bit length is divided into two code blocks: a data block and a control block, wherein the 2-bit sync header value of the data block is "01", and the following 64 bits represent 8 bytes of data bytes (8 bytes of content in the data block). The 2-bit sync header value of the control block is "10", which indicates a control block, the first byte (8 bits) in the block is the block type field (block type) of the control block, which indicates the specific type of the control block, e.g. the content of the control word is "0 x1 e", which indicates a block of an insertion type (e.g. a free IDLE block or an erroneous ERROR block, a low power block, etc., and which type of insertion block is determined by the content of the next 7 bytes).
When there is no customer service message, the line transmits idle code block, and the frame interval part between messages also transmits idle code block; the control word is "0 x 78" and indicates the start block of the message (i.e., S block), where the next 7 bytes of content are the preamble and start frame content of the message, and the S block is followed by the body part of the message, i.e., the data block, i.e., D block. The control words are "0 x 87", "0 x 99", "0 xAA", "0 xB 4", "0 xCC", "0 xD 2", "0 xE 1", and "0 xFF", which indicate message end blocks, and 8 kinds of message end blocks are indicated as T0 and T1. Because the length of a message is uncertain, when a message is cut into blocks according to the length of 8 bytes, the effective byte length of the last block is unequal, the byte length may only be 0 byte, only 1 byte, 2 bytes, 8 cases such as 7 bytes, etc., and the effective byte length is represented by 8 different end blocks.
When the last block of the client service message has 0 byte, the length of the message is an integral multiple of 8, the former D block transmits the message content of the last 8 bytes of the message, the length of the last block byte is 0 byte, the T0 block is used for representing the message end block, and the T0 block does not carry any data message content and is only used for representing the message end mark; when the last block of the message only has information of 1 byte, using a T1 block to end the message, and carrying message content of 1 byte in a T1 block (carrying message content of one byte in the 2 nd byte position in the block); when the last block of the client service message only has information of 2 bytes, using a T2 block to end the message, and carrying message content of 2 bytes in a T2 block (2 data bytes of the message are carried in the positions of the 2 nd and 3 rd bytes in the block); when the last block of the message has only 7 bytes of data information, the end block of the message is used as a T7 block, and the message content of 7 bytes is carried in the T7 block (the message content of 7 bytes is carried in the 2 nd-8 th byte position in the block). The control block type includes other control blocks besides idle code blocks, start block S blocks, and end block T blocks. For example, an o-block whose sync header is "10", block type field (block type) content is "0 x 4B", the o-block is typically used to convey fault maintenance information, and the following 7 bytes of content are used to convey the information fault type. The customer traffic is encoded 64/66 and delivered as a stream of code blocks, as shown in fig. 3. In the stream of code blocks, each client message starts with an S block, followed by a D block, and finally ends with a T block. Between two messages, there are IDLE blocks IDLE, o blocks and other code blocks to fill in, which are used to represent message interval gap, line fault and other information.
In order to detect the quality condition of the transmission channel for transmitting the client service, it is necessary to perform error detection on the client service, as shown in fig. 4. Error detection information is inserted into a customer service code block stream, for example, error detection reference information is carried on a special o code block, which is generally called an OAM information block (OAM is an abbreviation of Operation Administration and Maintenance, and network Operation Maintenance information is generally abbreviated as OAM information).
For example, in fig. 4, at the transmitting end, a set of algorithms (e.g., the commonly used BIP8 algorithm) is used to calculate all code block contents between two OAM information blocks, and the calculation result is an error detection reference value of all code block contents of the two OAM information blocks, and the reference value is carried in the subsequent OAM information blocks and transmitted to the receiving end along with the service code block stream. At the receiving end, the same algorithm is also adopted to calculate the contents of all code blocks of the same two OAM information blocks, and the calculation result is a comparison value. The receiving end receives the reference value carried by the transmitting end along with the route, compares the received reference value with the recalculated contrast value, and if the two are the same, the code block of the client service stream is correctly transmitted from the transmitting end to the receiving end, and no error code exists in the client service. If the two codes are different, the error occurs in the transmission of the client service flow code block from the sending end to the receiving end, and the difference size of the two codes represents the size of the error code amount.
In the related art, a BIP8 (Bit Interleaved Parity) algorithm, which is already widely used in an SDH standard and an Optical Transport Network (OTN) standard, is used as a checking algorithm for performing error detection on the contents of all code blocks in a section of customer service code stream.
In the SDH and OTN standards, the length of a client service code block is one byte and 8 bits, and the BIP8 calculation algorithm includes: in a byte stream, 1 bit is taken from the corresponding position (b8-b1) in each byte, parity operation is carried out on the 1 bits obtained from the corresponding position in all bytes, 1-bit operation result is obtained, and 8 bits in each byte obtain 8-bit result, namely BIP 8. As shown in fig. 5, in bytes 1 to n, the most significant bit b8 is taken from each byte, and parity operation is performed on b8 of all bytes to obtain b8 bits of operation result of BIP 8; the next highest b7 in each byte, the b7 of all bytes carries out parity operation, the b7 of the operation result of BIP8 is analogized in sequence, the lowest bit in each byte is b1, the b1 of all bytes carries out parity operation, and the b1 of the operation result of BIP8, so that the reference value BIP8 is obtained and is transmitted to the receiving end of the sink point device along with the client service block.
The message code stream is transmitted on the ethernet interface and the FlexE interface, and is generally a 66-bit code block, as shown in fig. 6, where the code block has a 2-bit sync header and 8 bytes of data content. For a 66-bit block, there are various implementations when calculating using BIP 8. Fig. 7 shows a BIP8 detection algorithm, without detecting a 2-bit sync header (the two-bit sync itself has a backup check mechanism), for the remaining 8 bytes, 8 bits in each byte are subjected to parity operation to obtain a 1-bit result, 8 bytes obtain an 8-bit value of BIP8, and then according to the operation mode of the byte BIP8, the respective 8-bit results in different code blocks are respectively subjected to bit parity operation to obtain the final BIP8 result content, the operation method realizes the BIP8 calculation of 66-bit code blocks, and the calculated BIP8 result is the error detection reference value.
As described above, because the system clock frequencies of different devices in the network of the ethernet interface and the FlexE interface are different, the device interior needs to adjust the speed deviation between the received code block stream and the sent code block rate to adapt to the frequency deviation, thereby avoiding the occurrence of overflow interruption in the code block stream. The speed adapting method of the code stream is to adjust the actual speed of the code stream by adding or deleting part of specific code blocks in the code stream, thereby solving the problem of inconsistent transmission speeds of upstream and downstream equipment. The types of code blocks that can be added or deleted in the current practical application are: an IDLE code block, a Low Power IDLE (LPI) code block, an LF (LF: local fault) code block, and an RF (RF: remote fault) code block, but the S, D, and T code blocks of the data message are not allowed to be subjected to add/delete operations. After adding or deleting code blocks of the client service stream, due to the fact that the error code detection algorithm is inconsistent before and after the objects detected by the sending end and the receiving end, even if the client service transmission process has no errors, the results calculated by the algorithm of the sending end and the receiving end are possibly inconsistent, and whether error codes occur in the client service transmission process cannot be detected.
Taking the IDLE block as an example, the IDLE code block has a structure shown in fig. 8, where the content of the first byte in the IDLE code block is "0 x 1E", and the last 7 bytes are all 0. The 8-bit value of the first byte "0 x 1E" is "00011110", there are 4-bit values "1", and other bits are "0", and since there are even number of "1" in the 8 bits, the result of even operation of 8-bit information is 0, and the contents of other 7 bytes are all 0, such an IDLE code block adopts the operation rule of fig. 7 to obtain BIP8 which is "00000000". When the result of the BIP8 algorithm of one IDLE code byte is "00000000", no matter how many IDLE blocks in the client service code stream participate in the BIP8 operation, the result is always kept unchanged, and the BIP8 value is always "00000000".
For the algorithm in fig. 7, after adding or deleting IDLE blocks in a client service flow, although the number of IDLE blocks in the coverage of the BIP8 algorithm changes, the operation result of the BIP8 algorithm remains unchanged all the time, and the result of the BIP8 algorithm is consistent between a sending end and a receiving end, which does not affect the judgment of whether an error judgment mechanism occurs in the service flow during transmission, so that the BIP8 algorithm in fig. 7 can adapt to the add/delete activity of IDLE blocks in the client service flow, the BIP8 algorithm is not affected by the number of IDLE blocks in the client service flow, but the BIP8 algorithm can only adapt to the change of the number of IDLE blocks, and cannot adapt to the change of the number of LPI blocks, RF blocks, and LF blocks.
Taking the LPI block structure as an example, as shown in fig. 9, the content of the first byte in the LPI block is "0 x 1E", followed by 8 segments of 7-bit content, and the 7-bit content is "0 x 06", that is, the 7-bit content is "0000110". The LPI code is completely converted into an 8-byte structure, so that the content of the LPI code is as the lower half of fig. 9, and the content of the 8 bytes is "0 x 1E", "0 x0 c", "0 x 18", "0 x 30", "0 x 60", "0 xc 1", "0 x 83", and "0 x 06", respectively. Among the bytes, even number of "1" in 1, 2, 3, 4, 5, 8 bytes, according to the BIP algorithm of fig. 8, the operation result of the BIP calculation algorithm of these bytes is "0", and the BIP calculation result of these bytes is always "0" no matter how many LPI codes participate in the operation; in the 6 th and 7 th bytes, there are odd number of "1", and the BIP calculation result of these bytes is "1" and is not "0". According to the BIP8 algorithm of fig. 7, the operation result "00000110" (the calculation result of the 6 th bit and the 7 th bit is 1, and the other bits are 0) of the operation of the BIP8 algorithm of one LPI codeword section. Based on the result of the operation of one LPI codeword section BIP8, when two LPI codes are calculated, the result "00000110" of the first BIP8 and the result "00000110" of the second BIP8 are operated according to bits, and the result is "00000000". When three LPI codes are calculated, three 00000110 bits are operated according to the bit, and the result is 00000110; when four LPI codes are calculated, four "00000110" bits are operated according to the result of "00000000", and so on, it can be seen that when the number of LPI code blocks is different, the calculation result of BIP8 is different. When the LPI code blocks in the client traffic stream are added or deleted, if the number of the added or deleted LPI code blocks is an even number, the operation result of the BIP8 algorithm is not affected. If the number of the added and deleted LPI codes is odd, the operation result of the BIP8 algorithm is affected. Since the adding and deleting processes are random and uncertain in number when each node device on the network adds or deletes the LPI codes, the BIP8 algorithm result of fig. 7 is affected by the number change of the LPI codes.
Similarly, for the LF codes and RF codes in fig. 10 and 11, since the number of "1" bits in a part of bytes in the code block is not an even number, when the BIP8 operation is performed according to the algorithm in fig. 7, the operation result of the BIP8 algorithm is affected by the number change of the LF codes and RF codes.
In view of this, as a first aspect of the present disclosure, there is provided a data transmission method applied to a source node of client traffic transmission, as shown in fig. 12, the data transmission method including:
replacing a target code block in the customer service code stream with a substitute code block to obtain an intermediate code stream in step S120;
in step S130, calculating code blocks in the intermediate code stream by using a predetermined error code detection algorithm to obtain a detection reference value of the intermediate code stream;
in step S140, the detection reference value and the intermediate code stream are transmitted.
Wherein the target code block is a code block having an effect on a predetermined error detection algorithm. Specifically, the target code block satisfies the following condition: and the calculation result obtained by calculating the client service code stream by using the preset error code detection algorithm is inconsistent with the calculation result obtained by calculating the client service code stream added or deleted by using the preset error code detection algorithm. Accordingly, the replacement code block is a code block that has no effect on a predetermined error detection algorithm. Specifically, the replacement code block satisfies the following condition: and the calculation result obtained by calculating the intermediate code stream by using the preset error code detection algorithm is consistent with the calculation result obtained by calculating the intermediate code stream added or deleted with the substitute code block by using the preset error code detection algorithm.
When the data transmission method provided by the disclosure is used for transmitting the intermediate code stream, according to the specific situation of each network equipment node in the communication network, the IDLE code block can be added or deleted, or the substitute code block can be added or deleted, so as to adjust the transmission speed. As described above, the addition and deletion of the substitute code block has no influence on the predetermined error detection algorithm, and therefore, at the sink node of the client service, the value obtained by calculating the received code stream using the predetermined error detection algorithm (for convenience of description, the value is named as a comparison value) can accurately reflect the error condition of the transmission path.
Specifically, if the detection reference value is the same as the comparison value, it indicates that no error code occurs in the data during transmission from the originating end to the receiving end. If the detection reference value is different from the comparison value, the error code of the data is indicated in the transmission process from the transmitting end to the receiving end, and the difference between the detection reference value and the comparison value represents the size of the error code amount.
It should be noted that, in order to obtain customer service data, the sink node of the customer service should have a function of restoring the substitute code block to the target code block to obtain a customer service code stream.
The data transmission method provided by the present disclosure is explained below with reference to fig. 13. The client traffic data is transmitted from the client 1 to the client B via the network device a (Clock 1), the network device B (Clock 2), the network device C (Clock 3), and the network device D (Clock 4).
Customer traffic data needs to be first converted into a customer traffic code stream at a source node of customer traffic transmission (i.e., at customer 1), the customer traffic code stream including a plurality of code blocks. The target code block includes a code, B code, C code, and D code … …. At a source node of customer traffic transmission, all target code blocks are replaced with corresponding replacement code blocks in a one-to-one correspondence. Specifically, the a code is converted into a corresponding alternative code a 'code, the B code is converted into a corresponding alternative code B' code, the C code is converted into a corresponding alternative code C 'code, and the D code is converted into a corresponding alternative code D' code, … …, so as to obtain an intermediate code stream. And, at the source node, calculating a detection reference value of the intermediate code stream by using the predetermined error detection algorithm.
The intermediate code stream reaches the client 2 (i.e., a sink node) through the network device a, the network device B, the network device C, and the network device D, and at the sink node, the received code stream is calculated by using the predetermined error code detection algorithm to obtain a comparison value. And, at the host node, the comparison value may be compared with the detection reference value to determine the error condition in the network transmission process. At the sink node, the respective alternate code blocks may be restored to the respective target code blocks in a one-to-one correspondence. Specifically, a code of the substitute code a 'is converted into a corresponding code a, a code of the substitute code B' is converted into a corresponding code B, a code of the substitute code C 'is converted into a corresponding code C, and a code of the substitute code D' is converted into a corresponding code D, … …, so as to obtain a customer service code stream.
As an optional implementation manner, in the present disclosure, the detection reference value is carried by using OAM information in the customer service code stream.
In the present disclosure, the predetermined error detection algorithm is not particularly limited. As an alternative, the predetermined error algorithm may be a bit interleaved parity BIP algorithm. In this case, only if the number of bits of "1" in each byte of the code block is even, the increasing or deleting of the code block does not affect the calculation result of the BIP algorithm. Accordingly, the number of bits of "1" in each byte of the alternate code block is even.
Further optionally, the predetermined error detection algorithm may be selected from any one of the BIP8 algorithm, BIP16 algorithm, BIP32 algorithm, BIP64 algorithm.
As described above, as shown in fig. 14, the data transmission method may further include, before step S120:
in step S110, the customer service message (i.e., customer service data) is encoded to obtain a customer service code stream.
In the present disclosure, the encoding rule is not particularly limited, and optionally, the customer service data may be encoded according to 64/66 encoding rule to obtain the customer service code stream. Accordingly, the client traffic code stream includes a message start block (i.e., S block), a data block (i.e., D block), a message end block (i.e., T block), an LPI code block, an LF code block, and an RF code block.
As described above, the addition/deletion of LPI code blocks, LF code blocks, and RF code blocks affects the error detection result. Therefore, LPI code blocks, LF code blocks, RF are all the target code blocks.
In step S120, the LPI code block is replaced with a replacement code block corresponding to the LPI code block, the LF code block is replaced with a replacement code block corresponding to the LF code block, and the RF code block is replaced with a replacement code block corresponding to the RF code block.
Since the S block, D block, and T block carry the client traffic information, it is preferable not to replace these code blocks carrying the client traffic information.
As shown in the upper part of fig. 15, the content structure of the LPI code block includes: one 0x1e byte and 8 7-bit 0x06 bytes arranged in sequence. Accordingly, as shown in the lower half of fig. 15, the contents of the replacement code block (which may be referred to herein as an LPI' code block) corresponding to the LPI code block include one 0x1e byte and 7 8-bit 0x06 bytes. In the source node, all LPI codeblocks in the customer traffic code stream are replaced with LPI 'codeblocks, and at this time, the calculation result of the predetermined error detection algorithm is not affected by the change of the number of the replacement codeblocks (i.e., LPI' codeblocks). At a sink node that receives an intermediate stream including LPI 'code blocks, the LPI' code blocks are restored to LPI code blocks.
As shown in the upper part of fig. 16, the content structure of the LF code block includes: one 0x4B byte, two 0x00 bytes, one 0x01 byte, and four 0x00 bytes arranged in this order. Accordingly, the contents of the alternative code block corresponding to the LF code block (which may be referred to herein as an LF' code block) include: one 0x4B byte, two 0x00 bytes, one 0x11 byte, and four 0x00 bytes arranged in this order. As shown in the lower part of fig. 16, in the LF code block, the content of the fourth byte is changed from "0 x 01" to "0 x 11", so that the number of bits of "1" in all bytes in the LF code is even, that is, the calculation result of the predetermined error code algorithm is not affected by the change of the number of the LF code block. At a sink node receiving the intermediate code stream including the LF code block, the LF code block is restored back to the LF code block.
As shown in the upper part of fig. 17, the contents of the RF code block include: one 0x4B byte, two 0x00 bytes, one 0x02 byte, four 0x00 bytes are arranged in sequence. Accordingly, the replacement code block (which may be referred to herein as an RF' code block) corresponding to the RF code block includes: one 0x4B byte, two 0x00 bytes, one 0x22 byte, four 0x00 bytes are arranged in sequence. In the RF code block, the content of the fourth byte is changed from "0 x 02" to "0 x 22", so that the number of "1" bits in all bytes in the RF code block is even, that is, the variation of the number of the RF code block does not affect the calculation result of the predetermined error code algorithm.
Of course, the present disclosure is not limited thereto, and the substitute code may have other formats as long as the variation of the number of the substitute codes does not affect the calculation result of the predetermined error detection algorithm. As an optional implementation, the format of the substitute code is: the first byte of content is 0x1e, the next six bytes of content are 0x00, and the last byte of content is 0xii, where i is selected from any one of 0 to F.
As shown in fig. 18, the last byte of the alternate code block a 'of the a code block is 0x11, the last byte of the alternate code block B' of the B code block is 0x22, the last byte of the alternate code block C 'of the C code block is 0x33, and so on, and the last byte of the alternate code block Z' of the Z code block is 0 xFF.
When transmitting the customer service message, 64/66 encoding is required to obtain a customer service code stream, and as an alternative, the code blocks in the customer service code stream are code blocks including 66 bit length. Accordingly, the code blocks included in the target code intermediate stream are also code blocks of 66-bit length. Accordingly, as shown in fig. 20, step S120 may include:
in step S121a, the code block is divided into a plurality of check groups;
in step S122a, each check group is calculated by using the predetermined error detection algorithm, so as to obtain a plurality of check values, where the detection reference value includes the plurality of check values.
Of course, the present disclosure is not limited thereto, and as another alternative implementation, as shown in fig. 21, step S120 may further include:
in step S121b, grouping 64 bits of the target code block except for the sync header to obtain a plurality of check groups;
in step S122b, each check group is calculated by using the predetermined error detection algorithm, so as to obtain a plurality of check values, where the detection reference value includes the plurality of check values.
In this embodiment, the first 2 bit sync headers do not participate in the packet because the 2 bit sync values can only be "01" or "10" and an error can be detected whenever one bit has occurred.
Of course, the data in the sync header may also be used to participate in the operation. Specifically, as shown in fig. 22, step S120 may include:
in step S121c, grouping 64 bits of the target code block except for the sync header to obtain a plurality of check groups;
in step S122c, two bits in the sync header are allocated to one or two of a plurality of parity groups;
in step S123c, a check group to which data in the sync header is not allocated and a check group to which data in the sync header is allocated are calculated by using the predetermined error detection algorithm, respectively, to obtain a plurality of check values, where the detection reference value includes the plurality of check values.
Two bits in the 2 bit synchronization head are distributed into any one group or two groups in 8 check groups, and participate in operation together with the existing bits in the groups. Thus, the number of bits allocated to the parity group of the 2 bit sync header may be greater than the number of bits of the other parity groups.
In the present disclosure, no particular limitation is imposed on how to group. Alternatively, the step of grouping the 64 bits of the target code block except for the synchronization header may be specifically performed as any one of the following ways:
first, each byte is taken as a check group;
secondly, using the bits at the same position in a plurality of bytes as a check group;
thirdly, the plurality of check groups comprise a first check group and a second check group, a first control byte is used as one of the first check groups, and the next 56 bits are used as a plurality of second check groups according to the alignment bits in a plurality of C fields defined by the 802.3 standard.
When the predetermined error detection algorithm is BIP8, the 66-bit long code block may be divided into 8 check groups, and check values (which may be referred to as BIP values) corresponding to the 8 check groups are respectively calculated, where the 8 check values constitute the detection reference value. Specifically, the data of 64 bits (total 8 bytes) in a 66-long-bit code block is divided into 8 groups, and there are three grouping modes:
first, each byte is treated as a parity group, and the algorithm shown in FIG. 7 can be used.
Secondly, bits at the same position in a plurality of bytes are used as a check group, the check group is calculated by the predetermined algorithm to obtain a plurality of check values, the detection reference value comprises the check values, specifically, each byte comprises 8 bits from b8 to b1, and the bits at the corresponding position in each byte are divided into 1 group. For example, the eighth bit (i.e., b8) of all bytes forms a check group, the seventh bit (i.e., b7) of all bytes forms a check group, the sixth bit (i.e., b6) of all bytes forms a check group, the fifth bit (i.e., b5) of all bytes forms a check group, the fourth bit (i.e., b4) of all bytes forms a check group, the third bit (i.e., b3) of all bytes forms a check group, the second bit (i.e., b2) of all bytes forms a check group, and the first bit (i.e., b1) of all bytes forms a check group. In this manner, the algorithm shown in fig. 19 may be employed.
Thirdly, using the first control byte as a first check group, using the alignment bits in a plurality of C fields defined by the following 56 bits according to the 802.3 standard as a plurality of second check groups, and respectively calculating the first check group and each second check group by using the predetermined algorithm to obtain a plurality of check values, wherein the detection reference value comprises the plurality of check values. Specifically, the first byte is a single check group, and the other 56 bits are defined as a "0 x1 e" control block in the 802.3 standard, and the bit at the corresponding position in each c value is a check group. Specifically, b7 bits in each c value are a check group (including b7 bits c 0: b7 in the c0 field, b7 bits c 1: b7 in the c1 field, b7 fields c 2: b7 in the c2 field, b7 fields c 3: b7 in the c3 field, b7 bits c 4: b4 in the c4 field, b4 fields c 4: b4 in the c4 field, b4 bits c 4: b4 in the c4 field, b4 fields c 4: b4 in the c4 field, b4 bits in each c value are a check group (including b4 bits c 4: b4 in the c4 field, b4 bits c: b4 in the c4 field, b4 c: b4 b: b4 c in the c4 field, b4 b: 4 c: 4b, c 4b, c: 4b 4 c, b4 c: b 4b, b4 c: 4b, c, b4 c: 4b, b 4b, c, b4 c, c: 4b, c, b4 b: 4 b: 72 b: b, c B5 field of fields c 3: b 5; b5 field c4 in the c4 field: b 5; b5 field c5 in the c5 field: b 5; b5 field c6 in the c6 field: b 5; b5 field c7 in the c7 field: b5) the b4 bits in each c value are a parity group (including the b4 bits in the c0 field, c 0: b 4; b7 bits c1 in the c1 field: b 4; b4 field c2 in the c2 field: b 4; b4 field c3 in the c3 field: b 4; b4 field c4 in the c4 field: b 4; b4 field c5 in the c5 field: b 4; b4 field c6 in the c6 field: b 4; b4 field c7 in the c7 field: b4) the b3 bits in each c value are a parity group (including the b3 bits in the c0 field, c 0: b 3; b7 bits c1 in the c1 field: b 3; b3 field c2 in the c2 field: b 3; b3 field c3 in the c3 field: b 3; b3 field c4 in the c4 field: b 3; b3 field c5 in the c5 field: b 3; b3 field c6 in the c6 field: b 3; b3 field c7 in the c7 field: b3) the b2 bits in each c value are a parity group (including the b2 bits in the c0 field, c 0: b 2; b7 bits c1 in the c1 field: b 2; b2 field c2 in the c2 field: b 2; b2 field c3 in the c3 field: b 2; b2 field c4 in the c4 field: b 2; b2 field c5 in the c5 field: b 2; b2 field c6 in the c6 field: b 2; b2 field c7 in the c7 field: b2) the b1 bits in each c value are a parity group (including the b1 bits in the c0 field, c 0: b 1; b7 bits c1 in the c1 field: b 1; b1 field c2 in the c2 field: b 1; b1 field c3 in the c3 field: b 1; b1 field c4 in the c4 field: b 1; b1 field c5 in the c5 field: b 1; b1 field c6 in the c6 field: b 1; b1 field c7 in the c7 field: b1) in that respect
When the predetermined error detection algorithm is BIP16, the 66-bit long code block may be divided into 16 check groups, and BIP values corresponding to the 16 check groups are respectively calculated, where the 16 BIP values constitute the detection reference value.
By analogy, when the predetermined error detection algorithm is BIP32, the 66-bit long code block may be divided into 32 check groups, and when the predetermined error detection algorithm is BIP64, the 66-bit long code block may be divided into 64 check groups.
As a second aspect of the present disclosure, there is provided an error detection method, which is applied to a sink node of customer service delivery, as shown in fig. 23, and includes:
in step S210, receiving a detection reference value and an intermediate code stream, where the detection reference value and the intermediate code stream are sent by the data transmission method provided in the first aspect of the present disclosure;
in step S220, calculating the received intermediate code stream by using the predetermined error code detection algorithm to obtain a comparison value;
in step S230, the comparison value is compared with the detection reference value to determine an error condition.
As described above, at the source node of the customer service delivery, the code block having an influence on the error detection algorithm is replaced with the substitute code block, and the addition and deletion of the substitute code block have no influence on the predetermined error detection algorithm, so that at the sink node of the customer service, the value obtained by calculating the received code stream using the predetermined error detection algorithm (for convenience of description, the value is named as a contrast value) can accurately reflect the error condition of the transmission path.
As a third aspect of the present disclosure, there is provided a client service acquisition method, as shown in fig. 24, the client service acquisition method including:
in step S310, receiving a detection reference value and an intermediate code stream, where the detection reference value and the intermediate code stream are sent by the data transmission method provided in the first aspect of the present disclosure;
in step S320, calculating the received intermediate code stream by using the predetermined error code detection algorithm to obtain a comparison value;
in step S330, comparing the comparison value with the detection reference value to determine an error condition;
in step S340, the substitute code blocks in the intermediate code stream are restored to corresponding target code blocks, so as to obtain the customer service code stream.
It is noted that a sink node receiving customer traffic is aware of a replacement rule for replacing a target code block with a replacement code block, and thus the sink node may restore the replacement code block to the target code block according to the replacement rule.
As a fourth aspect of the present disclosure, there is provided a data transmission device, as shown in fig. 25, including a replacement module 120, a detection reference value calculation module 130, and a transmission module 140.
The replacing module 120 is configured to replace the target code block in the customer service code stream with the substitute code block to obtain an intermediate code stream.
The detection reference value calculation module 130 is configured to calculate code blocks in the intermediate code stream by using a predetermined error detection algorithm to obtain a detection reference value of the intermediate code stream.
The sending module 140 is configured to send the detection reference value and the intermediate code stream.
The target code block satisfies the following conditions: the calculation result obtained by calculating the client service code stream by using the preset error code detection algorithm is inconsistent with the calculation result obtained by calculating the client service code stream added or deleted by using the preset error code detection algorithm, and the replacement code block meets the following conditions: and the calculation result obtained by calculating the intermediate code stream by using the preset error code detection algorithm is consistent with the calculation result obtained by calculating the intermediate code stream added or deleted with the substitute code block by using the preset error code detection algorithm.
The data transmission device provided by the present disclosure is configured to execute the data transmission method provided by the first aspect of the present disclosure, and the working principle and the beneficial effect of the data transmission method have been described in detail above, and are not described again here.
As a fifth aspect of the present disclosure, an error detecting device is provided, as shown in fig. 26, and includes a receiving module 210, a comparison value calculating module 220, and an error condition determining module 230.
The receiving module 210 is configured to receive the detection reference value and the intermediate code stream sent by the data transmission device.
The comparison value calculating module 220 is configured to calculate the received intermediate code stream by using the predetermined error detection algorithm to obtain a comparison value.
The error condition determining module 230 is configured to compare the comparison value with the detection reference value to determine an error condition.
The error code detection device is configured to execute the error code detection method provided by the second aspect of the present disclosure, and the working principle and the beneficial effects of the error code detection method have been described in detail above, and are not described again here.
As a sixth aspect of the present disclosure, a client service acquisition device is provided, as shown in fig. 26, the client service acquisition device includes an error detection device 310 and a restoration module 320.
The error detecting device 310 is the error detecting device provided in the fifth aspect of the present disclosure.
The restoring module 320 is configured to restore the substitute code block in the intermediate code stream to a corresponding target code block, so as to obtain the customer service code stream.
The client service obtaining device is configured to execute the client service obtaining method provided in the third aspect of the present disclosure, and the detailed technology has been already performed on the client service obtaining method, and is not described here again.
As a seventh aspect of the present disclosure, there is provided a first network device comprising:
a first storage module having a first executable program stored thereon;
one or more first processors capable of invoking the first executable program to cause the one or more first processors to implement a data transfer method provided in accordance with a first aspect of the present disclosure;
and the one or more I/O first interfaces are connected between the first processor and the first storage module and are configured to realize information interaction between the first processor and the first storage module.
The first processor is a device with data processing capability including, but not limited to, a Central Processing Unit (CPU), etc.; the first memory module is a device with data storage capability, which includes, but is not limited to, random access memory (RAM, more specifically SDRAM, DDR, etc.), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), FLASH memory (FLASH).
The first I/O interface is connected between the first processor and the first memory module, and can realize information interaction between the first processor and the first memory module, including but not limited to data Bus (Bus) and the like.
In some embodiments, the first processor, the first memory module, and the first I/O interface are connected to each other via a bus, and further, to other components of the display terminal.
As an eighth aspect of the present disclosure, there is provided an error detecting device comprising:
a second storage module having a second executable program stored thereon;
one or more second processors capable of invoking the second executable program to cause the one or more second processors to implement an error detection method provided in accordance with a second aspect of the disclosure;
and the one or more I/O second interfaces are connected between the second processor and the second storage module and are configured to realize information interaction between the second processor and the second storage module.
The second processor is a device with data processing capability including, but not limited to, a Central Processing Unit (CPU), etc.; the second storage module is a device with data storage capability, which includes but is not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), FLASH memory (FLASH).
The second I/O interface is connected between the second processor and the second memory module, and can realize information interaction between the second processor and the second memory module, including but not limited to data Bus (Bus) and the like.
In some embodiments, the second processor, the second memory module, and the second I/O interface are connected to each other via a bus, and further, to other components of the display terminal.
As a ninth aspect of the present disclosure, there is provided a second network device comprising:
a third storage module having a third executable program stored thereon;
one or more third processors capable of invoking the third executable program to cause the one or more third processors to implement customer service acquisition provided in accordance with a third aspect of the disclosure;
and the one or more I/O third interfaces are connected between the third processor and the third storage module and are configured to realize information interaction between the third processor and the third storage module.
The third processor is a device with data processing capability, including but not limited to a Central Processing Unit (CPU) or the like; the third storage module is a device with data storage capability, which includes but is not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), FLASH memory (FLASH).
The third I/O interface is connected between the second processor and the second memory module, and can realize information interaction between the third processor and the third memory module, including but not limited to data Bus (Bus) and the like.
As a tenth aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon an executable program that, when invoked, implements any one of the following methods:
the data transmission method provided by the first aspect of the present disclosure;
the second aspect of the disclosure provides an error detection method;
the third aspect of the present disclosure provides a client service acquisition method.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
As an eleventh aspect of the present disclosure, there is provided a network system including:
at least a first network device as provided by the present disclosure; and
at least one second network device provided by the present disclosure.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.
Claims (21)
1. A method of data transmission, comprising:
replacing a target code block in the client service code stream by using the substitute code block to obtain an intermediate code stream;
calculating code blocks in the intermediate code stream by using a preset error code detection algorithm to obtain a detection reference value of the intermediate code stream;
transmitting the detection reference value and the intermediate code stream, wherein,
the target code block satisfies the following conditions: the calculation result obtained by calculating the client service code stream by using the preset error code detection algorithm is inconsistent with the calculation result obtained by calculating the client service code stream added or deleted by using the preset error code detection algorithm, and the replacement code block meets the following conditions: and the calculation result obtained by calculating the intermediate code stream by using the preset error code detection algorithm is consistent with the calculation result obtained by calculating the intermediate code stream added or deleted with the substitute code block by using the preset error code detection algorithm.
2. The data transmission method according to claim 1, wherein the predetermined error detection algorithm is a bit interleaved parity check (BIP) algorithm,
the number of bytes in the alternate code block is even, and the number of bits of "1" in each byte of the alternate code block is even.
3. The data transmission method of claim 2, wherein the data transmission method further comprises, prior to the step of replacing the target code block in the customer traffic code stream with the alternate code block:
encoding a client service message to obtain a client service code stream, wherein the client service code stream comprises a message starting block, a data block, a message ending block, a self-low-power idle LPI code block, a local fault LF code block and a remote fault RF code block, the LPI code block, the LF code block and the RF are all the target code blocks,
in the step of replacing a target code block in a customer service code stream with a replacement code block to obtain an intermediate code stream, replacing the LPI code block with a replacement code block corresponding to the LPI code block, replacing the LF code block with a replacement code block corresponding to the LF code block, and replacing the RF code block with a replacement code block corresponding to the RF code block.
4. The data transmission method according to claim 3, wherein the content structure of the LPI code block comprises: a 0x1e byte and 8 7-bit 0x06 bytes arranged in sequence;
the content of the substitute code block corresponding to the LPI code block includes one 0x1e byte and 7 8-bit 0x06 bytes.
5. The data transmission method according to claim 3, wherein the content structure of the LF code block comprises: one 0x4B byte, two 0x00 bytes, one 0x01 byte and four 0x00 bytes arranged in sequence;
the content of the alternative code block corresponding to the LF code block includes: one 0x4B byte, two 0x00 bytes, one 0x11 byte, and four 0x00 bytes arranged in this order.
6. The data transmission method according to claim 3, wherein the contents of the RF code block include: one 0x4B byte, two 0x00 bytes, one 0x02 byte, four 0x00 bytes arranged in sequence;
the contents of the alternate code block corresponding to the RF code block include: one 0x4B byte, two 0x00 bytes, one 0x22 byte, four 0x00 bytes are arranged in sequence.
7. The data transmission method according to claim 3, wherein the substitute code is in a format of: the first byte of content is 0x1e, the next six bytes of content are 0x00, and the last byte of content is 0xii, where i is selected from any one of 0 to F.
8. The data transmission method according to any one of claims 2 to 7, wherein the code blocks in the target code intermediate stream are 66-bit-length code blocks, and the calculating the code blocks in the intermediate stream by using a predetermined error detection algorithm comprises:
dividing the code block into a plurality of check groups;
and respectively calculating each check group by using the predetermined error code detection algorithm to obtain a plurality of check values, wherein the detection reference value comprises the plurality of check values.
9. The data transmission method according to any one of claims 2 to 7, wherein the code blocks in the intermediate code stream are 66-bit-length code blocks, and the calculating the code blocks in the intermediate code stream by using a predetermined error detection algorithm comprises:
grouping 64 bits of the target code block except for a synchronization header to obtain a plurality of check groups;
and respectively calculating each check group by using the predetermined error code detection algorithm to obtain a plurality of check values, wherein the detection reference value comprises the plurality of check values.
10. The data transmission method according to claim 9, wherein the step of grouping the 64 bits of the target code block except for the synchronization header comprises any one of the following steps:
taking each byte as a check group;
using the bits at the same position in a plurality of bytes as a check group;
the plurality of check groups comprise a first check group and a second check group, a first control byte is used as one check group, and the alignment bits in a plurality of C fields defined by the following 56 bits according to the 802.3 standard are used as a plurality of second check groups.
11. The data transmission method according to any one of claims 2 to 7, wherein the code blocks in the intermediate code stream are 66-bit-length code blocks, and the calculating the code blocks in the intermediate code stream by using a predetermined error detection algorithm comprises:
grouping 64 bits of the target code block except for a synchronization header to obtain a plurality of check groups;
allocating two bits in the synchronization header to one or both of a plurality of parity groups;
and respectively calculating the check group of the data in the unassigned synchronous head and the check group of the data in the assigned synchronous head by using the preset error code detection algorithm to obtain a plurality of check values, wherein the detection reference value comprises the plurality of check values.
12. An error detection method, comprising:
receiving a detection reference value and an intermediate code stream, wherein the detection reference value and the intermediate code stream are sent by the data transmission method of any one of claims 1 to 11;
calculating the received intermediate code stream by using the preset error code detection algorithm to obtain a comparison value;
and comparing the comparison value with the detection reference value to determine the error condition.
13. A client service acquisition method comprises the following steps:
receiving a detection reference value and an intermediate code stream, wherein the detection reference value and the intermediate code stream are sent by the data transmission method of any one of claims 1 to 11;
calculating the received intermediate code stream by using the preset error code detection algorithm to obtain a comparison value;
comparing the comparison value with the detection reference value to determine an error condition;
and restoring the substitute code blocks in the intermediate code stream into corresponding target code blocks to obtain the customer service code stream.
14. A data transmission device comprising:
the replacing module is used for replacing a target code block in the client service code stream by using a replacing code block to obtain an intermediate code stream;
the detection reference value calculation module is used for calculating code blocks in the intermediate code stream by using a preset error code detection algorithm so as to obtain a detection reference value of the intermediate code stream; and
a sending module, configured to send the detection reference value and the intermediate code stream, where,
the target code block satisfies the following conditions: the calculation result obtained by calculating the client service code stream by using the preset error code detection algorithm is inconsistent with the calculation result obtained by calculating the client service code stream added or deleted by using the preset error code detection algorithm, and the replacement code block meets the following conditions: and the calculation result obtained by calculating the intermediate code stream by using the preset error code detection algorithm is consistent with the calculation result obtained by calculating the intermediate code stream added or deleted with the substitute code block by using the preset error code detection algorithm.
15. An error detection device, comprising:
a receiving module, configured to receive a detection reference value and an intermediate code stream, where the detection reference value and the intermediate code stream are sent by the data transmission device according to claim 14;
the comparison value calculation module is used for calculating the received intermediate code stream by using the preset error code detection algorithm to obtain a comparison value; and
and the error code condition determining module is used for comparing the comparison value with the detection reference value to determine the error code condition.
16. A client service acquisition device comprising:
the error detection device of claim 15; and
and the restoring module is used for restoring the substitute code blocks in the intermediate code stream into corresponding target code blocks so as to obtain the customer service code stream.
17. A first network device, comprising:
a first storage module having a first executable program stored thereon;
one or more first processors capable of invoking the first executable program to cause the one or more first processors to implement a data transfer method according to any one of claims 1 to 11;
and the one or more I/O first interfaces are connected between the first processor and the first storage module and are configured to realize information interaction between the first processor and the first storage module.
18. An error detection device, comprising:
a second storage module having a second executable program stored thereon;
one or more second processors capable of invoking the second executable program to cause the one or more second processors to implement the error detection method of claim 12;
and the one or more I/O second interfaces are connected between the second processor and the second storage module and are configured to realize information interaction between the second processor and the second storage module.
19. A second network device, comprising:
a third storage module having a third executable program stored thereon;
one or more third processors capable of invoking the third executable program to cause the one or more third processors to implement the customer service acquisition method of claim 16;
and the one or more I/O third interfaces are connected between the third processor and the third storage module and are configured to realize information interaction between the third processor and the third storage module.
20. A computer readable storage medium having stored thereon an executable program which, when invoked, implements any of the following methods:
the data transmission method of any one of claims 1 to 11;
the error detection method of claim 11;
the client service acquisition method of claim 12.
21. A network system, the network system comprising:
at least one first network device of claim 17; and
the second network device of at least one claim 19.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010627644.9A CN112511266A (en) | 2020-07-01 | 2020-07-01 | Transmission method, detection method and device, acquisition method, network equipment and system |
PCT/CN2021/076755 WO2022001124A1 (en) | 2020-07-01 | 2021-02-18 | Transmission method, detection method and apparatus, acquisition method, network device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010627644.9A CN112511266A (en) | 2020-07-01 | 2020-07-01 | Transmission method, detection method and device, acquisition method, network equipment and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112511266A true CN112511266A (en) | 2021-03-16 |
Family
ID=74953503
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010627644.9A Withdrawn CN112511266A (en) | 2020-07-01 | 2020-07-01 | Transmission method, detection method and device, acquisition method, network equipment and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112511266A (en) |
WO (1) | WO2022001124A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114979311A (en) * | 2022-05-24 | 2022-08-30 | 苏州盛科通信股份有限公司 | Ethernet message control code block detection method, device, server and storage medium |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118041487A (en) * | 2022-11-07 | 2024-05-14 | 中兴通讯股份有限公司 | 64B/66b encoded signal processing method, communication device, and storage medium |
CN117353873B (en) * | 2023-12-04 | 2024-02-13 | 科谱半导体(天津)有限公司 | Uplink frame verification method and device, electronic equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130179759A1 (en) * | 2012-01-11 | 2013-07-11 | International Business Machines Corporation | Incremental modification of an error detection code background of the invention |
CN109257194A (en) * | 2017-07-12 | 2019-01-22 | 中兴通讯股份有限公司 | Handle method, apparatus, equipment and the system of the OAM Information of bearer path |
CN109347598A (en) * | 2017-09-21 | 2019-02-15 | 中国移动通信有限公司研究院 | Check code processing method, electronic equipment and storage connect medium |
CN109347648A (en) * | 2017-09-21 | 2019-02-15 | 中国移动通信有限公司研究院 | OAM message transmission method, transmission device and storage medium |
CN109428674A (en) * | 2017-08-30 | 2019-03-05 | 深圳市中兴微电子技术有限公司 | Data transmission method, device and system, transmitting terminal, receiving end and storage medium |
CN109831251A (en) * | 2018-12-29 | 2019-05-31 | 武汉光谷互连科技有限公司 | Bit error rate acquisition methods and equipment based on dynamic resource allocation algorithm |
CN109981382A (en) * | 2017-12-27 | 2019-07-05 | 华为技术有限公司 | A kind of method and device detecting error code |
CN111147181A (en) * | 2018-11-02 | 2020-05-12 | 中兴通讯股份有限公司 | Service sending method, service receiving method, device and system and storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107888344B (en) * | 2016-09-29 | 2021-03-16 | 中兴通讯股份有限公司 | Method, equipment and system for detecting error code |
CN107888345B (en) * | 2016-09-29 | 2022-02-18 | 中兴通讯股份有限公司 | Information transmission method and equipment |
-
2020
- 2020-07-01 CN CN202010627644.9A patent/CN112511266A/en not_active Withdrawn
-
2021
- 2021-02-18 WO PCT/CN2021/076755 patent/WO2022001124A1/en active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130179759A1 (en) * | 2012-01-11 | 2013-07-11 | International Business Machines Corporation | Incremental modification of an error detection code background of the invention |
CN109257194A (en) * | 2017-07-12 | 2019-01-22 | 中兴通讯股份有限公司 | Handle method, apparatus, equipment and the system of the OAM Information of bearer path |
CN109428674A (en) * | 2017-08-30 | 2019-03-05 | 深圳市中兴微电子技术有限公司 | Data transmission method, device and system, transmitting terminal, receiving end and storage medium |
CN109347598A (en) * | 2017-09-21 | 2019-02-15 | 中国移动通信有限公司研究院 | Check code processing method, electronic equipment and storage connect medium |
CN109347648A (en) * | 2017-09-21 | 2019-02-15 | 中国移动通信有限公司研究院 | OAM message transmission method, transmission device and storage medium |
CN109981382A (en) * | 2017-12-27 | 2019-07-05 | 华为技术有限公司 | A kind of method and device detecting error code |
CN111147181A (en) * | 2018-11-02 | 2020-05-12 | 中兴通讯股份有限公司 | Service sending method, service receiving method, device and system and storage medium |
CN109831251A (en) * | 2018-12-29 | 2019-05-31 | 武汉光谷互连科技有限公司 | Bit error rate acquisition methods and equipment based on dynamic resource allocation algorithm |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114979311A (en) * | 2022-05-24 | 2022-08-30 | 苏州盛科通信股份有限公司 | Ethernet message control code block detection method, device, server and storage medium |
CN114979311B (en) * | 2022-05-24 | 2024-09-06 | 苏州盛科通信股份有限公司 | Ethernet message control code block checking method, device, server and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2022001124A1 (en) | 2022-01-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112511266A (en) | Transmission method, detection method and device, acquisition method, network equipment and system | |
US7143161B2 (en) | Tandem connection monitoring parallel processing | |
US10992315B2 (en) | Bit block stream bit error detection method and device | |
US11539607B2 (en) | Detection block sending and receiving method, and network device and system | |
CN113875207A (en) | Method for providing path signaling overhead in 64B/66B character streams of ITU-T metropolitan area transport networks | |
KR102382432B1 (en) | Method and apparatus for detecting bit errors | |
EP2692080B1 (en) | Error handling in a passive optical network | |
CN111147181B (en) | Service sending method, service receiving method, device, system and storage medium | |
WO2021254508A1 (en) | Method and apparatus for determining code block loss | |
CN112511330A (en) | Alarm method, device, network equipment and storage medium | |
US20240297849A1 (en) | Service processing method and service processing device | |
WO2019015462A1 (en) | Method for sending detection block and method for receiving detection block, and network device and system | |
WO2021121352A1 (en) | Data transmission method and apparatus | |
US20230403098A1 (en) | Data encoding method, data decoding method, and related device | |
CN118677568A (en) | Codeword synchronization method, receiver, network equipment and network system | |
US6993700B1 (en) | System and method for generating forward error correction based alarms | |
CN112511328A (en) | Method for transmitting and processing information, Ethernet device, computer readable medium | |
US7072361B1 (en) | System and method for the transport of backwards information between simplex devices | |
CN113938246A (en) | Service flow error code indication method and communication device | |
JP6260788B2 (en) | Error correction code control method and apparatus in data communication system | |
WO2024002084A1 (en) | Method for verifying data frame, and related device | |
WO2018214743A1 (en) | Code error detection method and device for bit block stream | |
WO2013145650A1 (en) | Method and apparatus for controlling communication band in data communication system | |
CN117728920A (en) | Data transmission method, data reception method, device, medium, and program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20210316 |
|
WW01 | Invention patent application withdrawn after publication |