# US 12,009,918 B2 · Data processing method and device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 12,009,918 B2
- Document ID: US12009918B2
- Status: Granted
- Kind: B2
- Application number: 17/940,209
- Filed: 2022-09-08
- Published: 2023-01-05
- Granted: 2024-06-11
- Earliest claimed: 2020-03-09
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Xuming Wu; Shiwei Nie; Xu Wang
- Web page: https://patentgrep.com/patent/US12009918B2

## CPC

- H04L 1/0045: {Arrangements at the receiver end}
- H04L 1/0047: {Decoding adapted to other signal detection operation (in conjunction with sequence estimation or equalization H04L25/03286)}
- H04J 3/1694: {Allocation of channels in TDM/TDMA networks, e.g. distributed multiplexers (Passive Optical Networks H04Q11/0062)}
- H04L 7/0075: {with photonic or optical means}
- H04Q 11/0067: {Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring}
- H04Q 2011/0064: {Arbitration, scheduling or medium access control aspects}
- H04Q 2011/0083: {Testing; Monitoring}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04J: MULTIPLEX COMMUNICATION (transmission in general H04B; peculiar to transmission of digital information H04L5/00; systems for the simultaneous or sequential transmission of more than one television signal H04N7/08; in exchanges H04Q11/00; stereophonic systems H04S)
- H04Q: SELECTING (switches, relays, selectors H01H; wireless communication networks H04W)

## Abstract

A data processing method and a device, the method including determining, by an optical network unit, in a received data stream, after the optical network unit enters a pre-synchronization state, a position of a forward error correction (FEC) codeword boundary in the data stream based on a position of a physical synchronization sequence (Psync) field, performing an FEC codeword decoding check, where the Psync field is a field that matches a preset Psync, in the data stream, and entering, by the optical network unit, a synchronization state in response to an FEC codeword among N consecutive FEC codewords in the data stream passing the decoding check, where N is an integer greater than or equal to 1.

## Claims

### Claim 1

A data processing method, comprising:
entering, by an optical network unit, a pre-synchronization state in response to detecting, by the optical network unit, a physical synchronization sequence (Psync) field and a valid superframe counter (SFC) structure in a received data stream;
determining, by the optical network unit, in the received data stream, a position of a forward error correction (FEC) codeword boundary in the data stream based on a position of the Psync field;
performing an FEC codeword decoding check, wherein the Psync field is a field that matches a preset Psync, in the data stream; and
entering, by the optical network unit, a synchronization state in response to an FEC codeword in the data stream passing the decoding check.

### Claim 2 (depends on 1)

The data processing method according to claim 1, further comprising:
searching, by the optical network unit, the received data stream for the field that matches the preset Psync;
verifying, by the optical network unit, in response to the optical network unit finding, in the data stream, the Psync field that matches the preset Psync, whether a first field having a preset quantity of bits and located after the Psync field constitutes a valid superframe counter (SFC) structure; and
entering, by the optical network unit, the pre-synchronization state in response to the first field constituting the valid SFC structure.

### Claim 3 (depends on 2)

The data processing method according to claim 2, further comprising performing, after the optical network unit enters the pre-synchronization state and before the optical network unit enters the synchronization state:
determining, by the optical network unit based on a position of the first field, an SFC field located after the first field in the data stream; and
verifying, by the optical network unit, the SFC field, wherein a verification result of the SFC field is that SFC verification succeeds.

### Claim 4 (depends on 1)

The data processing method according to claim 1, further comprising:
returning, by the optical network unit, after the optical network unit enters the pre-synchronization state again, in response to no FEC codeword among N consecutive FEC codewords in a received data stream passing the decoding check, to a search state from the pre-synchronization state, wherein N is an integer greater than or equal to 1.

### Claim 5 (depends on 1)

The data processing method according to claim 1, further comprising performing at least one of:
transitioning, by the optical network unit, in response to M consecutive FEC codewords in the data stream not passing the decoding check, from the synchronization state to a re-synchronization state after the optical network unit enters the synchronization state; or
remaining, by the optical network unit, in response to an FEC codeword among M consecutive FEC codewords in the data stream passing the decoding check, in the synchronization state;
wherein M is an integer greater than or equal to 1.

### Claim 6 (depends on 5)

The data processing method according to claim 5, further comprising:
transitioning, by the optical network unit, after the optical network unit enters the re-synchronization state, and in response to an FEC codeword among S consecutive FEC codewords in the data stream passing the decoding check, from the re-synchronization state to the synchronization state, wherein S is an integer greater than or equal to 1.

### Claim 7 (depends on 5)

The data processing method according to claim 5, further comprising:
transitioning, by the optical network unit, after the optical network unit enters the re-synchronization state, and in response to no FEC codeword among the S consecutive FEC codewords in the data stream passing the decoding check, from the re-synchronization state to a search state.

### Claim 8 (depends on 1)

The data processing method according to claim 1, further comprising:
decoding, by the optical network unit, an FEC codeword in the data stream to obtain a decoded codeword payload;
obtaining, by the optical network unit, a decoded Psync based on the decoded codeword payload, wherein the decoded Psync is located in the decoded codeword payload;
verifying, by the optical network unit, in response to the decoded Psync matching the preset Psync, whether a second field having a preset quantity of bits and located after the decoded Psync constitutes a valid SFC structure; and
performing, by the optical network unit, in response to the second field constituting the valid SFC structure, at least one of entering the synchronization state from the pre-synchronization state, or remaining in the synchronization state.

### Claim 9 (depends on 8)

The data processing method according to claim 8, further comprising performing at least one of:
transitioning, by the optical network unit, after the optical network unit enters the synchronization state, and in response to the decoded Psync not matching the preset Psync or SFC verification fails, from the synchronization state to a re-synchronization state; or
remaining, by the optical network unit, in response to the decoded Psync matching the preset Psync and SFC verification succeeding, in the synchronization state.

### Claim 10 (depends on 9)

The data processing method according to claim 9, further comprising:
transitioning, by the optical network unit, in response to the decoded Psync matching the preset Psync and SFC verification succeeding, from the re-synchronization state to the synchronization state after the optical network unit enters the re-synchronization state for P consecutive data frames in the data stream, wherein P is an integer greater than 1.

### Claim 11

An optical network unit, comprising:
a processor; and
a non-transitory computer readable medium storing a computer program for execution by the processor, the computer program including instructions to:
enter a pre-synchronization state in response to detecting a physical synchronization sequence (Psync) field and a valid superframe counter (SFC) structure in a received data stream;
determine, in the data stream, a position of a forward error correction (FEC) codeword boundary in the data stream based on a position of the Psync field;
perform an FEC codeword decoding check, wherein the Psync field is a field that matches a preset Psync, in the data stream; and
enter a synchronization state in response to an FEC codeword in the data stream passing the decoding check.

### Claim 12 (depends on 11)

The optical network unit according to claim 11, wherein the computer program further includes instructions to:
search the data stream for the field that matches the preset Psync;
verify, in response to finding, in the data stream, the Psync field matching the preset Psync, whether a first field having a preset quantity of bits and located after the Psync field constitutes a valid SFC structure; and
enter the pre-synchronization state in response to the first field constituting the valid SFC structure.

### Claim 13 (depends on 12)

The optical network unit according to claim 12, wherein the computer program further includes instructions to:
determine, based on a position of the first field, an SFC field located after the first field in the data stream; and
verify the SFC field, wherein a verification result of the SFC field is that the SFC field constitutes the valid SFC structure.

### Claim 14 (depends on 11)

The optical network unit according to claim 11, wherein the computer program further includes instructions to:
return to a search state from the pre-synchronization state in response to no FEC codeword among N consecutive FEC codewords in the data stream passing the decoding check, wherein N is an integer greater than or equal to 1.

### Claim 15 (depends on 11)

The optical network unit according to claim 11, wherein the computer program further includes instructions to perform at least one of:
transition, in response to M consecutive FEC codewords in the data stream not passing the decoding check, from the synchronization state to a re-synchronization state after entering the synchronization state; or
remain in the synchronization state in response to an FEC codeword among M consecutive FEC codewords in the data stream passing the decoding check;
wherein M is an integer greater than or equal to 1.

### Claim 16 (depends on 15)

The optical network unit according to claim 15, wherein the computer program further includes instructions to:
transition, in response to an FEC codeword among S consecutive FEC codewords in the data stream passing the decoding check, from the re-synchronization state to the synchronization state after entering the re-synchronization state, wherein S is an integer greater than or equal to 1.

### Claim 17 (depends on 16)

The optical network unit according to claim 16, wherein the computer program further includes instructions to:
transition, in response to no FEC codeword among the S consecutive FEC codewords in the data stream passing the decoding check, from the re-synchronization state to a search state after entering the re-synchronization state.

### Claim 18 (depends on 11)

The optical network unit according to claim 11, wherein the computer program further includes instructions to:
decode an FEC codeword in the data stream to obtain a decoded codeword payload;
obtain a decoded Psync based on the decoded codeword payload, wherein the decoded Psync is located in the decoded codeword payload;
verify, in response to the decoded Psync matching the preset Psync, whether a second field having a preset quantity of bits and located after the decoded Psync constitutes a valid SFC structure; and
perform at least one of enter the synchronization state from the pre-synchronization state in response to the second field constituting the valid SFC structure, or remain in the synchronization state.

### Claim 19 (depends on 18)

The optical network unit according to claim 18, wherein the computer program further includes instructions to:
transition, in response to at least one of the decoded Psync does not matching the preset Psync or SFC verification failing, from the synchronization state to a re-synchronization state after entering the synchronization state; or
remain in the synchronization state in response to the decoded Psync matching the preset Psync and SFC verification succeeding.

### Claim 20

An optical network system, comprising:
an optical line terminal;
an optical distribution network; and
an optical network unit, comprising:
a processor; and
a non-transitory computer readable medium storing a computer program for execution by the processor, the computer program including instructions to:
entering a pre-synchronization state in response to detecting a physical synchronization sequence (Psync) field and a valid superframe counter (SFC) structure in a received data stream;
determine, in the data stream, a position of a forward error correction (FEC) codeword boundary in the data stream based on a position of the Psync field;
perform an FEC codeword decoding check, wherein the Psync field is a field that matches a preset Psync, in the data stream; and
enter a synchronization state in response to an FEC codeword in the data stream passing the decoding check.
