64B/66B code stream sending method, 64B/66B code stream receiving method and equipment

文档序号:1941293 发布日期:2021-12-07 浏览:7次 中文

阅读说明:本技术 64b/66b码流发送方法、64b/66b码流接收方法及设备 (64B/66B code stream sending method, 64B/66B code stream receiving method and equipment ) 是由 李晗 程伟强 韩柳燕 于 2020-06-05 设计创作,主要内容包括:本发明实施例提供一种64B/66B码流发送方法、64B/66B码流接收方法及设备,该方法包括:确定插入周期,所述插入周期表示在64B/66B码流中的以太网数据包之间插入OAM码块的周期;根据所述插入周期,在所述64B/66B码流中插入一个或多个OAM码块;向接收端发送携带所述OAM码块的64B/66B码流。在本发明实施例中,可以实现将OAM码块插入到MTN的Path层信号,可以基于64/66B的码流进行OAM保障。(The embodiment of the invention provides a 64B/66B code stream sending method, a 64B/66B code stream receiving method and equipment, wherein the method comprises the following steps: determining an insertion period, wherein the insertion period represents a period for inserting OAM code blocks among Ethernet data packets in a 64B/66B code stream; inserting one or more OAM code blocks into the 64B/66B code stream according to the insertion period; and sending the 64B/66B code stream carrying the OAM code block to a receiving end. In the embodiment of the invention, the OAM code block can be inserted into a Path layer signal of the MTN, and OAM guarantee can be carried out based on 64/66B code stream.)

1. A64B/66B code stream sending method is applied to a sending end and is characterized by comprising the following steps:

determining an insertion period, wherein the insertion period represents a period for inserting OAM code blocks among Ethernet data packets in a 64B/66B code stream;

inserting one or more OAM code blocks into the 64B/66B code stream according to the insertion period;

and sending the 64B/66B code stream carrying the OAM code block to a receiving end.

2. The method of claim 1, wherein the inserting one or more OAM code blocks into the 64B/66B code stream according to the insertion period comprises:

inserting one or more OAM code blocks into the 64B/66B code stream in a mode of replacing IDLE IDLE code blocks among Ethernet data packets by the OAM code blocks according to the insertion period;

alternatively, the first and second electrodes may be,

and according to the insertion period, directly inserting one or more OAM code blocks between Ethernet data packets in the 64B/66B code stream.

3. The method according to claim 1 or 2, wherein the insertion period is equal to one of:

the sum of the period T and the period offset DeltaT;

the difference between the period T and the period offset Δ T;

a period T;

the period T is equal to nxpreset number of code blocks, and N is an integer.

4. The method according to claim 3, wherein the preset number of code blocks is 16k or 32 k.

5. The method according to claim 3, wherein N is the number of Calendar slots used by the Path layer.

6. The method of claim 1, wherein the OAM type of the OAM code block comprises: a Basic code block and a non-Basic code block; wherein the content of the first and second substances,

the Basic code block is inserted at the insertion opportunity of each Basic code block;

the non-Basic code block repeats according to a period of M insertion opportunities, M being a positive integer.

7. The method of claim 6,

inserting code blocks of a first code block type in a first consecutive insertion opportunity of the M insertion opportunities;

inserting code blocks of a second code block type in a second consecutive insertion opportunity of the M insertion opportunities;

inserting code blocks of a third code block type in a third consecutive insertion opportunity of the M insertion opportunities;

a fourth consecutive insertion opportunity among the M insertion opportunities is a reserved location.

8. The method of claim 1, wherein a format of the OAM code block comprises one or more of the following combinations:

a code Block type Block type;

indication information for distinguishing whether it is a Basic code block or a non-Basic code block;

a preconfigured protocol ID; and the number of the first and second groups,

the data carried;

wherein the preconfigured PID and Block type are used to identify the OAM code Block.

9. The method of claim 8, wherein the indication information represents a Basic code block, and wherein the carried data comprises one or more of the following combinations:

remote error indication REI information;

remote Defect Indication (RDI) information;

bit interleaved parity checking (BIP) information;

automatic Protection Switching (APS) information.

10. The method of claim 9, wherein the APS information comprises:

APS data;

indicating a sequence number of a multiframe carrying the APS data.

11. The method of claim 8, wherein the indication information represents a non-Basic code block, and wherein the carried data comprises one or more of the following combinations:

the starting position of OAM information;

an end position of the OAM information; and the number of the first and second groups,

the Value, indicates the function of the OAM code block.

12. The method of claim 1, wherein a format of the OAM code block comprises one or more of the following combinations:

Block type;

an OAM type for indicating information of an OAM code block;

value, which indicates the function of the OAM code block;

identifying mode information; and the number of the first and second groups,

a Sequence number for indicating the Sequence number of each OAM code block in an OAM information block composed of a plurality of OAM code blocks;

wherein the identification mode information and Block type are used to identify the OAM code Block.

13. The method according to claim 12, wherein the identification means information includes: a preconfigured PID and a cyclic redundancy check CRC.

14. A64B/66B code stream receiving method is applied to a receiving end and is characterized by comprising the following steps:

receiving a 64B/66B code stream from a sending end, wherein the 64B/66B code stream carries one or more OAM code blocks inserted according to an insertion period, and the insertion period represents a period for inserting the OAM code blocks among Ethernet data packets in the 64B/66B code stream.

15. The method of claim 14, wherein the insertion period is equal to one of:

the sum of the period T and the period offset DeltaT;

the difference between the period T and the period offset Δ T;

a period T;

the period T is equal to nxpreset code block size, and N is an integer.

16. The method according to claim 15, wherein the preset number of code blocks is 16k or 32 k.

17. The method according to claim 15, wherein N is the number of Calendar slots used by Path layer.

18. The method of claim 14, wherein the OAM code block is inserted into the 64B/66B code stream in a manner that replaces IDLE code blocks between ethernet packets, or wherein the OAM code block is inserted into the 64B/66B code stream in a directly inserted manner.

19. The method of claim 14, wherein the OAM type for the OAM code block comprises: a Basic code block and a non-Basic code block; wherein the content of the first and second substances,

the Basic code block is inserted at the insertion opportunity of each Basic code block;

the non-Basic code block repeats according to a period of M insertion opportunities, M being a positive integer.

20. The method of claim 19,

inserting code blocks of a first code block type in a first consecutive insertion opportunity of the M insertion opportunities;

inserting code blocks of a second code block type in a second consecutive insertion opportunity of the M insertion opportunities;

inserting code blocks of a third code block type in a third consecutive insertion opportunity of the M insertion opportunities;

a fourth consecutive insertion opportunity among the M insertion opportunities is a reserved location.

21. The method of claim 14, wherein a format of the OAM code block comprises one or more of the following combinations:

Block type;

indication information for distinguishing whether it is a Basic code block or a non-Basic code block;

a preconfigured protocol ID; and the number of the first and second groups,

the data carried;

wherein the preconfigured PID and Block type are used to identify the OAM code Block.

22. The method of claim 21, further comprising:

and acquiring a corresponding OAM code Block from the 64B/66B code stream according to the preset PID and the Block type.

23. The method of claim 21, wherein the indication information represents a Basic code block, and wherein the carried data comprises one or more of the following combinations:

REI information;

RDI information;

BIP information;

APS information.

24. The method of claim 23, wherein the APS information comprises:

APS data;

indicating a sequence number of the multiframe carrying the APS data.

25. The method of claim 23, further comprising:

determining code blocks inserted between Ethernet data packets in the 64B/66B code stream or deleted code blocks before bit interleaving parity check;

and carrying out bit-interleaved parity check according to other code blocks except the inserted code block or the deleted code block in the 64B/66B code stream.

26. The method of claim 21, wherein the indication information represents a non-Basic code block, and wherein the carried data comprises one or more of the following combinations:

the starting position of OAM information;

an end position of the OAM information; and the number of the first and second groups,

value, which indicates the function of the OAM code block.

27. The method of claim 26, further comprising:

obtaining a plurality of OAM code blocks according to the initial position of the OAM information and the end position of the OAM information;

and obtaining the OAM information according to the plurality of OAM code blocks.

28. The method of claim 14, wherein a format of the OAM code block comprises one or more of the following combinations:

Block type;

an OAM type for indicating information of an OAM code block;

value, which indicates the function of the OAM code block;

identifying mode information; and the number of the first and second groups,

sequence number for indicating the serial number of each OAM code block in the OAM information block composed of a plurality of OAM code blocks;

wherein the identification mode information and Block type are used to identify the OAM code Block.

29. The method of claim 28, further comprising:

acquiring a corresponding OAM code Block from the 64B/66B code stream according to the identification mode information and the Block type;

extracting and arranging a plurality of OAM code blocks according to the Sequence number if the OAM type represents a non-Basic code block;

and obtaining OAM information according to the plurality of OAM code blocks.

30. The method of claim 28, wherein the identification means information comprises: preconfigured PID and CRC.

31. A64B/66B code stream sending device is applied to a sending end and is characterized by comprising the following components:

the device comprises a determining module, a judging module and a sending module, wherein the determining module is used for determining an insertion period, and the insertion period represents a period for inserting OAM code blocks among Ethernet data packets in a 64B/66B code stream;

an inserting module, configured to insert one or more OAM code blocks into the 64B/66B code stream according to the inserting period;

and the sending module is used for sending the 64B/66B code stream carrying the OAM code block to a receiving end.

32. A transmitting end, comprising: a first transceiver and a first processor;

the first transceiver transmits and receives data under control of the first processor;

the first processor reads a program in a memory to perform the following operations: determining an insertion period, wherein the insertion period represents a period for inserting OAM code blocks among Ethernet data packets in a 64B/66B code stream; inserting one or more OAM code blocks into the 64B/66B code stream according to the insertion period; and sending the 64B/66B code stream carrying the OAM code block to a receiving end.

33. A64B/66B code stream receiving device is applied to a receiving end and is characterized by comprising the following components:

the receiving module is used for receiving a 64B/66B code stream from a sending end, wherein the 64B/66B code stream carries one or more OAM code blocks inserted according to an insertion period, and the insertion period represents a period for inserting the OAM code blocks between Ethernet data packets in the 64B/66B code stream.

34. A receiving end, comprising: a second transceiver and a second processor;

the second transceiver transmits and receives data under the control of the second processor;

the second processor reads a program in the memory to perform the following operations: receiving a 64B/66B code stream from a sending end, wherein the 64B/66B code stream carries one or more OAM code blocks inserted according to an insertion period, and the insertion period represents a period for inserting the OAM code blocks among Ethernet data packets in the 64B/66B code stream.

35. A communication device, comprising: a processor, a memory and a program stored on the memory and executable on the processor, which program, when executed by the processor, performs steps comprising a method as claimed in any one of claims 1 to 30.

36. A readable storage medium, characterized in that it has stored thereon a program which, when being executed by a processor, carries out steps comprising the method according to any one of claims 1 to 30.

Technical Field

The embodiment of the invention relates to an Ethernet (Ethernet) technology, in particular to a 64B/66B code stream sending method, a 64B/66B code stream receiving method and equipment.

Background

MTN (metro Transport network) is a new generation transmission technology, an Operation and Maintenance Administration (OAM) of an MTN Path (Path) layer requires that OAM information is inserted/extracted as required when multiplexing/demultiplexing the Path layer, a client layer service is not aware, enabling/disabling of an OAM function of the MTN Path layer is supported (enabling/disabling may be provided for each OAM), and an OAM insertion/extraction Operation is not performed under the condition of disabling.

How to insert and propose the OAM code block has no corresponding technical scheme at present.

Disclosure of Invention

An object of the embodiments of the present invention is to provide a 64B/66B code stream transmitting method, a 64B/66B code stream receiving method, and a device, so as to solve a problem how to insert and extract an OAM code block.

In a first aspect, an embodiment of the present invention provides a 64B/66B code stream sending method, applied to a sending end, including:

determining an insertion period, wherein the insertion period represents a period for inserting OAM code blocks among Ethernet data packets in a 64B/66B code stream;

inserting one or more OAM code blocks into the 64B/66B code stream according to the insertion period;

and sending the 64B/66B code stream carrying the OAM code block to a receiving end.

Optionally, the inserting one or more OAM code blocks into the 64B/66B code stream according to the insertion period includes:

inserting one or more OAM code blocks into the 64B/66B code stream in a mode of replacing IDLE IDLE code blocks among Ethernet data packets by the OAM code blocks according to the insertion period;

alternatively, the first and second electrodes may be,

and according to the insertion period, directly inserting one or more OAM code blocks between Ethernet data packets in the 64B/66B code stream.

Optionally, the insertion period is equal to one of:

the sum of the period T and the period offset DeltaT;

the difference between the period T and the period offset Δ T;

a period T;

the period T is equal to nxpreset number of code blocks, and N is an integer.

Optionally, the preset number of code blocks is 16k or 32 k.

Optionally, N is the number of calenar slots used by the Path layer.

Optionally, the OAM type of the OAM code block includes: a Basic code block and a non-Basic code block; wherein the Basic code block is inserted at an insertion opportunity of each of the Basic code blocks;

the non-Basic code block repeats according to a period of M insertion opportunities, M being a positive integer.

Optionally, code blocks of a first code block type are inserted in a first consecutive insertion opportunity of the M insertion opportunities;

inserting code blocks of a second code block type in a second consecutive insertion opportunity of the M insertion opportunities;

inserting code blocks of a third code block type in a third consecutive insertion opportunity of the M insertion opportunities;

a fourth consecutive insertion opportunity among the M insertion opportunities is a reserved location.

Optionally, the format of the OAM code block includes one or more of the following combinations:

a code Block type Block type;

indication information for distinguishing whether it is a Basic code block or a non-Basic code block;

a preconfigured protocol ID; and the number of the first and second groups,

the data carried;

wherein the preconfigured PID and Block type are used to identify the OAM code Block.

Optionally, the indication information represents a Basic code block, and the carried data includes one or more of the following combinations:

remote error indication REI information;

remote Defect Indication (RDI) information;

bit interleaved parity checking (BIP) information;

automatic Protection Switching (APS) information.

Optionally, the APS information includes:

APS data;

indicating a sequence number of a multiframe carrying the APS data.

Optionally, the indication information represents a non-Basic code block, and the carried data includes one or more of the following combinations:

the starting position of OAM information;

an end position of the OAM information; and the number of the first and second groups,

the Value, indicates the function of the OAM code block.

Optionally, the format of the OAM code block includes one or more of the following combinations:

Block type;

an OAM type for indicating information of an OAM code block;

value, which indicates the function of the OAM code block;

identifying mode information; and the number of the first and second groups,

a Sequence number for indicating the Sequence number of each OAM code block in an OAM information block composed of a plurality of OAM code blocks;

wherein the identification mode information and Block type are used to identify the OAM code Block.

Optionally, the identification manner information includes: a preconfigured PID and a cyclic redundancy check CRC.

In a second aspect, an embodiment of the present invention provides a 64B/66B code stream receiving method, applied to a receiving end, including:

receiving a 64B/66B code stream from a sending end, wherein the 64B/66B code stream carries one or more OAM code blocks inserted according to an insertion period, and the insertion period represents a period for inserting the OAM code blocks among Ethernet data packets in the 64B/66B code stream.

Optionally, the insertion period is equal to one of:

the sum of the period T and the period offset DeltaT;

the difference between the period T and the period offset Δ T;

a period T;

the period T is equal to nxpreset code block size, and N is an integer.

Optionally, the preset number of code blocks is 16k or 32 k.

Optionally, N is the number of calenar slots used by the Path layer.

Optionally, the OAM code block is inserted into the 64B/66B code stream in a manner of replacing an IDLE code block between ethernet packets, or the OAM code block is inserted into the 64B/66B code stream in a manner of direct insertion.

Optionally, the OAM type of the OAM code block includes: a Basic code block and a non-Basic code block; wherein the Basic code block is inserted at an insertion opportunity of each of the Basic code blocks;

the non-Basic code block repeats according to a period of M insertion opportunities, M being a positive integer.

Optionally, code blocks of a first code block type are inserted in a first consecutive insertion opportunity of the M insertion opportunities;

inserting code blocks of a second code block type in a second consecutive insertion opportunity of the M insertion opportunities;

inserting code blocks of a third code block type in a third consecutive insertion opportunity of the M insertion opportunities;

a fourth consecutive insertion opportunity among the M insertion opportunities is a reserved location.

Optionally, the format of the OAM code block includes one or more of the following combinations:

Block type;

indication information for distinguishing whether it is a Basic code block or a non-Basic code block;

a preconfigured protocol ID; and the number of the first and second groups,

the data carried;

wherein the preconfigured PID and Block type are used to identify the OAM code Block.

Optionally, the method further comprises:

and acquiring a corresponding OAM code Block from the 64B/66B code stream according to the preset PID and the Block type.

Optionally, the indication information represents a Basic code block, and the carried data includes one or more of the following combinations:

REI information;

RDI information;

BIP information;

APS information.

Optionally, the APS information includes:

APS data;

indicating a sequence number of the multiframe carrying the APS data.

Optionally, the method further comprises:

determining code blocks inserted between Ethernet data packets in the 64B/66B code stream or deleted code blocks before bit interleaving parity check;

and carrying out bit-interleaved parity check according to other code blocks except the inserted code block or the deleted code block in the 64B/66B code stream.

Optionally, the indication information represents a non-Basic code block, and the carried data includes one or more of the following combinations:

the starting position of OAM information;

an end position of the OAM information; and the number of the first and second groups,

value, which indicates the function of the OAM code block.

Optionally, the method further comprises:

obtaining a plurality of OAM code blocks according to the initial position of the OAM information and the end position of the OAM information;

and obtaining the OAM information according to the plurality of OAM code blocks.

Optionally, the format of the OAM code block includes one or more of the following combinations:

Block type;

an OAM type for indicating information of an OAM code block;

value, which indicates the function of the OAM code block;

identifying mode information; and the number of the first and second groups,

sequence number for indicating the serial number of each OAM code block in the OAM information block composed of a plurality of OAM code blocks;

wherein the identification mode information and Block type are used to identify the OAM code Block.

Optionally, the method further comprises:

acquiring a corresponding OAM code Block from the 64B/66B code stream according to the identification mode information and the Block type;

extracting and arranging a plurality of OAM code blocks according to the Sequence number if the OAM type represents a non-Basic code block;

and obtaining OAM information according to the plurality of OAM code blocks.

Optionally, the identification manner information includes: preconfigured PID and CRC.

In a third aspect, an embodiment of the present invention provides a 64B/66B code stream transmitting apparatus, applied to a transmitting end, including:

the device comprises a determining module, a judging module and a sending module, wherein the determining module is used for determining an insertion period, and the insertion period represents a period for inserting OAM code blocks among Ethernet data packets in a 64B/66B code stream;

an inserting module, configured to insert one or more OAM code blocks into the 64B/66B code stream according to the inserting period;

and the sending module is used for sending the 64B/66B code stream carrying the OAM code block to a receiving end.

In a fourth aspect, an embodiment of the present invention provides a sending end, including: a first transceiver and a first processor;

the first transceiver transmits and receives data under control of the first processor;

the first processor reads a program in a memory to perform the following operations: determining an insertion period, wherein the insertion period represents a period for inserting OAM code blocks among Ethernet data packets in a 64B/66B code stream; inserting one or more OAM code blocks into the 64B/66B code stream according to the insertion period; and sending the 64B/66B code stream carrying the OAM code block to a receiving end.

In a fifth aspect, an embodiment of the present invention provides a 64B/66B code stream receiving apparatus, which is applied to a receiving end, and includes:

the receiving module is used for receiving a 64B/66B code stream from a sending end, wherein the 64B/66B code stream carries one or more OAM code blocks inserted according to an insertion period, and the insertion period represents a period for inserting the OAM code blocks between Ethernet data packets in the 64B/66B code stream.

In a sixth aspect, an embodiment of the present invention provides a receiving end, including: a second transceiver and a second processor;

the second transceiver transmits and receives data under the control of the second processor;

the second processor reads a program in the memory to perform the following operations: receiving a 64B/66B code stream from a sending end, wherein the 64B/66B code stream carries one or more OAM code blocks inserted according to an insertion period, and the insertion period represents a period for inserting the OAM code blocks among Ethernet data packets in the 64B/66B code stream.

In a seventh aspect, an embodiment of the present invention provides a communication device, including: a processor, a memory and a program stored on the memory and executable on the processor, which program, when executed by the processor, performs steps comprising a method as described above.

In an eighth aspect, the embodiment of the present invention provides a readable storage medium, on which a program is stored, and the program, when executed by a processor, implements the steps of the method including the above.

In the embodiment of the invention, the OAM code block can be inserted into a Path layer signal of the MTN, and OAM guarantee can be carried out based on 64/66B code stream.

Drawings

Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:

FIG. 1 is a flowchart of a method for transmitting a 64B/66B code stream at a transmitting end side according to an embodiment of the present invention;

FIG. 2 is a schematic diagram of a communication system according to an embodiment of the present invention;

FIG. 3 is a schematic diagram of an insertion period in an embodiment of the present invention;

fig. 4 is a schematic diagram of a Basic code block and a non-Basic code block in an OAM code block inserted in an embodiment of the present invention;

fig. 5a and 5b are schematic diagrams illustrating a format of an OAM code block according to an embodiment of the present invention;

fig. 6 is a second schematic diagram illustrating a format of an OAM code block according to an embodiment of the present invention;

FIG. 7 is a diagram illustrating an APS frame format according to an embodiment of the present invention;

fig. 8 is a diagram illustrating framing of non-Basic code blocks according to an embodiment of the present invention;

FIG. 9 is a diagram illustrating 1DM information in an embodiment of the invention;

fig. 10 is a third schematic diagram illustrating a format of an OAM code block according to an embodiment of the present invention;

FIG. 11 is a diagram illustrating framing of Basic code blocks according to an embodiment of the present invention;

fig. 12 is a diagram illustrating framing of non-Basic code blocks according to an embodiment of the present invention;

FIG. 13 is a flowchart of a 64B/66B code stream receiving method on the receiving end side according to an embodiment of the present invention;

fig. 14 is a diagram illustrating reception of CV code blocks in an embodiment of the present invention;

fig. 15 is a schematic diagram of sending an OAM code block at an MTN channel layer in the embodiment of the present invention;

FIG. 16 is a diagram of a 64B/66B code stream transmitting device according to an embodiment of the present invention;

fig. 17 is a schematic diagram of a transmitting end according to an embodiment of the present invention;

FIG. 18 is a diagram of a 64B/66B code stream receiving apparatus according to an embodiment of the present invention;

FIG. 19 is a diagram of a receiving end according to an embodiment of the present invention;

fig. 20 is a schematic diagram of a communication device according to an embodiment of the present invention.

Detailed Description

The OAM information is packaged into a 64B/66B code block defined by the IEEE 802.3 standard by an MTN Path layer OAM mechanism, and the OAM Path layer adaptively inserts the OAM code block into the IPG of the Ethernet MAC Frame client signal according to the OAM information insertion requirement. OAM code blocks can be classified into the following types according to the information they carry:

(1) regular OAM code blocks, OAM code blocks that are transmitted and received in a quasi-periodic manner, which may be 16k, 32k, …, etc.;

(2) an OAM code block triggered by an event, wherein the OAM code block is sent and received by triggering the event;

(3) OAM code blocks as needed.

These different types of OAM messages are carried by a single OAM block or multiple OAM blocks.

At the forwarding end point (FwEP) of the MTN Path layer Path, the MTN Path layer client signals and OAM signals are mapped and adapted into MTN Path layer information, in the course of which OAM blocks are inserted between ethernet packets (IPG). In the receiver FwEP of the MTN path, the OAM block is extracted from the path information by the receiver.

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The terms "comprises," "comprising," or any other variation thereof, in the description and claims of this application, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Furthermore, the use of "and/or" in the specification and claims means that at least one of the connected objects, such as a and/or B, means that three cases, a alone, B alone, and both a and B, exist.

In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.

The technology described herein is not limited to a 5th-generation (5G) system and a later-evolution communication system, and is not limited to an LTE/LTE evolution (LTE-a) system, and may also be used for various wireless communication systems, such as Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Frequency Division Multiple Access (FDMA), Orthogonal Frequency Division Multiple Access (OFDMA), Single-carrier Frequency-Division Multiple Access (SC-FDMA), and other systems.

The terms "system" and "network" are often used interchangeably. CDMA systems may implement Radio technologies such as CDMA2000, Universal Terrestrial Radio Access (UTRA), and so on. UTRA includes Wideband CDMA (Wideband Code Division Multiple Access, WCDMA) and other CDMA variants. TDMA systems may implement radio technologies such as Global System for Mobile communications (GSM). The OFDMA system can implement radio technologies such as Ultra Mobile Broadband (UMB), evolved-UTRA (E-UTRA)), IEEE 802.11 (Wi-Fi), IEEE 802.16 (WiMAX)), IEEE 802.20, Flash-OFDM, and the like. UTRA and E-UTRA are parts of the Universal Mobile Telecommunications System (UMTS). LTE and higher LTE (e.g., LTE-A) are new UMTS releases that use E-UTRA. UTRA, E-UTRA, UMTS, LTE-A, and GSM are described in documents from an organization named "third Generation Partnership Project" (3 GPP). CDMA2000 and UMB are described in documents from an organization named "third generation partnership project 2" (3GPP 2). The techniques described herein may be used for both the above-mentioned systems and radio technologies, as well as for other systems and radio technologies.

Referring to fig. 1, an embodiment of the present invention provides a 64B/66B code stream sending method, where an execution main body of the method may be a sending end as shown in fig. 2, and the method includes the specific steps of: step 101, step 102 and step 103;

step 101: determining an insertion period, wherein the insertion period represents a period for inserting Operation Administration and Maintenance (OAM) code blocks between Ethernet data packets in a 64B/66B code stream;

the ethernet packets may also be referred to as ethernet frame gaps (IPGs), that is, OAM code blocks are inserted into ethernet frame gaps in a stream based on a 64B/66B code block format.

Step 102: inserting one or more OAM code blocks into the 64B/66B code stream according to the insertion period;

it is to be understood that the number of inserted OAM code blocks is not limited.

Step 103: and sending the 64B/66B code stream carrying the OAM code block to a receiving end.

In the embodiment of the present invention, it can be understood that the MTN path layer OAM employs a 66bit OAM code block. The SPN channel layer OAM includes a single code block mode and a multi-code block mode. The single code block mode adopts an independent code block to represent a complete OAM function, and the multi-code block mode adopts a plurality of code block combinations to represent a complete OAM function. And a multi-code block mode, wherein the multi-code block mode is transmitted by using TLV format. Because the OAM information that can be carried by one ethernet code block is limited, part of OAM functions needs to be split into multiple code blocks to be sent.

In some embodiments, the insertion period is equal to one of:

(1) the sum of the period T and the period offset DeltaT;

(2) the difference between the period T and the period offset Δ T;

(3) a period T;

the period T is equal to N × the preset number of code blocks, N is an integer, and optionally, N is the number of Calendar timeslots used by the Path layer.

Optionally, the preset number of code blocks is 16k or 32k, that is, the period T may be equal to N × 16k or N × 32k, but is not limited thereto.

In the embodiment of the present invention, step 102 may be implemented by: mode 1 or mode 2:

mode 1: according to the insertion period, one or more OAM code blocks are inserted into the 64B/66B code stream in a manner that an OAM code block replaces an IDLE (IDLE) code block between ethernet data packets, that is, the OAM code block is inserted in a manner that the OAM code block replaces the IDLE code block, so that the 64B/66B code stream carries OAM information, it can be understood that the content of the OAM information is not limited in the embodiment of the present invention.

Referring to fig. 3, based on the period T + Δ T, the period T is N × 16k, and N is the number of Calendar slots used by the Path layer, so that the rate of inserting the OAM code block can be automatically scaled as the Path rate increases, and thus the period of the OAM information remains constant.

Mode 2: according to the insertion period, one or more OAM code blocks are directly inserted between the Ethernet data packets in the 64B/66B code stream, that is, the condition that the IDLE code blocks are not considered when the OAM code blocks are inserted can be automatically adjusted by an IDLE code block addition and deletion mechanism of the Ethernet.

Ethernet messages are of indefinite length, and OAM received and sent in a certain period requires waiting for a message gap, so there may be a certain deviation from the configured precise period, as shown in the scenario of fig. 3, and the OAM function of the MTN Path layer needs to consider to be compatible with the deviation.

Optionally, an OAM type (type) of the OAM code block includes: a Basic code block and a non-Basic code block; wherein the content of the first and second substances,

the Basic code block is inserted at the insertion opportunity of each Basic code block;

the non-Basic code block repeats with a period of M insertion opportunities, where M is a positive integer, for example, M may be equal to 64, but is not limited thereto.

Referring to fig. 4, B indicates the opportunity of inserting Basic code blocks, which are inserted at each insertion opportunity of B, and O indicates the opportunity of inserting non-Basic code blocks, which are inserted only when the non-Basic code blocks need to be transmitted, and if no non-Basic code blocks are transmitted, no processing is performed.

Optionally, code blocks of a first code block type are inserted in a first consecutive insertion opportunity of the M insertion opportunities, such as connectivity Check (CV) code blocks inserted in 1-17 consecutive insertion opportunities of 64 insertion opportunities;

inserting code blocks of a second code block type in a second consecutive insertion opportunity of the M insertion opportunities, e.g., inserting one-way delay detection (1DM) code blocks or two-way delay detection information (2DMM) code blocks in 18-22 consecutive insertion opportunities of 64 insertion opportunities;

inserting code blocks of a third code block type in a third consecutive insertion opportunity of the M insertion opportunities, e.g., inserting a two-way delay detection response (2DMR) code block in 23-35 consecutive insertion opportunities of 64 insertion opportunities;

a fourth consecutive insertion opportunity among the M insertion opportunities is a reserved location, for example, 36-64 consecutive insertion opportunities among 64 insertion opportunities is a reserved location.

It is understood that the code block types include, but are not limited to, CV, 1DM, 2DMM, 2 DMR.

Referring to table 1, a non-Basic code block is repeated with a period of 64 insertion opportunities (opportunities) in which the following code blocks are inserted, respectively: CV code blocks, DM code blocks and 2DMR code blocks, and corresponding positions are reserved for other code block types in the future.

Table 1:

Blocks Purpose
1-17 CV
18-22 1DM/2DMM
23-35 2DMR
36-64 Reserved

in the embodiment of the present invention, the format of the OAM code block includes one or more of the following combinations:

(1) a code Block type (Block type), such as set to 0x 48;

(2) indication information for distinguishing whether it is a Basic code block or a non-Basic code block;

(3) a preconfigured Protocol ID (PID); and the number of the first and second groups,

(4) carried data, otherwise referred to as OAM information;

wherein the preconfigured PID and Block type are used to identify the OAM code Block.

Referring to fig. 5a and 5b, wherein 0x4B + PID (bit 34-bit 37) is used to identify the OAM code block, wherein the value of PID can be set, such as to 0xC, and wherein Data4, Data5, Data6, are set to 0.

The "T" in fig. 5b can use 1 bit to distinguish whether the Basic code block or the non-Basic code block, Data1, Data2, Data3 are used to carry OAM information. The OAM information of the Basic code block is suitable for being transmitted by a single code block, and the OAM information of the non-Basic code block can be transmitted by adopting a plurality of OAM code blocks in a TLV (Tag, Length, Value) form.

Referring to fig. 6, a framing form of a Basic code block is illustrated, the indication information (T) represents the Basic code block, and the carried data (OAM information) includes one or more of the following combinations:

(1) remote Error Indication (REI) information;

(2) remote Defect Indication (RDI) information;

(3) bit Interleaved Parity (BIP) information;

(4) automatic Protection Switching (APS) information.

Referring to fig. 6, the APS information includes: (1) APS data; (2) indicating a sequence number of a multiframe (multiframe) carrying the APS data.

The multi-frame mode is shown in fig. 6, AMF0, AMF1, AMF2 indicate the sequence number of the multi-frame, and APS4 bytes carry APS information.

Regarding the APS frame format, see fig. 7, APS transmits in a basic message using a 6-frame multiframe, a 2-byte APS protocol and a one-byte CRC-8 to avoid the need for a persistence filter, each frame carrying one nibble of information and 3 bits for the MFI.

Referring to fig. 8, the indication information (T ═ 0) represents a non-Basic code block, and the carried data includes one or more of the following combinations:

(1) the starting position of OAM information;

(2) an end position of the OAM information; and the number of the first and second groups,

(3) value (Value), which indicates the function of OAM code block, e.g., Value1 and Value2 carry data.

In an embodiment of the present invention, the non-Basic code block includes: CV, 1DM, 2DMR, etc., are framed in TLV form by a plurality of code blocks.

Table 2: types of various information, payload of delivery data:

information Type indication Payload length (Bytes) Frame length (bytes)
CV 0x11 32 34
1DM 0x12 8 10
DMM 0x13 8 10
2DMR 0x14 24 26

Referring to fig. 9, taking 1DM code block as an example:

8 bytes of a 1DMM message can be transmitted in five blocks;

when type is 0x12, the receiver knows the length;

SOM and EOM flags indicate the first and last OAM code block in the message;

the encoding of the value byte is the same as the option 2b value byte, except that the type is in the first value byte of code block 1 and the CRC is in the last value byte of code block 5.

In some embodiments, the format of the OAM code block includes one or more of the following combinations:

(1) a Block Type, which refers to a Type of a code Block, may include 0xFF, 0xE1, 0x1E, 0x78, and the like;

(2) an OAM type for indicating information of an OAM code block;

(3) value, which indicates the function of the OAM code block;

(4) identifying mode information; and the number of the first and second groups,

(5) a Sequence number (Sequence number) indicating a Sequence number of each OAM code block in an OAM information block composed of a plurality of OAM code blocks;

wherein the identification mode information and the Block type are used to identify the OAM code Block, and the Block type may include 0xFF, 0xE1, 0x1E, 0x78, and the like.

Optionally, the identification manner information includes: a preconfigured PID and a Cyclic Redundancy Check (CRC).

Referring to FIG. 10, Value [ 18-33, 42-57 ]: carrying the values of the given type path OAM code block function.

Sequence number: the sequence number is used to indicate the sequence number of each OAM code block in an OAM information block composed of a plurality of OAM code blocks.

CRC 4: calculated from 2 bits to 61 bits, the total of 60 bits of the entire path OAM code block, except for the synchronization header and CRC4 checksum fields. A CRC4 is appended to the end of the POH block to provide reliable error detection.

Resv: the bit is reserved, with a default value of 0x 0.

Referring to fig. 11, the OAM type is 0x01, indicating a basic message.

The basic OAM function block is periodically transmitted by the source end of the path layer. It contains the following path state information:

remote defect indication (RDI, 1 bit)

Remote error indication (REI, 4 bit)

Client signal local failure (CS _ LF, 1 bit)

Client signal remote failure (CS _ RF, 1 bit)

Client signal EEE LPI (CS _ LPI, 1 bit)

Bit interleaved parity (BIP, 8 bits), checking NX16k blocks between elementary messages.

The basic OAM function block is inserted periodically and the insertion period is configurable. A two-bit period field (bits 30 and 31) is used to indicate the basic OAM function block insertion period.

Referring to fig. 12, a framing form of non-Basic code blocks is illustrated. Both ends of the path periodically send CV blocks with SAPI and DAPI to the peers. After receiving all CV blocks with sequence numbers from 0 to 7, the receiving end will check SAPI and DAPI according to the values configured for this path. If not, an alarm is reported. If the connection is consistent, the connection is verified correctly, and the alarm is cleared, see fig. 14.

In the embodiment of the invention, the OAM code block can be inserted into a Path layer signal of the MTN, and OAM guarantee can be carried out based on 64/66B code stream.

Referring to fig. 13, an embodiment of the present invention provides a 64B/66B code stream receiving method, where an execution main body of the method may be a receiving end, and the method includes the specific steps of: and step 1301.

Step 1301: receiving a 64B/66B code stream from a sending end, wherein the 64B/66B code stream carries one or more OAM code blocks inserted according to an insertion period, and the insertion period represents a period for inserting the OAM code blocks among Ethernet data packets in the 64B/66B code stream.

In some embodiments, the insertion period is equal to one of: (1) the sum of the period T and the period offset DeltaT; (2) the difference between the period T and the period offset Δ T; (3) a period T;

the period T is equal to nxpreset code block size, and N is an integer.

In some embodiments, the preset number of code blocks is 16k or 32 k.

In some embodiments, N is the number of calenar slots used by the Path layer.

In some embodiments, the OAM code block is inserted into the 64B/66B code stream in a manner that replaces IDLE code blocks between ethernet packets, or the OAM code block is inserted into the 64B/66B code stream in a directly inserted manner.

In some embodiments, the OAM type of the OAM code block includes: a Basic code block and a non-Basic code block; wherein the content of the first and second substances,

the Basic code block is inserted at the insertion opportunity of each Basic code block;

the non-Basic code block repeats according to a period of M insertion opportunities, M being a positive integer.

In some embodiments, code blocks of a first code block type are inserted in a first consecutive insertion opportunity of the M insertion opportunities;

inserting code blocks of a second code block type in a second consecutive insertion opportunity of the M insertion opportunities;

inserting code blocks of a third code block type in a third consecutive insertion opportunity of the M insertion opportunities;

a fourth consecutive insertion opportunity among the M insertion opportunities is a reserved location.

In some embodiments, the format of the OAM code block includes one or more of the following combinations:

(1)Block type;

(2) indication information for distinguishing whether it is a Basic code block or a non-Basic code block;

(3) a preconfigured PID; and the number of the first and second groups,

(4) the data carried;

wherein the preconfigured PID and Block type are used to identify the OAM code Block.

In some embodiments, the method further comprises:

and acquiring a corresponding OAM code Block from the 64B/66B code stream according to the preset PID and the Block type.

In some embodiments, the indication information represents a Basic code block, and the carried data includes one or more of the following combinations:

(1) REI information;

(2) RDI information;

(3) BIP information;

(4) APS information.

In some embodiments, the APS information includes: (1) APS data; (2) indicating a sequence number of the multiframe carrying the APS data.

In some embodiments, the method further comprises:

determining code blocks inserted between Ethernet data packets in the 64B/66B code stream or deleted code blocks before bit interleaving parity check;

and carrying out bit-interleaved parity check according to other code blocks except the inserted code block or the deleted code block in the 64B/66B code stream.

The purpose of parity is to provide a mechanism to determine whether an error has been introduced between the source and sink of a path. This data is used both to understand the performance of the network so that preventative maintenance can be done to avoid interruptions, and to prove to the customer that the network is executing on demand. It is therefore important that the parity check be able to monitor performance regardless of whether the client signal is a "normal" signal or a maintenance signal caused by a failure in the client network.

In the context of MTNs, the client layer may include four special types of chunks that MTN nodes may insert or delete for rate adaptation purposes, as shown in table 4.

Table 4: block type for rate adaptation.

Block type Can be inserted (Can be inserted) Can be deleted (Can be deleted)
Idle Is (Y) Y
LPI Y Y
LF NO (N) Y
RF N Y

As described above, the client signal may include any or all of these types of blocks.

For proper operation, the parity mechanism must allow for the insertion or deletion of these block types. The simplest way to achieve this is to exclude these blocks from the parity calculation at both the source and the sink. Each block has a unique 66b pattern, thus excluding one block based on a full 66b match, as shown in table 5.

Table 5: details of the block format to skip.

By excluding blocks that match these 66b patterns, the parity computed at the sink cannot be distinguished from the parity computed at the source based on inserting or deleting these blocks along the path. Only errors in the transmission will cause the parity computed at the receiver to not match the parity computed at the source.

Note that since blocks matching the pattern in table 5 are excluded in both the source and sink, the parity check still detects errors in the transmission of the excluded blocks. In the event of an error in the transmission of one of the blocks not included in the parity calculation at the source, the pattern of that block will not match any of the four special patterns at the sink, and so the block will be included in the calculation at the sink. In the event that a block that is not one of the special types experiences an error that turns it into one of the special types, it will be excluded at the sink, but will already be included at the source.

In some embodiments, the indication information represents a non-Basic code block, and the carried data includes one or more of the following combinations:

(1) the starting position of OAM information;

(2) an end position of the OAM information; and the number of the first and second groups,

(3) value, which indicates the function of the OAM code block.

In some embodiments, the method further comprises: obtaining a plurality of OAM code blocks according to the initial position of the OAM information and the end position of the OAM information; and obtaining the OAM information according to the plurality of OAM code blocks. For example, OAM code blocks are extracted according to 0x4B PIDs, and whether Basic code blocks or non-Basic code blocks are judged according to T. For non-Basic code blocks, frames are determined by SOM and EOM.

Table 3: detection mode of path layer defect

In some embodiments, the format of the OAM code block includes one or more of the following combinations: (1) a Block type; (2) an OAM type for indicating information of an OAM code block; (3) value, which indicates the function of the OAM code block; (4) identifying mode information; and (5) a Sequence number indicating a number of each OAM code block in an OAM information block composed of a plurality of OAM code blocks;

wherein the identification mode information and Block type are used to identify the OAM code Block.

Optionally, the identification manner information includes: preconfigured PID and CRC.

In some embodiments, the method further comprises: acquiring a corresponding OAM code Block from the 64B/66B code stream according to the identification mode information and the Block type; extracting and arranging a plurality of OAM code blocks according to the Sequence number if the OAM type represents a non-Basic code block; and obtaining OAM information according to the plurality of OAM code blocks. That is, an OAM code Block is extracted according to the Block Type + PID, which Type of OAM is determined according to the OAM Type, and framing is performed according to the Sequence number.

In the embodiment of the invention, the OAM code block can be extracted from the Path layer signal of the MTN, and OAM guarantee can be carried out based on 64/66B code stream.

Another sending mechanism of MTN path layer:

(1) OAM Block priority of MTN channel layer

Due to the fact that the importance and the real-time performance of all OAM functions are different, OAM of an MTN channel layer needs to be transmitted in a priority mode. OAM is divided into three priorities:

first-level priority transmission: the fixed reference period is inserted into the OAM type, with absolute priority, to be sent out once generated during the last frame interval.

Second level priority delivery, which includes two categories:

priority 1: event triggers insert OAM types, which have higher priority and need to be able to be issued when there is a frame gap chance.

Priority 2: the on-demand OAM type has a lower priority.

(2) MTN channel layer OAM Block Transmission

For efficient transmission, as few resources occupying the frame gap in the data stream as possible, a two-stage insertion mechanism is constructed, as shown in fig. 15:

1) the first level insertion is unrelated to the second level insertion, and the first level insertion is firstly carried out;

2) the period of the first-stage insertion is irrelevant to the period of the second-stage insertion and can be set respectively;

3) the first stage looks for a frame gap in the data stream into which an OAM code block can be inserted, and inserts an absolute priority code block in a quasiperiod (period 1).

4) The second stage looks for a frame gap after the first stage where an OAM code block can be inserted, and the code block will be inserted with a quasiperiod (period 2).

5) For the second level insertion, an arbiter may be set so that code blocks of different priorities are inserted. The arbitrator preferentially transmits the high-priority code block when the data of the high-priority code block exists. Only when the high priority code block is transmitted, the lower priority code block is transmitted.

Referring to fig. 16, an embodiment of the present invention provides a 64B/66B code stream transmitting apparatus, which is applied to a transmitting end, where the apparatus 1600 includes:

a determining module 1601, configured to determine an insertion period, where the insertion period represents a period in which an OAM code block is inserted between ethernet packets in a 64B/66B code stream;

an inserting module 1602, configured to insert one or more OAM code blocks into the 64B/66B code stream according to the inserting period;

a sending module 1603, configured to send the 64B/66B code stream carrying the OAM code block to a receiving end.

In some embodiments, the insertion module 1602 is further configured to: inserting one or more OAM code blocks into the 64B/66B code stream in a mode of replacing IDLE IDLE code blocks among Ethernet data packets by the OAM code blocks according to the insertion period;

alternatively, the first and second electrodes may be,

and according to the insertion period, directly inserting one or more OAM code blocks between Ethernet data packets in the 64B/66B code stream.

In some embodiments, the insertion period is equal to one of:

the sum of the period T and the period offset DeltaT;

the difference between the period T and the period offset Δ T;

a period T;

the period T is equal to nxpreset number of code blocks, and N is an integer.

In some embodiments, the preset number of code blocks is 16k or 32 k.

In some embodiments, N is the number of calenar slots used by the Path layer.

In some embodiments, the OAM type of the OAM code block includes: a Basic code block and a non-Basic code block; wherein the content of the first and second substances,

the Basic code block is inserted at the insertion opportunity of each Basic code block;

the non-Basic code block repeats according to a period of M insertion opportunities, M being a positive integer.

In some embodiments, code blocks of a first code block type are inserted in a first consecutive insertion opportunity of the M insertion opportunities;

inserting code blocks of a second code block type in a second consecutive insertion opportunity of the M insertion opportunities;

inserting code blocks of a third code block type in a third consecutive insertion opportunity of the M insertion opportunities;

a fourth consecutive insertion opportunity among the M insertion opportunities is a reserved location.

In some embodiments, the format of the OAM code block includes one or more of the following combinations:

a code Block type, e.g., 0x 4B;

indication information for distinguishing whether it is a Basic code block or a non-Basic code block;

a preconfigured protocol ID; and the number of the first and second groups,

the data carried;

wherein the preconfigured PID and Block type are used to identify the OAM code Block.

In some embodiments, the indication information represents a Basic code block, and the carried data includes one or more of the following combinations:

remote error indication REI information;

remote Defect Indication (RDI) information;

bit interleaved parity checking (BIP) information;

automatic Protection Switching (APS) information.

In some embodiments, the APS information includes:

APS data;

indicating a sequence number of a multiframe carrying the APS data.

In some embodiments, the indication information represents a non-Basic code block, and the carried data includes one or more of the following combinations:

the starting position of OAM information;

an end position of the OAM information; and the number of the first and second groups,

the Value, indicates the function of the OAM code block.

In some embodiments, the format of the OAM code block includes one or more of the following combinations:

Block type;

an OAM type for indicating information of an OAM code block;

value, which indicates the function of the OAM code block;

identifying mode information; and the number of the first and second groups,

a Sequence number for indicating the Sequence number of each OAM code block in an OAM information block composed of a plurality of OAM code blocks;

wherein the identification mode information and Block type are used to identify the OAM code Block.

In some embodiments, the identification manner information includes: a preconfigured PID and a cyclic redundancy check CRC.

The apparatus provided in the embodiment of the present invention may implement the method embodiment shown in fig. 1, which has similar implementation principles and technical effects, and this embodiment is not described herein again.

Referring to fig. 17, an embodiment of the present invention further provides a sending end, where the sending end 1700 includes: a first transceiver 1701 and a first processor 1702;

the first transceiver 1701 transmitting and receiving data under the control of the first processor 1702;

the first processor 1702 reads the program in memory to perform the following operations: determining an insertion period, wherein the insertion period represents a period for inserting OAM code blocks among Ethernet data packets in a 64B/66B code stream; inserting one or more OAM code blocks into the 64B/66B code stream according to the insertion period; and sending the 64B/66B code stream carrying the OAM code block to a receiving end.

In some embodiments, the first processor 1702 reads a program in memory to perform the following operations: inserting one or more OAM code blocks into the 64B/66B code stream in a mode of replacing IDLE IDLE code blocks among Ethernet data packets by the OAM code blocks according to the insertion period;

alternatively, the first and second electrodes may be,

and according to the insertion period, directly inserting one or more OAM code blocks between Ethernet data packets in the 64B/66B code stream.

In some embodiments, the insertion period is equal to one of:

the sum of the period T and the period offset DeltaT;

the difference between the period T and the period offset Δ T;

a period T;

the period T is equal to nxpreset number of code blocks, and N is an integer.

In some embodiments, the preset number of code blocks is 16k or 32 k.

In some embodiments, N is the number of calenar slots used by the Path layer.

In some embodiments, the OAM type of the OAM code block includes: a Basic code block and a non-Basic code block; wherein the content of the first and second substances,

the Basic code block is inserted at the insertion opportunity of each Basic code block;

the non-Basic code block repeats according to a period of M insertion opportunities, M being a positive integer.

In some embodiments, code blocks of a first code block type are inserted in a first consecutive insertion opportunity of the M insertion opportunities;

inserting code blocks of a second code block type in a second consecutive insertion opportunity of the M insertion opportunities;

inserting code blocks of a third code block type in a third consecutive insertion opportunity of the M insertion opportunities;

a fourth consecutive insertion opportunity among the M insertion opportunities is a reserved location.

In some embodiments, the format of the OAM code block includes one or more of the following combinations:

a code Block type Block type;

indication information for distinguishing whether it is a Basic code block or a non-Basic code block;

a preconfigured protocol ID; and the number of the first and second groups,

the data carried;

wherein the preconfigured PID and Block type are used to identify the OAM code Block.

In some embodiments, the indication information represents a Basic code block, and the carried data includes one or more of the following combinations:

remote error indication REI information;

remote Defect Indication (RDI) information;

bit interleaved parity checking (BIP) information;

automatic Protection Switching (APS) information.

In some embodiments, the APS information includes:

APS data;

indicating a sequence number of a multiframe carrying the APS data.

In some embodiments, the indication information represents a non-Basic code block, and the carried data includes one or more of the following combinations:

the starting position of OAM information;

an end position of the OAM information; and the number of the first and second groups,

the Value, indicates the function of the OAM code block.

In some embodiments, the format of the OAM code block includes one or more of the following combinations:

Block type;

an OAM type for indicating information of an OAM code block;

value, which indicates the function of the OAM code block;

identifying mode information; and the number of the first and second groups,

a Sequence number for indicating the Sequence number of each OAM code block in an OAM information block composed of a plurality of OAM code blocks;

wherein the identification mode information and Block type are used to identify the OAM code Block.

In some embodiments, the identification manner information includes: a preconfigured PID and a cyclic redundancy check CRC.

The sending end provided in the embodiment of the present invention may execute the method embodiment shown in fig. 1, which has similar implementation principles and technical effects, and this embodiment is not described herein again.

Referring to fig. 18, an embodiment of the present invention provides a 64B/66B code stream receiving apparatus, which is applied to a receiving end, where the apparatus 1800 includes:

a receiving module 1801, configured to receive a 64B/66B code stream from a sending end, where the 64B/66B code stream carries one or more OAM code blocks inserted according to an insertion period, and the insertion period indicates a period in which an OAM code block is inserted between ethernet data packets in the 64B/66B code stream.

In some embodiments, the insertion period is equal to one of:

the sum of the period T and the period offset DeltaT;

the difference between the period T and the period offset Δ T;

a period T;

the period T is equal to nxpreset code block size, and N is an integer.

In some embodiments, the preset number of code blocks is 16k or 32 k.

In some embodiments, N is the number of calenar slots used by the Path layer.

In some embodiments, the OAM code block is inserted into the 64B/66B code stream in a manner that replaces IDLE code blocks between ethernet packets, or the OAM code block is inserted into the 64B/66B code stream in a directly inserted manner.

In some embodiments, the OAM type of the OAM code block includes: a Basic code block and a non-Basic code block; wherein the content of the first and second substances,

the Basic code block is inserted at the insertion opportunity of each Basic code block;

the non-Basic code block repeats according to a period of M insertion opportunities, M being a positive integer.

In some embodiments, code blocks of a first code block type are inserted in a first consecutive insertion opportunity of the M insertion opportunities;

inserting code blocks of a second code block type in a second consecutive insertion opportunity of the M insertion opportunities;

inserting code blocks of a third code block type in a third consecutive insertion opportunity of the M insertion opportunities;

a fourth consecutive insertion opportunity among the M insertion opportunities is a reserved location.

In some embodiments, the format of the OAM code block includes one or more of the following combinations:

Block type;

indication information for distinguishing whether it is a Basic code block or a non-Basic code block;

a preconfigured protocol ID; and the number of the first and second groups,

the data carried;

wherein the preconfigured PID and Block type are used to identify the OAM code Block.

In some embodiments, the apparatus 1800 further comprises:

and the acquisition module is used for acquiring a corresponding OAM code Block from the 64B/66B code stream according to the preset PID and Block type.

In some embodiments, the indication information represents a Basic code block, and the carried data includes one or more of the following combinations:

REI information;

RDI information;

BIP information;

APS information.

In some embodiments, the APS information includes:

APS data;

indicating a sequence number of the multiframe carrying the APS data.

In some embodiments, the apparatus 1800 further comprises:

a determining module, configured to determine, before bit interleaved parity, code blocks inserted between ethernet packets in the 64B/66B code stream or deleted code blocks;

and the check module is used for carrying out bit-interleaved parity check according to other code blocks except the inserted code block or the deleted code block in the 64B/66B code stream.

In some embodiments, the indication information represents a non-Basic code block, and the carried data includes one or more of the following combinations:

the starting position of OAM information;

an end position of the OAM information; and the number of the first and second groups,

value, which indicates the function of the OAM code block.

In some embodiments, the apparatus 1800 further comprises:

the first processing module is used for obtaining a plurality of OAM code blocks according to the initial position of the OAM information and the end position of the OAM information; and obtaining the OAM information according to the plurality of OAM code blocks.

In some embodiments, the format of the OAM code block includes one or more of the following combinations:

Block type;

an OAM type for indicating information of an OAM code block;

value, which indicates the function of the OAM code block;

identifying mode information; and the number of the first and second groups,

sequence number for indicating the serial number of each OAM code block in the OAM information block composed of a plurality of OAM code blocks;

wherein the identification mode information and Block type are used to identify the OAM code Block.

In some embodiments, the apparatus 1800 further comprises:

the second processing module is used for acquiring a corresponding OAM code Block from the 64B/66B code stream according to the identification mode information and the Block type;

extracting and arranging a plurality of OAM code blocks according to the Sequence number if the OAM type represents a non-Basic code block;

and obtaining OAM information according to the plurality of OAM code blocks.

In some embodiments, the identification manner information includes: preconfigured PID and CRC.

The apparatus provided in the embodiment of the present invention may implement the method embodiment shown in fig. 13, which has similar implementation principles and technical effects, and this embodiment is not described herein again.

Referring to fig. 19, an embodiment of the present invention provides a receiving end 1900, including: a second transceiver 1901 and a second processor 1902;

the second transceiver 1901 transmits and receives data under the control of the second processor 1902;

the second processor 1902 reads a program in the memory to perform the following operations: receiving a 64B/66B code stream from a sending end, wherein the 64B/66B code stream carries one or more OAM code blocks inserted according to an insertion period, and the insertion period represents a period for inserting the OAM code blocks among Ethernet data packets in the 64B/66B code stream.

In some embodiments, the insertion period is equal to one of:

the sum of the period T and the period offset DeltaT;

the difference between the period T and the period offset Δ T;

a period T;

the period T is equal to nxpreset code block size, and N is an integer.

In some embodiments, the preset number of code blocks is 16k or 32 k.

In some embodiments, N is the number of calenar slots used by the Path layer.

In some embodiments, the OAM code block is inserted into the 64B/66B code stream in a manner that replaces IDLE code blocks between ethernet packets, or the OAM code block is inserted into the 64B/66B code stream in a directly inserted manner.

In some embodiments, the OAM type of the OAM code block includes: a Basic code block and a non-Basic code block; wherein the content of the first and second substances,

the Basic code block is inserted at the insertion opportunity of each Basic code block;

the non-Basic code block repeats according to a period of M insertion opportunities, M being a positive integer.

In some embodiments, code blocks of a first code block type are inserted in a first consecutive insertion opportunity of the M insertion opportunities;

inserting code blocks of a second code block type in a second consecutive insertion opportunity of the M insertion opportunities;

inserting code blocks of a third code block type in a third consecutive insertion opportunity of the M insertion opportunities;

a fourth consecutive insertion opportunity among the M insertion opportunities is a reserved location.

In some embodiments, the format of the OAM code block includes one or more of the following combinations:

Block type;

indication information for distinguishing whether it is a Basic code block or a non-Basic code block;

a preconfigured protocol ID; and the number of the first and second groups,

the data carried;

wherein the preconfigured PID and Block type are used to identify the OAM code Block.

In some embodiments, the second processor 1902 reads a program in memory to perform the following operations: and acquiring a corresponding OAM code Block from the 64B/66B code stream according to the preset PID and the Block type.

In some embodiments, the indication information represents a Basic code block, and the carried data includes one or more of the following combinations:

REI information;

RDI information;

BIP information;

APS information.

In some embodiments, the APS information includes:

APS data;

indicating a sequence number of the multiframe carrying the APS data.

In some embodiments, the second processor 1902 reads a program in memory to perform the following operations: the code block insertion device is used for determining code blocks inserted among Ethernet data packets in the 64B/66B code stream or deleted code blocks before bit interleaving parity check;

and the check module is used for carrying out bit-interleaved parity check according to other code blocks except the inserted code block or the deleted code block in the 64B/66B code stream.

In some embodiments, the indication information represents a non-Basic code block, and the carried data includes one or more of the following combinations:

the starting position of OAM information;

an end position of the OAM information; and the number of the first and second groups,

value, which indicates the function of the OAM code block.

In some embodiments, the second processor 1902 reads a program in memory to perform the following operations: obtaining a plurality of OAM code blocks according to the initial position of the OAM information and the end position of the OAM information; and obtaining the OAM information according to the plurality of OAM code blocks.

In some embodiments, the format of the OAM code block includes one or more of the following combinations:

Block type;

an OAM type for indicating information of an OAM code block;

value, which indicates the function of the OAM code block;

identifying mode information; and the number of the first and second groups,

sequence number for indicating the serial number of each OAM code block in the OAM information block composed of a plurality of OAM code blocks;

wherein the identification mode information and Block type are used to identify the OAM code Block.

In some embodiments, the second processor 1902 reads a program in memory to perform the following operations: acquiring a corresponding OAM code Block from the 64B/66B code stream according to the identification mode information and the Block type;

extracting and arranging a plurality of OAM code blocks according to the Sequence number if the OAM type represents a non-Basic code block;

and obtaining OAM information according to the plurality of OAM code blocks.

In some embodiments, the identification manner information includes: preconfigured PID and CRC.

The receiving end provided in the embodiment of the present invention may execute the method embodiment shown in fig. 13, which has similar implementation principles and technical effects, and this embodiment is not described herein again.

Referring to fig. 20, fig. 20 is a structural diagram of a communication device applied in the embodiment of the present invention, and as shown in fig. 20, the communication device 2000 includes: a processor 2001, a transceiver 2002, a memory 2003, and a bus interface, wherein:

in one embodiment of the present invention, the communication device 2000 further comprises: a program stored on the memory 2003 and executable on the processor 2001, which when executed by the processor 2001, performs the steps in the embodiments shown in fig. 1 or 13.

In fig. 20, the bus architecture may include any number of interconnected buses and bridges, with one or more processors, represented by processor 2001, and various circuits of memory, represented by memory 2003, being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 2002 may be a plurality of elements including a transmitter and a receiver providing a means for communicating with various other apparatus over a transmission medium, it being understood that the transceiver 2002 is an optional component.

The processor 2001 is responsible for managing a bus architecture and general processing, and the memory 2003 may store data used by the processor 2001 in performing operations.

The communication device provided in the embodiment of the present invention may execute the method embodiment shown in fig. 1 or fig. 13, which implements similar principles and technical effects, and this embodiment is not described herein again.

The steps of a method or algorithm described in connection with the disclosure herein may be embodied in hardware or may be embodied in software instructions executed by a processor. The software instructions may consist of corresponding software modules that may be stored in RAM, flash memory, ROM, EPROM, EEPROM, registers, hard disk, a removable hard disk, a compact disk, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC. In addition, the ASIC may be carried in a core network interface device. Of course, the processor and the storage medium may reside as discrete components in a core network interface device.

Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in this invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.

The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present invention should be included in the scope of the present invention.

As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

It will be apparent to those skilled in the art that various changes and modifications may be made in the embodiments of the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

35页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:分块压缩编码方法、装置、计算机设备及可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类