Communications method, system, and apparatus for optical network system
First Claim
1. A communications method for an optical network system, wherein the communications method comprises:
- receiving, via a processor, a data stream from a physical medium attachment layer at a line rate, wherein the received data stream has been 8-bit/10-bit encoded;
performing via the processor, 8-bit/10-bit decoding on the received data stream to obtain a first data stream;
receiving the first data stream according to each data block comprising eight bits to obtain four data blocks, wherein any one of the data blocks is a first control character block or a data character block, and any first control character block or any data character block is an 8-bit binary code;
determining whether a first control character block exists among the four data blocks;
performing via the processor, 32-bit to 34-bit encoding on the first data stream to obtain a second data stream the encoding comprises (a) adding a first synchronization head to a header of a first data block among the four data blocks if no first control character block exists among the four data blocks, and (b) outputting the data blocks to which the first synchronization head is added, wherein the first data block is an 8-bit binary code input first, the first synchronization head comprises a 2-bit first identifier and the first identifier is used to identify that the data blocks are all data character blocks;
performing, via the processor, forward error correction encoding on the second data stream to obtain a third data stream;
performing, via the processor, bit width conversion of 34-bit/10-bit on the third data stream to obtain a fourth data stream; and
sending, via the processor, the fourth data stream to a physical medium dependent layer at the line rate.
1 Assignment
0 Petitions
Accused Products
Abstract
The present disclosure provides a method, a system, and an apparatus for data communication in an optical network system. A new encoding scheme is implemented in the following manner: performing 32-bit to 34-bit encoding on a data stream on which 8-bit/10-bit decoding has been performed, performing forward error correction encoding on the data stream on which the 32-bit to 34-bit encoding has been performed, and sending the encoded data stream; or performing forward error correction decoding on a received data stream, and performing 32-bit to 34-bit decoding on the data stream on which the forward error correction decoding has been performed. In this way, a bandwidth resource of a line is saved; line monitoring can be implemented without interrupting a service, which is easy to implement and greatly improves various types of performance of the system.
9 Citations
10 Claims
-
1. A communications method for an optical network system, wherein the communications method comprises:
-
receiving, via a processor, a data stream from a physical medium attachment layer at a line rate, wherein the received data stream has been 8-bit/10-bit encoded; performing via the processor, 8-bit/10-bit decoding on the received data stream to obtain a first data stream; receiving the first data stream according to each data block comprising eight bits to obtain four data blocks, wherein any one of the data blocks is a first control character block or a data character block, and any first control character block or any data character block is an 8-bit binary code; determining whether a first control character block exists among the four data blocks; performing via the processor, 32-bit to 34-bit encoding on the first data stream to obtain a second data stream the encoding comprises (a) adding a first synchronization head to a header of a first data block among the four data blocks if no first control character block exists among the four data blocks, and (b) outputting the data blocks to which the first synchronization head is added, wherein the first data block is an 8-bit binary code input first, the first synchronization head comprises a 2-bit first identifier and the first identifier is used to identify that the data blocks are all data character blocks; performing, via the processor, forward error correction encoding on the second data stream to obtain a third data stream; performing, via the processor, bit width conversion of 34-bit/10-bit on the third data stream to obtain a fourth data stream; and sending, via the processor, the fourth data stream to a physical medium dependent layer at the line rate. - View Dependent Claims (2, 3)
-
-
4. A communications method for an optical network system comprising:
-
receiving, via a processor, a data stream from a physical medium dependent layer at a line rate, wherein the received data stream has been 32-bit to 34-bit encoded; performing, via the processor, bit width conversion of 10-bit/34-bit on the received data stream to obtain a first data stream; performing, via the processor, forward error correction decoding on the first data stream to obtain a second data stream; parsing the second data stream and outputting 51 data blocks, wherein any one of the data blocks is a second control character block or a data character block, any second control character block is a 4-bit binary code, and any data character block is an 8-bit binary code; parsing any one of the data blocks, and obtaining a synchronization head of the data blocks, wherein the synchronization head comprises first or second synchronization heads, the first synchronization head comprising a 2-bit first identifier for identifying the data block is a data character block, the second synchronization head comprising a 2-bit second identifier for identifying that at least one second control character block exists among the data blocks; and determining whether the synchronization head of the any one of the data blocks is a first or second synchronization head; performing via the processor 32-bit to 34-bit decoding on the second data stream to obtain a third data stream comprising (a) deleting the first synchronization head if the synchronization head is a first synchronization head and (b) outputting the data blocks from which the first synchronization head is deleted; performing via the processor, 8-bit/10-bit encoding on the third data stream to obtain a fourth data stream; and sending, via the processor, the fourth data stream to a physical medium attachment layer. - View Dependent Claims (5, 6)
-
-
7. An optical network device, comprising first input and output devices, a memory and a processor:
-
the first input device configured to receive a data stream on which 8-bit/10-bit encoding has been performed from a physical medium attachment layer at a line rate, where the data stream includes information provided by a user; the memory configured to store program code executable by the processor; the processor coupled with the first input and output devices, and the memory, and, when executing the program code stored in the memory, is configured to; perform serial-to-parallel conversion on the received data stream; perform 8-bit/10-bit decoding on the received data stream; form four data blocks according to each data block comprises an eight bits, wherein any one of the data blocks is a first control character block or a data character block, and any first control character block or any data character block is an 8-bit binary code; and determine whether a first control character block exists among the four data blocks; if no first control character block exists among the four data blocks, add a first synchronization head to a header of a first data block among the four data blocks, wherein the first data block is an 8-bit binary code input first, the first synchronization head comprises a 2-bit first identifier, and the first identifier is used to identify that the data blocks are all data character block; perform 32-bit to 34-bit encoding on the received data stream; perform forward error correction encoding on the received data stream; and perform bit width conversion of 34-bit/10-bit on the received data stream; and the first output device configured to send the received data stream on which the bit width conversion has been performed to the user by way of a physical medium dependent layer at the line rate. - View Dependent Claims (8, 9)
-
-
10. An optical network device comprising input and output devices, a memory and a processor:
-
the input device configured to receive a data stream from a physical medium dependent layer at a line rate, wherein the received data stream has been 32-bit to 34-bit encoded; the memory configured to store program code for execution by the processor; the processor coupled with the input and output devices and the first memory so as to be configured when executing the program code to; perform bit width conversion of 10-bit/34-bit on the received data stream to obtain a first data stream to obtain a first data stream; perform forward error correction decoding on the first data stream to obtain a second data stream; parse the second data stream and output 51 data blocks, wherein any one of the data blocks is a second control character block or a data character block, any second control character block is a 4-bit binary code, and any data character block is an 8-bit binary code; parse any one of the data blocks, and obtain a synchronization head of the any one of the data blocks, wherein the synchronization head comprises;
a first synchronization head or a second synchronization head, the first synchronization head comprises a 2-bit first identifier, the first identifier is used to identify that the data blocks are all data character blocks, the second synchronization head comprises a 2-bit second identifier, and the second identifier is used to identify that at least one second control character block exists among the data blocks; anddetermine whether the synchronization head of the any one of the data blocks is a first synchronization head or a second synchronization head; if the synchronization head is a first synchronization head, delete the first synchronization head, and output the data blocks from which the first synchronization head is deleted; perform 32-bit to 34-bit decoding on the second data stream to obtain a third data stream; perform 8-bit/10-bit encoding on the third data stream to obtain a fourth data stream; and send the fourth data stream to a physical medium attachment layer.
-
Specification