(19)
(11)EP 3 319 254 B1

(12)EUROPEAN PATENT SPECIFICATION

(45)Mention of the grant of the patent:
09.09.2020 Bulletin 2020/37

(21)Application number: 16829745.5

(22)Date of filing:  06.07.2016
(51)International Patent Classification (IPC): 
H04L 1/00(2006.01)
H04J 3/16(2006.01)
H04J 3/07(2006.01)
(86)International application number:
PCT/CN2016/088887
(87)International publication number:
WO 2017/016379 (02.02.2017 Gazette  2017/05)

(54)

METHOD FOR DATA TRANSMISSION, TRANSMITTER AND RECEIVER

VERFAHREN ZUR DATENÜBERTRAGUNG, SENDER UND EMPFÄNGER

PROCÉDÉ DE TRANSMISSION DE DONNÉES, ÉMETTEUR ET RÉCEPTEUR


(84)Designated Contracting States:
AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR

(30)Priority: 30.07.2015 CN 201510456499

(43)Date of publication of application:
09.05.2018 Bulletin 2018/19

(60)Divisional application:
20186966.6

(73)Proprietor: Huawei Technologies Co., Ltd.
Longgang District Shenzhen, Guangdong 518129 (CN)

(72)Inventors:
  • WU, Qiuyou
    Shenzhen Guangdong 518129 (CN)
  • ZHONG, Qiwen
    Shenzhen Guangdong 518129 (CN)

(74)Representative: Isarpatent 
Patent- und Rechtsanwälte Behnisch Barth Charles Hassa Peckmann & Partner mbB Friedrichstrasse 31
80801 München
80801 München (DE)


(56)References cited: : 
CN-A- 102 196 321
US-A1- 2004 156 390
US-A1- 2010 198 980
CN-A- 104 426 631
US-A1- 2010 098 415
  
      
    Note: Within nine months from the publication of the mention of the grant of the European patent, any person may give notice to the European Patent Office of opposition to the European patent granted. Notice of opposition shall be filed in a written reasoned statement. It shall not be deemed to have been filed until the opposition fee has been paid. (Art. 99(1) European Patent Convention).


    Description

    TECHNICAL FIELD



    [0001] Embodiments of the present invention relate to the communications field, and more specifically, to data transmission methods and a transmitter.

    BACKGROUND



    [0002] The 802.3 based Ethernet defined by the Institute of Electrical and Electronics Engineers (IEEE) has been used as a service interface in various scenarios. An Ethernet rate gradually increases with rapid development of communications technologies, so that the 10M Ethernet, the Fast Ethernet (FE), and the 1 (GE) gradually evolve to the current 100GE Ethernet and the 400GE Ethernet to be defined by the IEEE. Rapid popularization of the Ethernet propels evolution of the Ethernet from a pure interface technology to a network technology similar to a transport network.

    [0003] Currently, the Optical Internetworking Forum (OIF) is discussing expansion of a conventional Ethernet application scenario, so as to support functions such as a subrate, channelization, and inverse multiplexing for an Ethernet service. Such an Ethernet technology is referred to as a Flexible Ethernet (FlexE). For example, in a subrate application scenario of an Ethernet service, a 250G Ethernet service (Media Access Control (MAC) bitstream) can be transmitted by using three existing 100GE Physical Medium Dependent (PMD) sublayers. In an inverse multiplexing application scenario of an Ethernet service, a 200G Ethernet service can be transmitted by using two existing 100GE PMDs. In a channelization application scenario of an Ethernet service, similar to a multiplexing function of an Optical transport network (OTN), multiple low-rate Ethernet services can be multiplexed to a high-rate flexible Ethernet.

    [0004] As a mainstream transport network technology, the OTN technology can implement flexible scheduling and management of a large-capacity service by virtue of abundant Operation, Administration and Maintenance (OAM), a high Tandem Connection Monitoring (TCM) capability, and an out-of-band Forward Error Correction (FEC) capability. An OTN interface is widely used in an existing network. In addition, technologies such as a Synchronous Digital Hierarchy (SDH) interface and a Constant bit rate (CBR) interface in another form widely exist in the existing network.

    [0005] In the prior art, a flexible Ethernet shim (FlexE SHIM) layer is defined in the flexible Ethernet, so that a service layer of multiple Ethernet services aggregates traffic of a client layer. However, the foregoing method needs to be based on a MAC frame of the Ethernet, and an idle (IDLE) code block defined in the Ethernet needs to be deleted to perform rate adaptation. Neither a MAC frame nor an idle frame is defined in a CBR service, such as an OTN service or an SDH service. Therefore, mapping to the FlexE cannot be implemented, and rate adaptation cannot be performed. US 2010/098415 A1 relates to a method and a device for mapping Ethernet code blocks to an optical transport network (OTN) for transmission. According to a preset mapping manner, four groups of 10 Gigabit (10G) Ethernet code blocks are uniformly mapped to a payload area of a general frame provision (GFP) frame, or each group of 10G Ethernet code blocks is interleaved into the payload area of each row of the OTN frame.

    SUMMARY



    [0006] The invention is defined by the appended claims. Embodiments of the present invention provide data transmission methods and a transmitter, so that CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0007] According to a first aspect, a data transmission method is provided, including:

    obtaining constant bit rate CBR service data;

    performing physical coding sublayer PCS encoding on the CBR service data;

    inserting a rate adaptation code block in a PCS bitstream obtained by means of PCS encoding, to perform rate adaptation on the PCS bitstream;

    mapping the adapted PCS bitstream to N timeslots of a flexible Ethernet FlexE frame, where N is a positive integer greater than or equal to 1; and

    sending the FlexE frame, where FlexE overhead of the FlexE frame includes information used to indicate the N timeslots corresponding to the PCS bitstream.



    [0008] With reference to the first aspect, in an implementation of the first aspect, the inserting a rate adaptation code block in a PCS bitstream obtained by means of PCS encoding, to perform rate adaptation on the PCS bitstream includes:
    inserting the rate adaptation code block in the PCS bitstream according to a rate of the PCS bitstream and a total rate of the N timeslots of the FlexE frame that are used to transmit the PCS bitstream, so that the PCS bitstream in which the rate adaptation code block is inserted can be mapped to the N timeslots of the FlexE frame that are used to transmit the PCS bitstream.

    [0009] With reference to either the first aspect or the foregoing corresponding implementation, in another implementation of the first aspect, the FlexE overhead further includes information indicating a ratio of a rate of the CBR service data to the total rate of the N timeslots of the FlexE frame that are used to transmit the PCS bitstream.

    [0010] With reference to any one of the first aspect or the foregoing corresponding implementations, in another implementation of the first aspect, the FlexE overhead further includes information indicating a quantity of bit blocks of the CBR service data in a specific FlexE frame period and/or information indicating a quantity of bits of the CBR service data in a specific FlexE frame period.

    [0011] With reference to any one of the first aspect or the foregoing corresponding implementations, in another implementation of the first aspect, the obtaining constant bit rate CBR service data includes:

    receiving a CBR service data frame, where the data frame includes forward error correction FEC overhead;

    performing error correction on the data frame according to the FEC overhead; and

    terminating the FEC overhead in the corrected data frame, to obtain the CBR service data.



    [0012] With reference to any one of the first aspect or the foregoing corresponding implementations, in another implementation of the first aspect, the rate adaptation code block is an idle (IDLE) code block.

    [0013] With reference to any one of the first aspect or the foregoing corresponding implementations, in another implementation of the first aspect, the FlexE overhead further includes information indicating a sequence of a physical layer device PHY and/or information indicating a type of the CBR service data.

    [0014] With reference to any one of the first aspect or the foregoing corresponding implementations, in another implementation of the first aspect, the performing physical coding sublayer PCS encoding on the CBR service data includes:
    performing 64B/66B encoding, 256B/257B encoding, or 512B/513B encoding on the CBR service data, to obtain the PCS bitstream.

    [0015] With reference to any one of the first aspect or the foregoing corresponding implementations, in another implementation of the first aspect, the CBR service data is optical transport network OTN service data or synchronous digital hierarchy SDH service data.

    [0016] According to a second aspect, a data transmission method is provided, including:

    obtaining constant bit rate CBR service data;

    mapping the CBR service data to an intermediate frame, where a rate of a PCS bitstream obtained by performing physical coding sublayer PCS encoding on the intermediate frame is equal to a total rate of N timeslots of a flexible Ethernet FlexE frame;

    performing PCS encoding on the intermediate frame;

    mapping the PCS bitstream obtained by means of PCS encoding to the N timeslots of the FlexE frame; and

    sending the FlexE frame, where FlexE overhead of the FlexE frame includes information used to indicate the N timeslots corresponding to the PCS bitstream.



    [0017] With reference to the second aspect, in an implementation of the second aspect, the mapping the CBR service data to an intermediate frame includes:
    mapping the CBR service data to the intermediate frame by using an asynchronous mapping procedure AMP or a generic mapping procedure GMP, and adding overhead of the AMP or overhead of the GMP to the intermediate frame.

    [0018] With reference to either the second aspect or the foregoing corresponding implementation, in another implementation of the second aspect, the FlexE overhead further includes information indicating a sequence of a physical layer device PHY and/or information indicating a type of the CBR service data.

    [0019] With reference to any one of the second aspect or the foregoing corresponding implementations, in another implementation of the second aspect, the performing PCS encoding on the intermediate frame includes:
    performing 64B/66B encoding, 256B/257B encoding, or 512B/513B encoding on the intermediate frame, to obtain the PCS bitstream.

    [0020] With reference to any one of the second aspect or the foregoing corresponding implementations, in another implementation of the second aspect, the CBR service data is optical transport network OTN service data or synchronous digital hierarchy SDH service data.

    [0021] According to a third aspect, a data transmission method is provided, including:

    receiving a flexible Ethernet FlexE frame, where the FlexE frame includes a physical coding sublayer PCS bitstream corresponding to constant bit rate CBR service data, and FlexE overhead of the FlexE frame includes information used to indicate N timeslots of the FlexE frame that are corresponding to the PCS bitstream;

    obtaining, from the N timeslots of the FlexE frame by means of parsing, the PCS bitstream including a rate adaptation code block according to the information used to indicate the N timeslots of the FlexE frame that are corresponding to the PCS bitstream;

    deleting the rate adaptation code block in the PCS bitstream; and

    performing PCS decoding on the PCS bitstream from which the rate adaptation code block is deleted, to obtain the CBR service data.



    [0022] With reference to the third aspect, in an implementation of the third aspect, a quantity of rate adaptation code blocks included in the PCS bitstream is determined by a transmitter according to a rate of the PCS bitstream and a total rate of the N timeslots of the FlexE frame that are used to transmit the PCS bitstream.

    [0023] With reference to either the third aspect or the foregoing corresponding implementation, in another implementation of the third aspect, the FlexE overhead further includes information indicating a quantity of bit blocks of the CBR service data in a specific FlexE frame period and/or information indicating a quantity of bits of the CBR service data in a specific FlexE frame period; and
    the deleting the rate adaptation code block in the PCS bitstream includes:
    deleting the rate adaptation code block in the PCS bitstream according to the information about a quantity of bit blocks and/or the information about a quantity of bits.

    [0024] With reference to any one of the third aspect or the foregoing corresponding implementations, in another implementation of the third aspect, the rate adaptation code block is an IDLE code block.

    [0025] With reference to any one of the third aspect or the foregoing corresponding implementations, in another implementation of the third aspect, the FlexE overhead further includes information indicating a sequence of a physical layer device PHY and/or information indicating a type of the CBR service data.

    [0026] With reference to any one of the third aspect or the foregoing corresponding implementations, in another implementation of the third aspect, the performing PCS decoding on the PCS bitstream from which the rate adaptation code block is deleted, to obtain the CBR service data includes:
    performing 64B/66B decoding, 256B/257B decoding, or 512B/513B decoding on the PCS bitstream from which the rate adaptation code block is deleted, to obtain the CBR service data.

    [0027] With reference to any one of the third aspect or the foregoing corresponding implementations, in another implementation of the third aspect, the CBR service data is optical transport network OTN service data or synchronous digital hierarchy SDH service data.

    [0028] According to a fourth aspect, a data transmission method is provided, including:

    receiving a flexible Ethernet FlexE frame, where the FlexE frame includes a physical coding sublayer PCS bitstream corresponding to constant bit rate CBR service data, and FlexE overhead of the FlexE frame includes information used to indicate N timeslots of the FlexE frame that are corresponding to the PCS bitstream;

    obtaining, from the N timeslots of the FlexE frame by means of parsing, the PCS bitstream including a rate adaptation code block according to the information used to indicate the N timeslots of the FlexE frame that are corresponding to the PCS bitstream;

    performing PCS decoding on the PCS bitstream, to obtain an intermediate frame; and

    obtaining the mapped CBR service data from the intermediate frame.



    [0029] With reference to the fourth aspect, in an implementation of the fourth aspect, the CBR service data is mapped to the intermediate frame by using an asynchronous mapping procedure AMP or a generic mapping procedure GMP, and the intermediate frame includes overhead of the AMP or overhead of the GMP.

    [0030] According to a fifth aspect, a transmitter is provided, including:

    an obtaining module, configured to obtain constant bit rate CBR service data;

    an encoding module, configured to perform physical coding sublayer PCS encoding on the CBR service data obtained by the obtaining module;

    a rate adaptation module, configured to insert a rate adaptation code block in a PCS bitstream obtained by the encoding module, to perform rate adaptation on the PCS bitstream;

    a mapping module, configured to map the PCS bitstream adapted by the rate adaptation module to N timeslots of a flexible Ethernet FlexE frame, where N is a positive integer greater than or equal to 1; and

    a sending module, configured to send the FlexE frame, where FlexE overhead of the FlexE frame includes information used to indicate the N timeslots corresponding to the PCS bitstream.



    [0031] With reference to the fifth aspect, in an implementation of the fifth aspect, the rate adaptation module is specifically configured to:
    insert the rate adaptation code block in the PCS bitstream according to a rate of the PCS bitstream and a total rate of the N timeslots of the FlexE frame that are used to transmit the PCS bitstream, so that the PCS bitstream in which the rate adaptation code block is inserted can be mapped to the N timeslots of the FlexE frame that are used to transmit the PCS bitstream.

    [0032] With reference to either the fifth aspect or the foregoing corresponding implementation, in another implementation of the fifth aspect, the FlexE overhead further includes information indicating a ratio of a rate of the CBR service data to the total rate of the N timeslots of the FlexE frame that are used to transmit the PCS bitstream.

    [0033] With reference to any one of the fifth aspect or the foregoing corresponding implementations, in another implementation of the fifth aspect, the FlexE overhead further includes information indicating a quantity of bit blocks of the CBR service data in a specific FlexE frame period and/or information indicating a quantity of bits of the CBR service data in a specific FlexE frame period.

    [0034] With reference to any one of the fifth aspect or the foregoing corresponding implementations, in another implementation of the fifth aspect, the obtaining module is specifically configured to:

    receive a CBR service data frame, where the data frame includes forward error correction FEC overhead;

    perform error correction on the data frame according to the FEC overhead; and

    terminate the FEC overhead in the corrected data frame, to obtain the CBR service data.



    [0035] With reference to any one of the fifth aspect or the foregoing corresponding implementations, in another implementation of the fifth aspect, the rate adaptation code block is an IDLE code block.

    [0036] With reference to any one of the fifth aspect or the foregoing corresponding implementations, in another implementation of the fifth aspect, the FlexE overhead further includes information indicating a sequence of a physical layer device PHY and/or information indicating a type of the CBR service data.

    [0037] With reference to any one of the fifth aspect or the foregoing corresponding implementations, in another implementation of the fifth aspect, the encoding module is specifically configured to:
    perform 64B/66B encoding, 256B/257B encoding, or 512B/513B encoding on the CBR service data, to obtain the PCS bitstream.

    [0038] With reference to any one of the fifth aspect or the foregoing corresponding implementations, in another implementation of the fifth aspect, the CBR service data is optical transport network OTN service data or synchronous digital hierarchy SDH service data.

    [0039] According to a sixth aspect, a transmitter is provided, including:

    an obtaining module, configured to obtain constant bit rate CBR service data;

    a first mapping module, configured to map the CBR service data obtained by the obtaining module to an intermediate frame, where a rate of a PCS bitstream obtained by performing physical coding sublayer PCS encoding on the intermediate frame is equal to a total rate of N timeslots of a flexible Ethernet FlexE frame;

    an encoding module, configured to perform PCS encoding on the intermediate frame obtained by the first mapping module;

    a second mapping module, configured to map the PCS bitstream obtained by the encoding module to the N timeslots of the FlexE frame; and

    a sending module, configured to send the FlexE frame, where FlexE overhead of the FlexE frame includes information used to indicate the N timeslots corresponding to the PCS bitstream.



    [0040] With reference to the sixth aspect, in an implementation of the sixth aspect, the first mapping module is specifically configured to:
    map the CBR service data to the intermediate frame by using an asynchronous mapping procedure AMP or a generic mapping procedure GMP, and add overhead of the AMP or overhead of the GMP to the intermediate frame.

    [0041] With reference to either the sixth aspect or the foregoing corresponding implementation, in another implementation of the sixth aspect, the FlexE overhead further includes information indicating a sequence of a physical layer device PHY and/or information indicating a type of the CBR service data.

    [0042] With reference to any one of the sixth aspect or the foregoing corresponding implementations, in another implementation of the sixth aspect, the encoding module is specifically configured to:
    perform 64B/66B encoding, 256B/257B encoding, or 512B/513B encoding on the intermediate frame, to obtain the PCS bitstream.

    [0043] With reference to any one of the sixth aspect or the foregoing corresponding implementations, in another implementation of the sixth aspect, the CBR service data is optical transport network OTN service data or synchronous digital hierarchy SDH service data.

    [0044] According to a seventh aspect, a receiver is provided, including:

    a receiving module, configured to receive a flexible Ethernet FlexE frame, where the FlexE frame includes a physical coding sublayer PCS bitstream corresponding to constant bit rate CBR service data, and FlexE overhead of the FlexE frame includes information used to indicate N timeslots of the FlexE frame that are corresponding to the PCS bitstream;

    a parsing module, configured to obtain, from the N timeslots of the FlexE frame received by the receiving module and by means of parsing, the PCS bitstream including a rate adaptation code block according to the information used to indicate the N timeslots of the FlexE frame that are corresponding to the PCS bitstream;

    a deletion module, configured to delete the rate adaptation code block in the PCS bitstream obtained by means of parsing by the parsing module; and

    a decoding module, configured to perform PCS decoding on the PCS bitstream that is obtained by the deletion module and from which the rate adaptation code block is deleted, to obtain the CBR service data.



    [0045] With reference to the seventh aspect, in an implementation of the seventh aspect, a quantity of rate adaptation code blocks included in the PCS bitstream is determined by a transmitter according to a rate of the PCS bitstream and a total rate of the N timeslots of the FlexE frame that are used to transmit the PCS bitstream.

    [0046] With reference to either the seventh aspect or the foregoing corresponding implementation, in another implementation of the seventh aspect, the FlexE overhead further includes information indicating a quantity of bit blocks of the CBR service data in a specific FlexE frame period and/or information indicating a quantity of bits of the CBR service data in a specific FlexE frame period; and
    the deletion module is specifically configured to:
    delete the rate adaptation code block in the PCS bitstream according to the information about a quantity of bit blocks and/or the information about a quantity of bits.

    [0047] With reference to any one of the seventh aspect or the foregoing corresponding implementations, in another implementation of the seventh aspect, the rate adaptation code block is an IDLE code block.

    [0048] With reference to any one of the seventh aspect or the foregoing corresponding implementations, in another implementation of the seventh aspect, the FlexE overhead further includes information indicating a sequence of a physical layer device PHY and/or information indicating a type of the CBR service data.

    [0049] With reference to any one of the seventh aspect or the foregoing corresponding implementations, in another implementation of the seventh aspect, the decoding module is specifically configured to:
    perform 64B/66B decoding, 256B/257B decoding, or 512B/513B decoding on the PCS bitstream from which the rate adaptation code block is deleted, to obtain the CBR service data.

    [0050] With reference to any one of the seventh aspect or the foregoing corresponding implementations, in another implementation of the seventh aspect, the CBR service data is optical transport network OTN service data or synchronous digital hierarchy SDH service data.

    [0051] According to an eighth aspect, a receiver is provided, including:

    a receiving module, configured to receive a flexible Ethernet FlexE frame, where the FlexE frame includes a physical coding sublayer PCS bitstream corresponding to constant bit rate CBR service data, and FlexE overhead of the FlexE frame includes information used to indicate N timeslots of the FlexE frame that are corresponding to the PCS bitstream;

    a parsing module, configured to obtain, from the N timeslots of the FlexE frame received by the receiving module and by means of parsing, the PCS bitstream including a rate adaptation code block according to the information used to indicate the N timeslots of the FlexE frame that are corresponding to the PCS bitstream;

    a decoding module, configured to perform PCS decoding on the PCS bitstream obtained by means of parsing by the parsing module, to obtain an intermediate frame;

    a processing module, configured to obtain the mapped CBR service data from the intermediate frame obtained by the decoding module.



    [0052] With reference to the eighth aspect, in an implementation of the eighth aspect, the CBR service data is mapped to the intermediate frame by using an asynchronous mapping procedure AMP or a generic mapping procedure GMP, and the intermediate frame includes overhead of the AMP or overhead of the GMP.

    [0053] According to a ninth aspect, a transmitter is provided, including a processor, a memory, and a transceiver, where
    the memory is configured to store an instruction, the processor is configured to execute the instruction stored by the memory, so as to control the transceiver to receive and send a signal, and when the processor executes the instruction stored by the memory, the transmitter is configured to perform the method according to any one of the first aspect or the implementations of the first aspect.

    [0054] According to a tenth aspect, a transmitter is provided, including a processor, a memory, and a transceiver, where
    the memory is configured to store an instruction, the processor is configured to execute the instruction stored by the memory, so as to control the transceiver to receive and send a signal, and when the processor executes the instruction stored by the memory, the transmitter is configured to perform the method according to any one of the second aspect or the implementations of the second aspect.

    [0055] According to an eleventh aspect, a receiver is provided, including a processor, a memory, and a transceiver, where
    the memory is configured to store an instruction, the processor is configured to execute the instruction stored by the memory, so as to control the transceiver to receive and send a signal, and when the processor executes the instruction stored by the memory, the transmitter is configured to perform the method according to any one of the third aspect or the implementations of the third aspect.

    [0056] According to a twelfth aspect, a receiver is provided, including a processor, a memory, and a transceiver, where
    the memory is configured to store an instruction, the processor is configured to execute the instruction stored by the memory, so as to control the transceiver to receive and send a signal, and when the processor executes the instruction stored by the memory, the transmitter is configured to perform the method according to any one of the fourth aspect or the implementations of the fourth aspect.

    [0057] Based on the foregoing technical solutions, according to the data transmission method, the transmitter, and the receiver in the embodiments of the present invention, PCS encoding is performed on CBR service data, a rate adaptation code block is inserted in a PCS bitstream obtained by means of encoding, so that a rate of the PCS bitstream in which the rate adaptation code block is inserted is adapted to a total rate of corresponding timeslots of a FlexE frame, FlexE overhead including related information about the CBR service data is added to the PCS bitstream, and then the PCS bitstream is sent. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    BRIEF DESCRIPTION OF DRAWINGS



    [0058] To describe the technical solutions in the embodiments of the present invention more clearly, the following briefly describes the accompanying drawings required for describing the embodiments or the prior art. Apparently, the accompanying drawings in the following description show merely some embodiments of the present invention, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.

    FIG. 1 is a schematic diagram of a data frame structure of a flexible Ethernet;

    FIG. 2 is a schematic diagram of a periodical data frame structure of a flexible Ethernet;

    FIG. 3 is a schematic flowchart of a data transmission method according to an embodiment of the present invention;

    FIG. 4 is a schematic diagram of performing encoding according to a 64B/66B format according to an embodiment of the present invention;

    FIG. 5 is a schematic diagram of processing OTN service data according to an embodiment of the present invention;

    FIG. 6 is a schematic diagram of an idle code block format according to an embodiment of the present invention;

    FIG. 7A, FIG. 7B, and FIG. 7C are schematic diagrams of other idle code block formats according to an embodiment of the present invention;

    FIG. 8 is a schematic diagram of distributing a PHY according to an embodiment of the present invention;

    FIG. 9 is a schematic diagram of FlexE overhead according to an embodiment of the present invention;

    FIG. 10 is a schematic flowchart of a data transmission method according to another embodiment of the present invention;

    FIG. 11 is a schematic flowchart of a data transmission method according to another embodiment of the present invention;

    FIG. 12 is a schematic flowchart of a data transmission method according to another embodiment of the present invention;

    FIG. 13 is a schematic block diagram of a transmitter according to an embodiment of the present invention;

    FIG. 14 is a schematic block diagram of a transmitter according to another embodiment of the present invention;

    FIG. 15 is a schematic block diagram of a receiver according to an embodiment of the present invention;

    FIG. 16 is a schematic block diagram of a receiver according to another embodiment of the present invention;

    FIG. 17 is a schematic block diagram of a transmitter according to another embodiment of the present invention;

    FIG. 18 is a schematic block diagram of a transmitter according to another embodiment of the present invention;

    FIG. 19 is a schematic block diagram of a receiver according to another embodiment of the present invention; and

    FIG. 20 is a schematic block diagram of a receiver according to another embodiment of the present invention.


    DESCRIPTION OF EMBODIMENTS



    [0059] The following clearly and completely describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention which is defined by the appended claims.

    [0060] First, related concepts in the embodiments of the present invention are briefly described.

    [0061] Flexible Ethernet (FlexE): The FlexE is similar to an OTN, and has concepts of a FlexE client layer and a FlexE service layer. The FlexE client layer, such as 10G, 25G, 40G, and N*50G Ethernet interfaces, is mainly for aggregating client signals. The FlexE service layer is a functional layer mainly used to carry a FlexE client signal. Currently, the FlexE service layer is implemented mainly by using N 100GE Physical Layer (PHY) Device, and may also be implemented by using N 400GE PHYs in the future.

    [0062] Constant bit rate (CBR) service: is a service whose bit rate is constant, and may include an OTN service, an SDH service, and the like.

    [0063] Physical coding sublayer (PCS) encoding: is a technology used to encode data in an Ethernet or a flexible Ethernet so as to obtain an encoding format complying with the Ethernet or the flexible Ethernet. The PCS encoding may include 64B/66B encoding, 256B/257B encoding, 512B/513B encoding, and the like.

    [0064] Physical layer device: is mainly an Ethernet physical interface, and includes a PCS, a Physical Medium Attachment (PMA) sublayer, and a Physical Medium Dependent (PMD) sublayer.

    [0065] Master calendar layer (Master calendar): is a FlexE service layer structure with N×M consecutive Ethernet code blocks (such as 66B blocks). N represents a quantity of sub-calendar layers (Sub-calendar) into which the master calendar layer needs to be split, and M represents a quantity of timeslots (Calendar Slot) supported by each sub-calendar layer. Generally, M=20.

    [0066] Sub-calendar layer: is each of N FlexE service layer structures obtained by splitting a master calendar layer. The sub-calendar layer has M consecutive Ethernet code blocks, and M represents a quantity of timeslots.

    [0067] O code block: is a 66B control code block defined in the Ethernet. A block type is indicated by BT=0x4B, and D1, D2, and D3 are data bytes in the O code block. An O field is included, and is used to indicate uses of D1, D2, and D3 in the code block. In the current Ethernet, O=0x0, and in the FlexE, it is planned that O=0x5.

    [0068] For ease of understanding, the prior art is briefly described first.

    [0069] Introduction of a concept of a flexible Ethernet provides a feasible evolution direction for virtualization of an Ethernet physical connection. In the FlexE, one or more physical connections are bundled by means of cascading to form a physical connection group, so as to obtain a bandwidth resource pool. Total bandwidth resources of the bandwidth resource pool are a sum of bandwidth resources of all physical connections in the physical connection group. From another perspective, the physical connection group may be considered as a high-speed logical connection implemented between a receive end and a transmit end. The logical connection has total bandwidth of physical interface connections bundled by means of cascading. The FlexE further divides the bandwidth resources of the physical connection group into some time division timeslots, and the timeslots are bundled by means of cascading to support some virtual connections, so that data transmission in the Ethernet is highly flexible.

    [0070] Each physical connection in the physical connection group transmits data in a period of a data frame. A subframe is used as an example. A start part of the subframe includes an overhead code block followed by 1024 groups of information code blocks. Each group of information code block usually includes 20 code blocks corresponding to 20 time division timeslot bandwidth resources respectively.

    [0071] FIG. 1 shows a data frame structure of a flexible Ethernet. In FIG. 1, in a subframe period, a FlexE overhead code block (FlexE overhead for short in this specification) is followed by some information code blocks of a 64×66b structure, for example, 20480 information code blocks of the 64×66b structure. Some consecutive subframe periods (usually four subframes) form a basic frame (BasicFrame). Some consecutive basic frames (usually 40 basic frames) form a super frame (SuperFrame).

    [0072] In the prior art, a sequence of a member in a physical connection group is identified in an overhead area that includes overhead code blocks. Specifically, in a process of transmitting a data flow by a transmit end to a receive end by using a physical connection group, the transmit end distributes the data flow to all physical connections according to a sequence of each physical connection in the physical connection group. A physical connection in a more front sequence is responsible for transmitting a sub flow at a more front location in the whole data flow. After the data flow is distributed, each physical connection transmits a sub flow distributed to the physical connection. Each sub flow transmitted on a physical interface of the flexible Ethernet is transmitted in a data frame form. A data frame transmitted by each physical connection has a periodical structure shown in FIG. 2. One basic frame usually includes four subframes, an overhead code block is disposed at a head of each subframe, and there are a total of four overhead code blocks. An information code block of the FlexE usually includes 66 bits, and all 4×66 bits of the four overhead code blocks form an overhead area shown in FIG. 2. In the prior art, the overhead area is used to indicate a configuration of a physical connection group. Table 1 shows a part of an overhead area (31 most significant bits) in the prior art.



    [0073] This PHY is an identifier of this physical connection, and FlexE Group Number is an identifier of a physical connection group to which this physical connection belongs.

    [0074] In the prior art, the Ethernet is widely used as a service interface in an access network and a metropolitan area network, and therefore, the FlexE technology based on a service traffic aggregation function of the Ethernet technology can implement a seamless connection to an Ethernet interface of an underlying service network. Introduction of subrate, channelization, and inverse multiplexing functions of the FlexE significantly expands application scenarios of the Ethernet, improves flexibility of an Ethernet application, and makes the Ethernet technology gradually penetrate into the transport network field.

    [0075] For multiplexing multiple Ethernet services (such as 10GE, 25GE, 40GE, 100GE, and the like), in the flexible Ethernet, as an expansion of the conventional Ethernet technology, a FlexE shim is newly defined for a FlexE service layer after an existing PCS in an 802.3 Ethernet architecture is defined by the IEEE, so that the service layer aggregates traffic of a client layer. The foregoing FlexE architecture can only aggregate multiple Ethernet services.

    [0076] The foregoing FlexE architecture needs to be based on a MAC frame of the Ethernet, and an idle code block defined in the Ethernet needs to be deleted to perform rate adaptation. Only multiple Ethernet services can be aggregated, and a service of another protocol cannot be carried. For example, a CBR service, such as an OTN service or an SDH service, has no MAC frame, and no idle frame is defined. Rate adaptation cannot be performed on the CBR service, and therefore, the OTN service or the SDH service cannot be mapped to the FlexE. Therefore, a technical problem of carrying a service such as the OTN service and/or the SDH service by the flexible Ethernet needs to be resolved.

    [0077] The embodiments of the present invention aim at resolving the foregoing problem. A data transmission method in the embodiments of the present invention is described below in detail.

    [0078] FIG. 3 shows a data transmission method 100 according to an embodiment of the present invention. The method 100 is executed by a transmitter used for data transmission, and includes:

    S110. Obtain constant bit rate CBR service data.

    S120. Perform physical coding sublayer PCS encoding on the CBR service data.

    S130. Insert a rate adaptation code block in a PCS bitstream obtained by means of PCS encoding, to perform rate adaptation on the PCS bitstream.

    S140. Map the adapted PCS bitstream to N timeslots of a flexible Ethernet FlexE frame, where N is a positive integer greater than or equal to 1.

    S150. Send the FlexE frame, where FlexE overhead of the FlexE frame includes information used to indicate the N timeslots corresponding to the PCS bitstream.



    [0079] Therefore, according to the data transmission method in this embodiment of the present invention, PCS encoding is performed on CBR service data, a rate adaptation code block is inserted in a PCS bitstream obtained by means of encoding, so that a rate of the PCS bitstream in which the rate adaptation code block is inserted is adapted to a FlexE, FlexE overhead including related information about the CBR service data is added to the PCS bitstream, and then the PCS bitstream is sent. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0080] Specifically, the CBR service data obtained in S110 is service data from a network based on a CBR interface technology. For example, the CBR service data may be OTN service data from an optical transport network, may be SDH service data from a synchronous digital hierarchy, or may be other service data from a network based on the CBR interface technology. This is not limited in this embodiment of the present invention. The CBR service data from the optical transport network, the synchronous digital hierarchy, or the like may include forward error correction (Forward Error Correction, FEC) overhead for increasing a transmission distance, or may include no FEC overhead, and this is not limited in this embodiment of the present invention.

    [0081] Optionally, S110 in which the constant bit rate CBR service data is obtained includes:

    receiving a CBR service data frame, where the data frame includes forward error correction FEC overhead;

    performing error correction on the data frame according to the FEC overhead; and

    terminating the FEC overhead in the corrected data frame, to obtain the CBR service data.



    [0082] Specifically, in this embodiment of the present invention, the CBR service data frame may be received from an OTN network or an SDH network, or may be received from an apparatus, a node, or a device. A data frame sent by the OTN network or the SDH network may include FEC overhead. After the CBR service data frame is received, frame recognition may be performed to recognize the FEC overhead in the data frame, error correction is performed on the data frame according to the FEC overhead, then the FEC overhead in the data frame is terminated or deleted, and a remaining part is used as to-be-encoded CBR service data. In this way, FlexE timeslot bandwidth is not wasted.

    [0083] In addition, frame recognition may not be performed, and the received data frame is directly used as to-be-encoded CBR service data. In this way, if the data frame includes FEC overhead, PCS encoding is also performed on the FEC overhead in a subsequent PCS encoding process. Terminating the FEC overhead can improve service data transmission efficiency in the FlexE, but damages service data transparency; and retaining the FEC overhead can maintain CBR service data transparency, but wastes a part of FlexE timeslot bandwidth.

    [0084] It should be understood that in this embodiment of the present invention, after service data is received from the OTN or the SDH, corresponding processing may be performed on the service data. For example, after service data is received from the OTN, optical-to-electrical conversion first needs to be performed on the service data. In addition, if FEC overhead is to be terminated or deleted, recognition needs to be performed on a data frame of the received service data, so as to accurately recognize the FEC overhead in the CBR service data. The foregoing processing may be implemented in some existing manners, and details are not described herein.

    [0085] In S120, PCS encoding is performed on the CBR service data, to obtain the PCS bitstream complying with a FlexE encoding format. Specifically, a bitstream of the CBR service data whose FEC overhead is terminated or a bitstream of the CBR service data whose FEC overhead is retained may be divided into bit blocks, and then a synchronization header indication is added to the bit block.

    [0086] For example, encoding may be performed on the CBR service data by using a 64B/66B format widely used in the FlexE currently, to obtain the PCS bitstream complying with the FlexE encoding format. Specifically, for performing 64B/66B encoding, the bitstream of the CBR service data first needs to be divided into multiple consecutive 64B blocks, and a two-bit synchronization header (Sync header) is added to each 64B block, to form multiple 66B blocks. This is specifically shown in FIG. 4. The multiple 66B blocks form the PCS bitstream. It should be understood that a FlexE service layer may also use more efficient 512B/513B encoding, and a PCS encoding manner is not limited in this embodiment of the present invention.

    [0087] S110 and S120 are described below when the CBR service data is OTN service data. In a specific example, obtaining the OTN service data specifically includes: obtaining an optical channel transport unit OTUK (Optical Channel Transport Unit) frame with FEC overhead, or obtaining an OTUCn frame without FEC overhead. As shown in FIG. 5, in a case of the OTUK frame, the FEC overhead (256 columns of FEC overhead at the back of the frame) in a 4080×4 frame structure of the OTUK frame may be first terminated, to obtain an optical channel data unit ODUK (Optical Channel Data Unit) frame, and then encoding is performed on the ODUK frame according to the 64B/66B format. Certainly, when the OTUK frame needs to be transparently transmitted, 64B/66B encoding may be directly performed without terminating the 256 columns of FEC overhead at the back. In a case of the OTUCn frame, encoding may be directly performed according to the 64B/66B format.

    [0088] In this embodiment of the present invention, the N timeslots of the FlexE frame that are used to transmit the PCS bitstream need to be determined, where N is a positive integer greater than or equal to 1. Determining the N timeslots may include: determining a quantity N of timeslots of the FlexE frame that are used to transmit the PCS bitstream, and determining locations of the N timeslots. The N timeslots of the FlexE frame that are used to transmit the PCS bitstream are timeslots that are of the FlexE frame and to which the PCS bitstream is to be mapped, or timeslots of the FlexE frame that are distributed for the PCS bitstream. The N timeslots of the FlexE frame that are used to transmit the PCS bitstream may be determined by the transmitter according to a configuration parameter in the transmitter, or may be determined according to a rate of the PCS bitstream. A total rate of the N timeslots should be greater than a rate of the CBR service data. For example, if the rate of the CBR service data is 10.4 Gbit/s, and a rate of each timeslot of the FlexE is 5 Gbit/s, three or more timeslots may be selected to carry the CBR service data.

    [0089] In S130, the rate adaptation code block is inserted in the PCS bitstream, to perform rate adaptation. A specific quantity of inserted rate adaptation code blocks may be determined by the rate of the PCS bitstream and the total rate of the N timeslots of the FlexE frame that are used to transmit the PCS bitstream (for example, determined by a difference value or a ratio relationship between the rate of the PCS bitstream and the total rate of the N timeslots of the FlexE frame that are used to transmit the PCS bitstream), or may be determined by using another parameter. This is not limited in this embodiment of the present invention. That is, a configuration parameter of the timeslot of the FlexE frame is first obtained, and then the timeslots (for example, N timeslots) of the FlexE frame that are occupied by the PCS bitstream are further determined according to the configuration parameter. It is necessary to ensure that the total rate of the timeslots of the FlexE frame that are distributed for the PCS bitstream is greater than or equal to the rate of the PCS bitstream. A difference between the total rate of the timeslots of the FlexE frame and the rate of the CBR service data is offset by the rate adaptation code block, and the adapted PCS bitstream is finally mapped to a corresponding timeslot of the FlexE frame.

    [0090] Correspondingly, S130 in which the rate adaptation code block is inserted in the PCS bitstream obtained by means of PCS encoding, to perform rate adaptation on the PCS bitstream includes:
    inserting the rate adaptation code block in the PCS bitstream according to the rate of the PCS bitstream and the total rate of the N timeslots of the FlexE frame that are used to transmit the PCS bitstream, so that the PCS bitstream in which the rate adaptation code block is inserted can be mapped to the N timeslots of the FlexE frame that are used to transmit the PCS bitstream.

    [0091] An idea of this embodiment of the present invention is performing PCS encoding on non-Ethernet CBR service data, and then transmitting the data in the FlexE. Therefore, a location of a rate adaptation code block inserted to perform rate adaptation is not limited. That is, regardless of a location of the rate adaptation code block in the PCS bitstream, the rate adaptation code block can be correctly recognized by using a synchronization header in PCS encoding, and therefore, transmission and receiving of the CBR service data is not affected.

    [0092] It should be understood that preferably, the rate adaptation code block is an idle (IDLE) code block. The rate adaptation code block may also be a control code block other than the idle code block.

    [0093] When encoding is performed by using the 64B/66B format, encoding may comply with a definition in the IEEE 802.3 standard. Sync header=01 indicates that this 66B code block is a data block obtained by performing encoding on CBR service data, and sync header=10 indicates that this 66B code block is a control code block (such as a rate adaptation code block). To recognize that the control code block is a FlexE overhead code block, an idle code block, or another code block, recognition further needs to be performed on a block type (BT) field or another field in the 66B code block. Optionally, (BT=0x1e) in the 66B control code block may be used as an idle code block, that is, the idle code block inserted to perform rate adaptation. That is, a 64B block after sync header=10 is idle.

    [0094] FIG. 6 shows a possible idle code block format in which Sync header=10 occupies two bits, BT=0x1e occupies eight bits, and each of other control bytes 0x00 occupies seven bits. It should be understood that a value filled in an idle code block is 0x07 on a Media Independent Interface (MII), and 0x07 is translated into 0x00 at a PCS.

    [0095] Optionally, when encoding is performed by using the 64B/66B format, there is also another idle encoding scheme. For example, when sync=10, another value may be used as a BT value, for example, BT=0x87 (as shown in FIG. 7A), BT=0x99 (as shown in FIG. 7B), or BT=0xAA (as shown in FIG. 7C). In addition, an idle control character with a finer granularity, such as a D byte (such as D0 and D1) shown in FIG. 7B or FIG. 7C, may be used for data transmission. A byte in a shadow area is an invalid part and not recognized, and a remaining control byte is filled with 0x00 to identify an idle character. In addition, optionally, insertion (or related deletion on a receiver side) of an idle code block may conform to a limitation on an Ethernet idle code block in the IEEE 802.3 standard. It should be understood that there may be various idle encoding schemes and insertion and deletion manners. The transmitter and the receiver may reach an agreement, so that the receiver can correctly perform decoding after the transmitter performs encoding.

    [0096] It should be understood that when the FlexE service layer uses more efficient 256B/257B encoding or 512B/513B encoding, accordingly, an idle code block is also encoded by using a 256B/257B format or a 512B/513B format. A specific implementation in which the FlexE service layer performs encoding by using another format is similar to that of 64B/66B encoding described above, and details are not described herein again.

    [0097] All timeslots of the FlexE are finally distributed to multiple PHYs, and some timeslots of the FlexE carry the PCS bitstream on which rate adaptation is performed. It should be understood that after the PCS bitstream is mapped and distributed to a PHY, related information about the CBR service data should be recorded, for example, a PHY to which the CBR service data is mapped, and a timeslot to which the PCS bitstream is mapped, so that the receiver is notified, and original CBR service data can be recovered by the receiver.

    [0098] Then, in S150, the FlexE frame is sent to the receiver by using at least one physical layer device PHY. The FlexE overhead transmitted by using the at least one PHY includes information used to indicate the N timeslots corresponding to the PCS bitstream of the CBR service data. The receiver is notified of the information, so that the receiver can recognize a PHY on which the CBR service data is located and a timeslot of the FlexE frame, and the original CBR service data can be recovered.

    [0099] It should be understood that the at least one PHY is all PHYs in a physical connection group, and the transmitter sends the PCS bitstream by using the physical connection group. The information about the N timeslots corresponding to the CBR service data may be carried in FlexE overhead of a PHY transmitting the CBR service data, may be carried in FlexE overhead of all PHYs in the physical connection group, or may be carried in FlexE overhead of a specific PHY. This is not limited in this embodiment of the present invention.

    [0100] In addition, the FlexE overhead may further include information indicating a sequence of a PHY and/or information indicating a type of the CBR service data. Therefore, the receiver can recover the original CBR service data in sequence according to the sequence of the PHY; or the receiver can distinguish the CBR service data from multiple pieces of data according to the information about the type of the CBR service data.

    [0101] Optionally, in this embodiment of the present invention, multiple timeslots of the FlexE form a master calendar layer of the FlexE, and after the adapted PCS bitstream is mapped to the N timeslots of the FlexE, the method further includes:
    dividing the master calendar layer of the FlexE into multiple sub-calendar layers by means of polling, where each sub-calendar layer forms one PHY.

    [0102] Specifically, the FlexE service layer may use a Time Division Multiplexing (TDM) framing technology that is based on PCS encoding. For example, the FlexE service layer may include a master calendar (Master calendar) layer whose length is consecutive N×20 66B blocks. The master calendar layer has N×20 timeslots (Calendar Slot) in a unit of a 66B block. Every 20 timeslots, that is, 20 66B blocks, are corresponding to one sub-calendar layer.

    [0103] In this embodiment of the present invention, the PCS bitstream on which rate adaptation is performed is mapped to some specific timeslots of the FlexE service layer. For example, as shown in FIG. 8, the PCS bitstream may be mapped to the first three timeslots (that is, the first three 66B blocks) of the first sub-calendar layer shown by a shadow area. Another timeslot of the master calendar layer may carry other data. Then, the master calendar layer with the consecutive N×20 66B blocks is distributed to N sub-calendar layers (Sub-calendar) by means of polling, and each sub-calendar layer forms one PHY. After one group of N×20 66B blocks are distributed, another group of N×20 66B blocks continue to be sent. In this way, each PHY forms a structure with multiple consecutive 20 66B blocks. If the FlexE service layer is implemented when each PHY is 100 GE, bandwidth of each timeslot is about 5 Gbit/s.

    [0104] It should be understood that the PCS bitstream on which rate adaptation is performed may be mapped to timeslots of only one sub-calendar layer, and finally sent by using one PHY; or the PCS bitstream on which rate adaptation is performed may be mapped to timeslots of multiple sub-calendar layers, and finally sent by using multiple PHYs. This is not limited in this embodiment of the present invention.

    [0105] It should be further understood that the FlexE adds FlexE overhead to each PHY, so as to identify a FlexE frame structure, to identify a sequence of each PHY, to identify a correspondence between CBR service data and a timeslot, to identify a type of CBR service data, and the like. Specifically, for each PHY of the FlexE, FlexE overhead of each PHY is inserted at a specific frequency or by using a specific quantity (such as 1024) of 20×66B code blocks as a period. The FlexE overhead may be one type of 66B control code block. For example, an O code block may be used to identify and transmit overhead. As shown in FIG. 9, an O code block that is a 66B control code block and whose BT=4B and O=0x5 is used. D1, D2, and D3 of the O code block may be used to define various functions of the overhead. A variation of the O code block may also be used. For example, a reserved 0x000_0000 field may also be used as a part of the FlexE overhead. Optionally, the FlexE overhead may be another type of 66B control code block, such as an S code block whose BT=0x78. Optionally, the FlexE overhead may be carried by using a combination of an O code block in 66B control code blocks and a data code block whose sync=01, or the FlexE overhead may be carried by using a combination of an S code block in 66B control code blocks and a data code block whose sync=01. A specific overhead scheme is not limited in the present invention.

    [0106] A client port (Client Port) field may be used to identify the correspondence between CBR service data and a timeslot, and a client type (Client Type) field may be used to identify the type of the CBR service data. All fields of an O code block are cyclically distributed according to the foregoing period. For example, Table 2 shows 24 bits corresponding to D1, D2, and D3 of the O code block. Fields such as Client Type, #PHYs, and This PHY are transmitted in the O code block in the first period, Client Port and information about a part of management channels are transmitted in the O code block in the second period, information about a remaining part of management channels (Management Channel) is transmitted in the O code block in the third period, and information such as Reserved and CRC-8 is transmitted in the O code block in the fourth period. Information about the whole FlexE overhead may be obtained by combining O code blocks in the four periods.



    [0107] Optionally, in this embodiment of the present invention, the FlexE overhead further includes information indicating a ratio (or a difference) between the rate of the CBR service data and the total rate of the N timeslots of the FlexE frame that are used to transmit the PCS bitstream. The rate herein is a bit rate (bit rate).

    [0108] Specifically, in this embodiment of the present invention, transmission of some CBR service data requires clock transparency. However, a manner in which rate adaptation is performed by only inserting an idle code block cannot provide clock transparency. Therefore, when using the manner in this embodiment of the present invention to insert the idle code block in the PCS bitstream and map the PCS bitstream to the FlexE, the transmitter may perform comparison between the rate of the CBR service data and the total rate of the N timeslots of the FlexE frame, so as to obtain information about a ratio between the bit rates of the two, and add the information indicating the ratio between the bit rates to the FlexE overhead.

    [0109] Optionally, for obtaining the information about the ratio between the bit rates of the two, a quantity of bit blocks (such as a quantity in a unit of an 8-bit block, or a quantity in a unit of a bit block of another size such as 16 bits or 32 bits) of CBR service data that can be transmitted in a specific FlexE frame period may be calculated; and then information about the quantity of bit blocks is inserted in the FlexE overhead in real time. The information about the quantity of bit blocks can represent in real time the ratio of the rate of the CBR service data to the total rate of the N timeslots of the FlexE frame that are used to transmit the PCS bitstream.

    [0110] Optionally, more accurately, information about a quantity of bits of CBR service data in a specific FlexE frame period may be added in real time to the information that is about the quantity of bit blocks and that is described above, and the information about the quantity of bit blocks in the period and the information about the quantity of bits are separately inserted in some fields of the FlexE overhead, so as to represent clock information in real time. It should be understood that in this embodiment of the present invention, the ratio information may include only the information about the quantity of bits of the CBR service data in the specific FlexE frame period.

    [0111] Accordingly, the FlexE overhead further includes the information indicating the quantity of bit blocks of the CBR service data in the specific FlexE frame period and/or the information indicating the quantity of bits of the CBR service data in the specific FlexE frame period.

    [0112] The receiver obtains, from the FlexE overhead by means of parsing, the information about the quantity of bit blocks of the CBR service data transmitted in the specific FlexE frame period. When higher clock accuracy needs to be provided, the information about the quantity of bits of the CBR service data transmitted in the specific FlexE frame period is obtained from the FlexE overhead by means of parsing. In this way, clock information based on a bit block or based on a bit is obtained. An original clock of the CBR service data is recovered according to the obtained information, and the CBR service data is recovered still according to the method in this embodiment of the present invention.

    [0113] Optionally, in this embodiment of the present invention, S150 in which the PCS bitstream is sent to the receiver by using at least one physical layer device PHY includes:

    splitting each PHY in the at least one PHY, and separately adding Alignment Marker (AM) overhead to multiple PHY branches obtained by splitting; and

    sending the PCS bitstream to the receiver by using the multiple PHY branches.



    [0114] Specifically, each PHY including the FlexE overhead may further be split, the AM overhead is added, the multiple PHY branches obtained by splitting are aligned, and then the PCS bitstream is sent in the multiple PHY branches concurrently, thereby further improving data transmission efficiency.

    [0115] Therefore, according to the data transmission method in this embodiment of the present invention, PCS encoding is performed on CBR service data, a rate adaptation code block is inserted in a PCS bitstream obtained by means of encoding, so that a rate of the PCS bitstream in which the rate adaptation code block is inserted is adapted to a FlexE, FlexE overhead including related information about the CBR service data is added to the PCS bitstream, and then the PCS bitstream is sent. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0116] It should be understood that sequence numbers of the foregoing processes do not mean execution sequences. Execution sequences of the processes should be determined according to functions and internal logic of the processes, and shall not set any limitation on implementation processes of the embodiments of the present invention.

    [0117] FIG. 10 shows a data transmission method 200 according to another embodiment of the present invention. As shown in FIG. 10, the method 200 includes:

    S210. Obtain constant bit rate CBR service data.

    S220. Map the CBR service data to an intermediate frame, where a rate of a PCS bitstream obtained by performing physical coding sublayer PCS encoding on the intermediate frame is equal to a total rate of N timeslots of a flexible Ethernet FlexE frame.

    S230. Perform PCS encoding on the intermediate frame.

    S240. Map the PCS bitstream obtained by means of PCS encoding to the N timeslots of the FlexE frame.

    S250. Send the FlexE frame, where FlexE overhead of the FlexE frame includes information used to indicate the N timeslots corresponding to the PCS bitstream.



    [0118] Therefore, according to the data transmission method in this embodiment of the present invention, CBR service data is mapped to an intermediate frame, the intermediate frame is used to adjust a rate, so that a rate of a PCS bitstream obtained by performing PCS encoding on the intermediate frame is adapted to a total rate of corresponding timeslots of a FlexE frame, then the PCS bitstream obtained by means of encoding is distributed to a PHY, FlexE overhead is added to the PCS bitstream, and then the PCS bitstream is sent. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0119] Specifically, in the embodiment describing the method 100, a scheme in which a rate adaptation code block (such as an idle code block) is inserted to perform rate adaptation is used. The method 200 mainly describes a scheme in which rate adaptation is performed without using a rate adaptation code block. The CBR service data is first obtained, and the N timeslots of the FlexE frame that are used to transmit the CBR service data are determined according to a configuration parameter. Then, a CBR service is mapped to the intermediate frame, and the intermediate frame includes an overhead area and a payload area, and can adapt service data to a service layer, so that after PCS encoding, a rate of the intermediate frame is adapted to the total rate of the N timeslots of the FlexE frame that are occupied by the intermediate frame. The intermediate frame may have a TDM frame structure, or may have another frame structure, and this is not limited in this embodiment of the present invention.

    [0120] Optionally, in this embodiment of the present invention, S230 in which the CBR service data is mapped to the intermediate frame includes:
    mapping the CBR service data to the intermediate frame by using an asynchronous mapping procedure AMP or a generic mapping procedure GMP, and adding overhead of the AMP or overhead of the GMP to the intermediate frame.

    [0121] Specifically, the CBR service data may be mapped to the intermediate frame by using an Asynchronous Mapping Procedure (AMP), or by using a Generic Mapping Procedure (GMP). Correspondingly, the overhead of the AMP is added to the intermediate frame if mapping is performed by using the AMP, or the overhead of the GMP is added if mapping is performed by using the GMP. Preferably, the CBR service data may be mapped to an intermediate frame with a time division multiplexing TDM frame structure.

    [0122] It should be understood that the mapping the CBR service data to the intermediate frame may be performed according to a rate of the CBR service data and the total rate of the N timeslots of the FlexE frame that are used to transmit the CBR service data, so that the PCS bitstream obtained by performing PCS encoding on the intermediate frame can be mapped to the N timeslots of the FlexE frame.

    [0123] After the intermediate frame is obtained, PCS encoding is performed on the intermediate frame, to obtain the PCS bitstream. For example, data of the intermediate frame is divided into 64B blocks, and a 2-bit Sync header is added to form a 66B bitstream. Sync header=01 indicates that the 64B blocks are data blocks. Then, the 66B blocks are inserted in a timeslot configured in the FlexE. This step and a subsequent step are similar to subsequent steps in the method 100, and details are not described herein again. It should be understood that the FlexE overhead including at least one PHY signal of the CBR service data may further include information indicating a sequence of a PHY and information identifying a type of the CBR service data.

    [0124] Optionally, in this embodiment of the present invention, the FlexE overhead further includes information indicating a sequence of a PHY and/or information indicating a type of the CBR service data.

    [0125] Optionally, in this embodiment of the present invention, the performing PCS encoding on the intermediate frame includes:
    performing 64B/66B encoding, 256B/257B encoding, or 512B/513B encoding on the intermediate frame, to obtain the PCS bitstream.

    [0126] Optionally, in this embodiment of the present invention, the CBR service data is optical transport network OTN service data or synchronous digital hierarchy SDH service data.

    [0127] In addition, if the CBR service data has a specific frame structure and has a specific frame header indication, a frame header of the CBR service data may be first recognized, and a padding byte with a specific pattern is inserted in a trailer of a frame of the CBR service data, so that rate adaptation is performed on the CBR service data, and after PCS encoding is performed, a rate of the CBR service data to which the padding byte with the specific pattern is added is adapted to a total rate of timeslots of the FlexE frame that are occupied by the CBR service data. The filled specific pattern should be different from the frame header of the CBR service data, so that the receiver can recognize the pattern, thereby recovering original CBR service data.

    [0128] Therefore, according to the data transmission method in this embodiment of the present invention, CBR service data is mapped to an intermediate frame, the intermediate frame is used to adjust a rate, so that a rate of a PCS bitstream obtained by performing PCS encoding on the intermediate frame is adapted to a total rate of corresponding timeslots of a FlexE frame, then the PCS bitstream obtained by means of encoding is distributed to a PHY, FlexE overhead is added to the PCS bitstream, and then the PCS bitstream is sent. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0129] It should be understood that sequence numbers of the foregoing processes do not mean execution sequences. Execution sequences of the processes should be determined according to functions and internal logic of the processes, and shall not set any limitation on implementation processes of the embodiments of the present invention.

    [0130] With reference to FIG. 3 to FIG. 10, the data transmission methods in the embodiments of the present invention are described in detail from a transmitter perspective, and a data transmission method in an embodiment of the present invention is described below from a receiver perspective.

    [0131] FIG. 11 shows a schematic flowchart of a data transmission method 300 according to still another embodiment of the present invention. The method 300 is executed by a receiver, and is corresponding to the method 100 that is described above and that is executed by a transmitter. The method 300 includes:

    S310. Receive a flexible Ethernet FlexE frame, where the FlexE frame includes a physical coding sublayer PCS bitstream corresponding to constant bit rate CBR service data, and FlexE overhead of the FlexE frame includes information used to indicate N timeslots of the FlexE frame that are corresponding to the PCS bitstream.

    S320. Obtain, from the N timeslots of the FlexE frame by means of parsing, the PCS bitstream including a rate adaptation code block according to the information used to indicate the N timeslots of the FlexE frame that are corresponding to the PCS bitstream.

    S330. Delete the rate adaptation code block in the PCS bitstream.

    S340. Perform PCS decoding on the PCS bitstream from which the rate adaptation code block is deleted, to obtain the CBR service data.



    [0132] Therefore, according to the data transmission method in this embodiment of the present invention, a FlexE frame is received, timeslots of the FlexE frame that are corresponding to CBR service data are determined according to information that is included in FlexE overhead and that indicates a correspondence between a PCS bitstream and a timeslot, a PCS bitstream including a rate adaptation code block is obtained from the timeslots by means of parsing, the rate adaptation code block in the PCS bitstream is deleted, and PCS decoding is performed on the bitstream from which the rate adaptation code block is deleted, to obtain the CBR service data. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0133] Specifically, the receiver receives the FlexE frame from a transmitter by using at least one PHY, recognizes FlexE PCS encoding (for example, 64B/66B encoding), and may obtain each PHY signal of the FlexE after parsing AM overhead and performing alignment. Then, FlexE overhead of each PHY signal is parsed, and the FlexE overhead may include information such as a sequence of a PHY, a correspondence between a timeslot and a PCS bitstream corresponding to the CBR service data, and a type of the CBR service data. According to the foregoing FlexE overhead, the receiver may recover a sorting sequence of each PHY, obtain, from the corresponding timeslots of the FlexE by means of parsing, the PCS bitstream including the rate adaptation code block, and recover original CBR service data after deleting the rate adaptation code block and performing decoding.

    [0134] Optionally, in this embodiment of the present invention, a quantity of rate adaptation code blocks included in the PCS bitstream is determined by the transmitter according to a rate of the PCS bitstream and a total rate of the N timeslots of the FlexE frame that are used to transmit the PCS bitstream.

    [0135] Optionally, in this embodiment of the present invention, the FlexE overhead further includes information indicating a quantity of bit blocks of the CBR service data in a specific FlexE frame period and/or information indicating a quantity of bits of the CBR service data in a specific FlexE frame period.

    [0136] The deleting the rate adaptation code block in the PCS bitstream includes:
    deleting the rate adaptation code block in the PCS bitstream according to the information about a quantity of bit blocks and/or the information about a quantity of bits.

    [0137] Optionally, in this embodiment of the present invention, the rate adaptation code block is an IDLE code block.

    [0138] Optionally, in this embodiment of the present invention, the FlexE overhead further includes information indicating a sequence of a PHY and/or information indicating a type of the CBR service data.

    [0139] Optionally, in this embodiment of the present invention, S340 in which PCS decoding is performed on the PCS bitstream from which the rate adaptation code block is deleted, to obtain the CBR service data includes:
    performing 64B/66B decoding, 256B/257B decoding, or 512B/513B decoding on the PCS bitstream from which the rate adaptation code block is deleted, to obtain the CBR service data.

    [0140] Optionally, in this embodiment of the present invention, S310 in which the flexible Ethernet FlexE frame is received includes:

    receiving PHY branches from a transmitter, where each of the PHY branches includes alignment marker AM overhead; and

    combining multiple PHY branches into at least one PHY according to the AM overhead, where the at least one PHY signal includes the PCS bitstream.



    [0141] Optionally, in this embodiment of the present invention, the CBR service data is optical transport network OTN service data or synchronous digital hierarchy SDH service data.

    [0142] Therefore, according to the data transmission method in this embodiment of the present invention, a FlexE frame is received, timeslots of the FlexE frame that are corresponding to CBR service data are determined according to information that is included in FlexE overhead and that indicates a correspondence between a PCS bitstream and a timeslot, a PCS bitstream including a rate adaptation code block is obtained from the timeslots by means of parsing, the rate adaptation code block in the PCS bitstream is deleted, and PCS decoding is performed on the bitstream from which the rate adaptation code block is deleted, to obtain the CBR service data. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0143] It should be understood that sequence numbers of the foregoing processes do not mean execution sequences. Execution sequences of the processes should be determined according to functions and internal logic of the processes, and shall not set any limitation on implementation processes of the embodiments of the present invention.

    [0144] It should be further understood that the receiver in this embodiment of the present invention may be corresponding to the receiver in the method 100. Operations and/or functions executed in the method 300 may be considered as inverse operations of corresponding procedures in the method 100. For brevity, details are not described herein.

    [0145] FIG. 12 shows a schematic flowchart of a data transmission method 400 according to still another embodiment of the present invention. The method 400 is executed by a receiver, and is corresponding to the method 200 that is described above and that is executed by a transmitter. The method 400 includes:

    S410. Receive a flexible Ethernet FlexE frame, where the FlexE frame includes a physical coding sublayer PCS bitstream corresponding to constant bit rate CBR service data, and FlexE overhead of the FlexE frame includes information used to indicate N timeslots of the FlexE frame that are corresponding to the PCS bitstream.

    S420. Obtain, from the N timeslots of the FlexE frame by means of parsing, the PCS bitstream including a rate adaptation code block according to the information used to indicate the N timeslots of the FlexE frame that are corresponding to the PCS bitstream.

    S430. Perform PCS decoding on the PCS bitstream, to obtain an intermediate frame.

    S440. Obtain the mapped CBR service data from the intermediate frame.



    [0146] Therefore, according to the data transmission method in this embodiment of the present invention, a FlexE frame is received, timeslots of the FlexE frame that are corresponding to CBR service data are determined according to information that is included in FlexE overhead and that indicates a correspondence between a PCS bitstream and a timeslot, and an intermediate frame is obtained from the timeslots by means of parsing, to obtain the CBR service data. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0147] Optionally, in this embodiment of the present invention, the CBR service data is mapped to the intermediate frame by using an asynchronous mapping procedure AMP or a generic mapping procedure GMP, and the intermediate frame includes overhead of the AMP or overhead of the GMP.

    [0148] Optionally, in this embodiment of the present invention, the FlexE overhead further includes information indicating a sequence of a PHY and/or information indicating a type of the CBR service data.

    [0149] Optionally, in this embodiment of the present invention, S430 in which PCS decoding is performed on the PCS bitstream, to obtain the intermediate frame includes:
    performing 64B/66B decoding, 256B/257B decoding, or 512B/513B decoding on the PCS bitstream, to obtain the intermediate frame.

    [0150] Optionally, in this embodiment of the present invention, the CBR service data is optical transport network OTN service data or synchronous digital hierarchy SDH service data.

    [0151] Optionally, in this embodiment of the present invention, S410 in which the flexible Ethernet FlexE frame is received includes:

    receiving PHY branches from a transmitter, where each of the PHY branches includes alignment marker AM overhead; and

    combining multiple PHY branches into at least one PHY according to the AM overhead, where the at least one PHY signal includes the PCS bitstream.



    [0152] Therefore, according to the data transmission method in this embodiment of the present invention, a FlexE frame is received, timeslots of the FlexE frame that are corresponding to CBR service data are determined according to information that is included in FlexE overhead and that indicates a correspondence between a PCS bitstream and a timeslot, and an intermediate frame is obtained from the timeslots by means of parsing, to obtain the CBR service data. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0153] It should be understood that sequence numbers of the foregoing processes do not mean execution sequences. Execution sequences of the processes should be determined according to functions and internal logic of the processes, and shall not set any limitation on implementation processes of the embodiments of the present invention.

    [0154] It should be further understood that the receiver in this embodiment of the present invention may be corresponding to the receiver in the method 200. Operations and/or functions executed in the method 400 may be considered as inverse operations of corresponding procedures in the method 200. For brevity, details are not described herein.

    [0155] The data transmission methods in the embodiments of the present invention are described above in detail, and a transmitter and a receiver according to embodiments of the present invention are described below in detail with reference to FIG. 13 to FIG. 20.

    [0156] FIG. 13 shows a schematic block diagram of a transmitter 500 according to an embodiment of the present invention. The transmitter 500 is corresponding to an execution body of the method 100, and the transmitter 500 includes:

    an obtaining module 510, configured to obtain constant bit rate CBR service data;

    an encoding module 520, configured to perform physical coding sublayer PCS encoding on the CBR service data obtained by the obtaining module 510;

    a rate adaptation module 530, configured to insert a rate adaptation code block in a PCS bitstream obtained by the encoding module 520, to perform rate adaptation on the PCS bitstream;

    a mapping module 540, configured to map the PCS bitstream adapted by the rate adaptation module 530 to N timeslots of a flexible Ethernet FlexE frame, where N is a positive integer greater than or equal to 1; and

    a sending module 550, configured to send the FlexE frame, where FlexE overhead of the FlexE frame includes information used to indicate the N timeslots corresponding to the PCS bitstream.



    [0157] Therefore, the transmitter in this embodiment of the present invention performs PCS encoding on CBR service data, inserts a rate adaptation code block in a PCS bitstream obtained by means of encoding, so that a rate of the PCS bitstream in which the rate adaptation code block is inserted is adapted to a FlexE, adds FlexE overhead including related information about the CBR service data to the PCS bitstream, and then sends the PCS bitstream. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0158] Optionally, in this embodiment of the present invention, the rate adaptation module 530 is specifically configured to:
    insert the rate adaptation code block in the PCS bitstream according to a rate of the PCS bitstream and a total rate of the N timeslots of the FlexE frame that are used to transmit the PCS bitstream, so that the PCS bitstream in which the rate adaptation code block is inserted can be mapped to the N timeslots of the FlexE frame that are used to transmit the PCS bitstream.

    [0159] Optionally, in this embodiment of the present invention, the FlexE overhead further includes information indicating a ratio of a rate of the CBR service data to the total rate of the N timeslots of the FlexE frame that are used to transmit the PCS bitstream.

    [0160] Optionally, in this embodiment of the present invention, the FlexE overhead further includes information indicating a quantity of bit blocks of the CBR service data in a specific FlexE frame period and/or information indicating a quantity of bits of the CBR service data in a specific FlexE frame period.

    [0161] Optionally, in this embodiment of the present invention, the obtaining module 510 is specifically configured to:

    receive a CBR service data frame, where the data frame includes forward error correction FEC overhead;

    perform error correction on the data frame according to the FEC overhead; and

    terminate the FEC overhead in the corrected data frame, to obtain the CBR service data.



    [0162] Optionally, in this embodiment of the present invention, the rate adaptation code block is an IDLE code block.

    [0163] Optionally, in this embodiment of the present invention, the FlexE overhead further includes information indicating a sequence of a PHY and/or information indicating a type of the CBR service data.

    [0164] Optionally, in this embodiment of the present invention, the encoding module 520 is specifically configured to:
    perform 64B/66B encoding, 256B/257B encoding, or 512B/513B encoding on the CBR service data, to obtain the PCS bitstream.

    [0165] Optionally, in this embodiment of the present invention, the CBR service data is optical transport network OTN service data or synchronous digital hierarchy SDH service data.

    [0166] Optionally, in this embodiment of the present invention, the sending module 550 is specifically configured to:

    split each PHY in at least one PHY, and separately add alignment marker AM overhead to multiple PHY branches obtained by splitting; and

    send the FlexE frame to a receiver by using the multiple PHY branches.



    [0167] Optionally, in this embodiment of the present invention, multiple timeslots of the FlexE frame form a master calendar layer of the FlexE, and the transmitter 500 further includes:
    a dividing module, configured to: after the adapted PCS bitstream is mapped to the N timeslots of the FlexE frame, divide the master calendar layer of the FlexE into multiple sub-calendar layers by means of polling, where each sub-calendar layer forms one PHY.

    [0168] It should be understood that the transmitter 500 according to this embodiment of the present invention may correspondingly execute the data transmission method 100 in the embodiment of the present invention, and the foregoing and other operations and/or functions of the modules in the transmitter 500 are respectively used to implement corresponding procedures of the methods in FIG. 3 and FIG. 10. For brevity, details are not described herein again.

    [0169] Therefore, the transmitter in this embodiment of the present invention performs PCS encoding on CBR service data, inserts a rate adaptation code block in a PCS bitstream obtained by means of encoding, so that a rate of the PCS bitstream in which the rate adaptation code block is inserted is adapted to a FlexE, adds FlexE overhead including related information about the CBR service data to the PCS bitstream, and then sends the PCS bitstream. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0170] FIG. 14 shows a schematic block diagram of a transmitter 600 according to an embodiment of the present invention. The transmitter 600 is corresponding to an execution body of the method 200, and the transmitter 600 includes:

    an obtaining module 610, configured to obtain constant bit rate CBR service data;

    a first mapping module 620, configured to map the CBR service data obtained by the obtaining module 610 to an intermediate frame, where a rate of a PCS bitstream obtained by performing physical coding sublayer PCS encoding on the intermediate frame is equal to a total rate of N timeslots of a flexible Ethernet FlexE frame;

    an encoding module 630, configured to perform PCS encoding on the intermediate frame obtained by the first mapping module 620;

    a second mapping module 640, configured to map the PCS bitstream obtained by the encoding module 630 to the N timeslots of the FlexE frame; and

    a sending module 650, configured to send the FlexE frame, where FlexE overhead of the FlexE frame includes information used to indicate the N timeslots corresponding to the PCS bitstream.



    [0171] Therefore, the transmitter in this embodiment of the present invention maps CBR service data to an intermediate frame, adjusts a rate by using the intermediate frame, so that a rate of a PCS bitstream obtained by performing PCS encoding on the intermediate frame is adapted to a total rate of corresponding timeslots of a FlexE frame, and then the PCS bitstream obtained by means of encoding is distributed to a PHY, adds FlexE overhead to the PCS bitstream, and then sends the PCS bitstream. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0172] Optionally, in this embodiment of the present invention, the first mapping module 620 is specifically configured to:
    map the CBR service data to the intermediate frame by using an asynchronous mapping procedure AMP or a generic mapping procedure GMP, and add overhead of the AMP or overhead of the GMP to the intermediate frame.

    [0173] Optionally, in this embodiment of the present invention, the FlexE overhead further includes information indicating a sequence of a PHY and/or information indicating a type of the CBR service data.

    [0174] Optionally, in this embodiment of the present invention, the encoding module 630 is specifically configured to:
    perform 64B/66B encoding, 256B/257B encoding, or 512B/513B encoding on the intermediate frame, to obtain the PCS bitstream.

    [0175] Optionally, in this embodiment of the present invention, the CBR service data is optical transport network OTN service data or synchronous digital hierarchy SDH service data.

    [0176] It should be understood that the transmitter 600 according to this embodiment of the present invention may correspondingly execute the data transmission method 200 in the embodiment of the present invention, and the foregoing and other operations and/or functions of the modules in the transmitter 600 are respectively used to implement corresponding procedures of the methods in FIG. 3 and FIG. 10. For brevity, details are not described herein again.

    [0177] Therefore, the transmitter in this embodiment of the present invention performs PCS encoding on CBR service data, inserts a rate adaptation code block in a PCS bitstream obtained by means of encoding, so that a rate of the PCS bitstream in which the rate adaptation code block is inserted is adapted to a FlexE, adds FlexE overhead including related information about the CBR service data to the PCS bitstream, and then sends the PCS bitstream. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0178] FIG. 15 shows a schematic block diagram of a receiver 700 according to an embodiment of the present invention. The receiver 700 is corresponding to an execution body of the method 300, and the receiver 700 includes:

    a receiving module 710, configured to receive a flexible Ethernet FlexE frame, where the FlexE frame includes a physical coding sublayer PCS bitstream corresponding to constant bit rate CBR service data, and FlexE overhead of the FlexE frame includes information used to indicate N timeslots of the FlexE frame that are corresponding to the PCS bitstream;

    a parsing module 720, configured to obtain, from the N timeslots of the FlexE frame received by the receiving module 710 and by means of parsing, the PCS bitstream including a rate adaptation code block according to the information used to indicate the N timeslots of the FlexE frame that are corresponding to the PCS bitstream;

    a deletion module 730, configured to delete the rate adaptation code block in the PCS bitstream obtained by means of parsing by the parsing module 720; and

    a decoding module 740, configured to perform PCS decoding on the PCS bitstream that is obtained by the deletion module 730 and from which the rate adaptation code block is deleted, to obtain the CBR service data.



    [0179] Therefore, the receiver in this embodiment of the present invention receives a FlexE frame, determines, according to information that is included in FlexE overhead and that indicates a correspondence between a PCS bitstream and a timeslot, timeslots of the FlexE frame that are corresponding to CBR service data, obtains, from the timeslots by means of parsing, a PCS bitstream including a rate adaptation code block, deletes the rate adaptation code block in the PCS bitstream, and performs PCS decoding on the bitstream from which the rate adaptation code block is deleted, to obtain the CBR service data. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0180] Optionally, in this embodiment of the present invention, a quantity of rate adaptation code blocks included in the PCS bitstream is determined by the transmitter according to a rate of the PCS bitstream and a total rate of the N timeslots of the FlexE frame that are used to transmit the PCS bitstream.

    [0181] Optionally, in this embodiment of the present invention, the FlexE overhead further includes information indicating a quantity of bit blocks of the CBR service data in a specific FlexE frame period and/or information indicating a quantity of bits of the CBR service data in a specific FlexE frame period.

    [0182] The deletion module 730 is specifically configured to:
    delete the rate adaptation code block in the PCS bitstream according to the information about a quantity of bit blocks and/or the information about a quantity of bits.

    [0183] Optionally, in this embodiment of the present invention, the rate adaptation code block is an IDLE code block.

    [0184] Optionally, in this embodiment of the present invention, the FlexE overhead further includes information indicating a sequence of a PHY and/or information indicating a type of the CBR service data.

    [0185] Optionally, in this embodiment of the present invention, the decoding module 740 is specifically configured to:
    perform 64B/66B decoding, 256B/257B decoding, or 512B/513B decoding on the PCS bitstream from which the rate adaptation code block is deleted, to obtain the CBR service data.

    [0186] Optionally, in this embodiment of the present invention, the CBR service data is optical transport network OTN service data or synchronous digital hierarchy SDH service data.

    [0187] Optionally, in this embodiment of the present invention, the receiving module 710 is specifically configured to:

    receive PHY branches from a transmitter, where each of the PHY branches includes alignment marker AM overhead; and

    combine multiple PHY branches into at least one PHY according to the AM overhead, where the at least one PHY signal includes the FlexE frame.



    [0188] It should be understood that the receiver 700 according to this embodiment of the present invention may correspondingly execute the data transmission method 300 in the embodiment of the present invention, and the foregoing and other operations and/or functions of the modules in the receiver 700 are respectively used to implement corresponding procedures of the methods in FIG. 10 and FIG. 11. For brevity, details are not described herein again.

    [0189] Therefore, the receiver in this embodiment of the present invention receives a FlexE frame, determines, according to information that is included in FlexE overhead and that indicates a correspondence between a PCS bitstream and a timeslot, timeslots of the FlexE frame that are corresponding to CBR service data, obtains, from the timeslots by means of parsing, a PCS bitstream including a rate adaptation code block, deletes the rate adaptation code block in the PCS bitstream, and performs PCS decoding on the bitstream from which the rate adaptation code block is deleted, to obtain the CBR service data. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0190] FIG. 16 shows a schematic block diagram of a receiver 800 according to an embodiment of the present invention. The receiver 800 is corresponding to an execution body of the method 400, and the receiver 800 includes:

    a receiving module 810, configured to receive a flexible Ethernet FlexE frame, where the FlexE frame includes a physical coding sublayer PCS bitstream corresponding to constant bit rate CBR service data, and FlexE overhead of the FlexE frame includes information used to indicate N timeslots of the FlexE frame that are corresponding to the PCS bitstream;

    a parsing module 820, configured to obtain, from the N timeslots of the FlexE frame received by the receiving module 810 and by means of parsing, the PCS bitstream including a rate adaptation code block according to the information used to indicate the N timeslots of the FlexE frame that are corresponding to the PCS bitstream;

    a decoding module 830, configured to perform PCS decoding on the PCS bitstream obtained by means of parsing by the parsing module 820, to obtain an intermediate frame; and

    a processing module 840, configured to obtain the mapped CBR service data from the intermediate frame obtained by the decoding module 830.



    [0191] Therefore, the receiver in this embodiment of the present invention receives a FlexE frame, determines, according to information that is included in FlexE overhead and that indicates a correspondence between a PCS bitstream and a timeslot, timeslots of the FlexE frame that are corresponding to CBR service data, and obtains, by means of parsing, an intermediate frame from the timeslots, to obtain the CBR service data. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0192] Optionally, in this embodiment of the present invention, the CBR service data is mapped to the intermediate frame by using an asynchronous mapping procedure AMP or a generic mapping procedure GMP, and the intermediate frame includes overhead of the AMP or overhead of the GMP.

    [0193] Optionally, in this embodiment of the present invention, the FlexE overhead further includes information indicating a sequence of a PHY and/or information indicating a type of the CBR service data.

    [0194] Optionally, in this embodiment of the present invention, the decoding module 830 is specifically configured to:
    perform 64B/66B decoding, 256B/257B decoding, or 512B/513B decoding on the PCS bitstream, to obtain the intermediate frame.

    [0195] Optionally, in this embodiment of the present invention, the CBR service data is optical transport network OTN service data or synchronous digital hierarchy SDH service data.

    [0196] Optionally, in this embodiment of the present invention, the receiving module 810 is specifically configured to:

    receive PHY branches from a transmitter, where each of the PHY branches includes alignment marker AM overhead; and

    combine multiple PHY branches into at least one PHY according to the AM overhead, where the at least one PHY signal includes the FlexE frame.



    [0197] It should be understood that the receiver 800 according to this embodiment of the present invention may correspondingly execute the data transmission method 400 in the embodiment of the present invention, and the foregoing and other operations and/or functions of the modules in the receiver 800 are respectively used to implement corresponding procedures of the methods in FIG. 10 and FIG. 11. For brevity, details are not described herein again.

    [0198] Therefore, the receiver in this embodiment of the present invention receives a FlexE frame, determines, according to information that is included in FlexE overhead and that indicates a correspondence between a PCS bitstream and a timeslot, timeslots of the FlexE frame that are corresponding to CBR service data, and obtains, by means of parsing, an intermediate frame from the timeslots, to obtain the CBR service data. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0199] An embodiment of the present invention further provides a transmitter, including a processor, a memory, and a transceiver.

    [0200] The memory is configured to store an instruction, the processor is configured to execute the instruction stored by the memory, so as to control the transceiver to receive and send a signal, and when the processor executes the instruction stored by the memory, the transmitter is configured to perform the method 100.

    [0201] Specifically, as shown in FIG. 17, an embodiment of the present invention further provides a transmitter 900. The transmitter 900 includes a processor 901, a memory 902, a bus system 903, and a transceiver 904. The processor 901, the memory 902, and the transceiver 904 are connected by using the bus system 903. The memory 902 is configured to store an instruction, and the processor 901 is configured to execute the instruction stored by the memory 902. The transceiver 904 is configured to:
    obtain constant bit rate CBR service data.

    [0202] The processor 901 is configured to:

    perform physical coding sublayer PCS encoding on the CBR service data;

    insert a rate adaptation code block in a PCS bitstream obtained by means of PCS encoding, to perform rate adaptation on the PCS bitstream; and

    map the adapted PCS bitstream to N timeslots of a flexible Ethernet FlexE frame, where N is a positive integer greater than or equal to 1.



    [0203] The transceiver 904 is further configured to:
    send the FlexE frame, where FlexE overhead of the FlexE frame includes information used to indicate the N timeslots corresponding to the PCS bitstream.

    [0204] Therefore, the transmitter in this embodiment of the present invention performs PCS encoding on CBR service data, inserts a rate adaptation code block in a PCS bitstream obtained by means of encoding, so that a rate of the PCS bitstream in which the rate adaptation code block is inserted is adapted to a FlexE, adds FlexE overhead including related information about the CBR service data to the PCS bitstream, and then sends the PCS bitstream. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0205] It should be understood that, in this embodiment of the present invention, the processor 901 may be a Central Processing Unit (CPU), or the processor 901 may be another general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or another programmable logic device, a discrete gate or a transistor logic device, a discrete hardware component, or the like. The general purpose processor may be a microprocessor or the processor may be any normal processor, or the like.

    [0206] The memory 902 may include a read-only memory and a random access memory, and provides an instruction and data for the processor 901. A part of the memory 902 may further include a nonvolatile random access memory. For example, the memory 902 may further store information about a device type.

    [0207] In addition to a data bus, the bus system 903 may further include a power bus, a control bus, a status signal bus, and the like. However, for clarity, various types of buses in the figure are marked as the bus system 903.

    [0208] In an implementation process, the steps in the foregoing methods may be completed by means of an integrated logic circuit of hardware in the processor 901 or an instruction in a form of software. The steps of the methods disclosed with reference to the embodiments of the present invention may be directly performed by a hardware processor, or may be performed by using a combination of hardware in the processor and a software module. The software module may be located in a mature storage medium in the field, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically-erasable programmable memory, or a register. The storage medium is located in the memory 902. The processor 901 reads information from the memory 902, and completes the steps of the foregoing methods in combination with the hardware. To avoid repetition, details are not described herein again.

    [0209] Optionally, in this embodiment of the present invention, that the processor 901 inserts the rate adaptation code block in the PCS bitstream obtained by means of PCS encoding, to perform rate adaptation on the PCS bitstream includes:
    inserting the rate adaptation code block in the PCS bitstream according to a rate of the PCS bitstream and a total rate of the N timeslots of the FlexE frame that are used to transmit the PCS bitstream, so that the PCS bitstream in which the rate adaptation code block is inserted can be mapped to the N timeslots of the FlexE frame that are used to transmit the PCS bitstream.

    [0210] Optionally, in this embodiment of the present invention, the FlexE overhead further includes information indicating a ratio of a rate of the CBR service data to the total rate of the N timeslots of the FlexE frame that are used to transmit the PCS bitstream.

    [0211] Optionally, in this embodiment of the present invention, that the transceiver 904 obtains the constant bit rate CBR service data includes:

    receiving a CBR service data frame, where the data frame includes forward error correction FEC overhead;

    performing error correction on the data frame according to the FEC overhead; and

    terminating the FEC overhead in the corrected data frame, to obtain the CBR service data.



    [0212] Optionally, in this embodiment of the present invention, the rate adaptation code block is an IDLE code block.

    [0213] Optionally, in this embodiment of the present invention, the FlexE overhead further includes information indicating a sequence of a PHY and/or information indicating a type of the CBR service data.

    [0214] Optionally, in this embodiment of the present invention, that the processor 901 performs physical coding sublayer PCS encoding on the CBR service data includes:
    performing 64B/66B encoding, 256B/257B encoding, or 512B/513B encoding on the CBR service data, to obtain the PCS bitstream.

    [0215] Optionally, in this embodiment of the present invention, the CBR service data is optical transport network OTN service data or synchronous digital hierarchy SDH service data.

    [0216] It should be understood that the transmitter 900 according to this embodiment of the present invention may correspondingly execute the data transmission method 100 in the embodiment of the present invention, and may be corresponding to the transmitter 500. The foregoing and other operations and/or functions of the modules in the transmitter 900 are respectively used to implement corresponding procedures of the methods in FIG. 3 and FIG. 10. For brevity, details are not described herein again.

    [0217] Therefore, the transmitter in this embodiment of the present invention performs PCS encoding on CBR service data, inserts a rate adaptation code block in a PCS bitstream obtained by means of encoding, so that a rate of the PCS bitstream in which the rate adaptation code block is inserted is adapted to a FlexE, adds FlexE overhead including related information about the CBR service data to the PCS bitstream, and then sends the PCS bitstream. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0218] An embodiment of the present invention further provides a transmitter, including a processor, a memory, and a transceiver.

    [0219] The memory is configured to store an instruction, the processor is configured to execute the instruction stored by the memory, so as to control the transceiver to receive and send a signal, and when the processor executes the instruction stored by the memory, the transmitter is configured to perform the method 200.

    [0220] Specifically, as shown in FIG. 18, an embodiment of the present invention further provides a transmitter 1000. The transmitter 1000 includes a processor 1001, a memory 1002, a bus system 1003, and a transceiver 1004. The processor 1001, the memory 1002, and the transceiver 1004 are connected by using the bus system 1003. The memory 1002 is configured to store an instruction, and the processor 1001 is configured to execute the instruction stored by the memory 1002. The transceiver 1004 is configured to:
    obtain constant bit rate CBR service data.

    [0221] The processor 1001 is configured to:

    map the CBR service data to an intermediate frame, where a rate of a PCS bitstream obtained by performing physical coding sublayer PCS encoding on the intermediate frame is equal to a total rate of N timeslots of a flexible Ethernet FlexE frame;

    perform PCS encoding on the intermediate frame; and

    map the PCS bitstream obtained by means of PCS encoding to the N timeslots of the FlexE frame.



    [0222] The transceiver 1004 is further configured to:
    send the FlexE frame, where FlexE overhead of the FlexE frame includes information used to indicate the N timeslots corresponding to the PCS bitstream.

    [0223] Therefore, the transmitter in this embodiment of the present invention maps CBR service data to an intermediate frame, adjusts a rate by using the intermediate frame, so that a rate of a PCS bitstream obtained by performing PCS encoding on the intermediate frame is adapted to a total rate of corresponding timeslots of a FlexE, and then the PCS bitstream obtained by means of encoding is distributed to a PHY, adds FlexE overhead to the PCS bitstream, and then sends the PCS bitstream. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0224] It should be understood that, in this embodiment of the present invention, the processor 1001 may be a CPU, or the processor 1001 may be another general purpose processor, a DSP, an ASIC, a f FPGA or another programmable logic device, a discrete gate or a transistor logic device, a discrete hardware component, or the like. The general purpose processor may be a microprocessor or the processor may be any normal processor, or the like.

    [0225] The memory 1002 may include a read-only memory and a random access memory, and provides an instruction and data for the processor 1001. A part of the memory 1002 may further include a nonvolatile random access memory. For example, the memory 1002 may further store information about a device type.

    [0226] In addition to a data bus, the bus system 1003 may further include a power bus, a control bus, a status signal bus, and the like. However, for clarity, various types of buses in the figure are marked as the bus system 1003.

    [0227] In an implementation process, the steps in the foregoing methods may be completed by means of an integrated logic circuit of hardware in the processor 1001 or an instruction in a form of software. The steps of the methods disclosed with reference to the embodiments of the present invention may be directly performed by a hardware processor, or may be performed by using a combination of hardware in the processor and a software module. The software module may be located in a mature storage medium in the field, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically-erasable programmable memory, or a register. The storage medium is located in the memory 1002. The processor 1001 reads information from the memory 1002, and completes the steps of the foregoing methods in combination with the hardware. To avoid repetition, details are not described herein again.

    [0228] Optionally, in this embodiment of the present invention, that the processor 1001 maps the CBR service data to the intermediate frame includes:
    mapping the CBR service data to the intermediate frame by using an asynchronous mapping procedure AMP or a generic mapping procedure GMP, and adding overhead of the AMP or overhead of the GMP to the intermediate frame.

    [0229] Optionally, in this embodiment of the present invention, the FlexE overhead further includes information indicating a sequence of a PHY and/or information indicating a type of the CBR service data.

    [0230] Optionally, in this embodiment of the present invention, that the processor 1001 performs PCS encoding on the intermediate frame includes:
    performing 64B/66B encoding, 256B/257B encoding, or 512B/513B encoding on the intermediate frame, to obtain the PCS bitstream.

    [0231] Optionally, in this embodiment of the present invention, the CBR service data is optical transport network OTN service data or synchronous digital hierarchy SDH service data.

    [0232] It should be understood that the transmitter 1000 according to this embodiment of the present invention may correspondingly execute the data transmission method 200 in the embodiment of the present invention, and may be corresponding to the transmitter 600. The foregoing and other operations and/or functions of the modules in the transmitter 1000 are respectively used to implement corresponding procedures of the methods in FIG. 3 and FIG. 10. For brevity, details are not described herein again.

    [0233] Therefore, the transmitter in this embodiment of the present invention maps CBR service data to an intermediate frame, adjusts a rate by using the intermediate frame, so that a rate of a PCS bitstream obtained by performing PCS encoding on the intermediate frame is adapted to a total rate of corresponding timeslots of a FlexE, and then the PCS bitstream obtained by means of encoding is distributed to a PHY, adds FlexE overhead to the PCS bitstream, and then sends the PCS bitstream. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0234] An embodiment of the present invention further provides a receiver, including a processor, a memory, and a transceiver.

    [0235] The memory is configured to store an instruction, the processor is configured to execute the instruction stored by the memory, so as to control the transceiver to receive and send a signal, and when the processor executes the instruction stored by the memory, the transmitter is configured to perform the method 300.

    [0236] Specifically, as shown in FIG. 19, an embodiment of the present invention further provides a receiver 1100. The receiver 1100 includes a processor 1101, a memory 1102, a bus system 1103, and a transceiver 1104. The processor 1101, the memory 1102, and the transceiver 1104 are connected by using the bus system 1103. The memory 1102 is configured to store an instruction, and the processor 1101 is configured to execute the instruction stored by the memory 1102. The transceiver 1104 is configured to:
    receive a flexible Ethernet FlexE frame, where the FlexE frame includes a physical coding sublayer PCS bitstream corresponding to constant bit rate CBR service data, and FlexE overhead of the FlexE frame includes information used to indicate N timeslots of the FlexE frame that are corresponding to the PCS bitstream.

    [0237] The processor 1101 is configured to:

    obtain, from the N timeslots of the FlexE frame by means of parsing, the PCS bitstream including a rate adaptation code block according to the information used to indicate the N timeslots of the FlexE frame that are corresponding to the PCS bitstream;

    delete the rate adaptation code block in the PCS bitstream; and

    perform PCS decoding on the PCS bitstream from which the rate adaptation code block is deleted, to obtain the CBR service data.



    [0238] Therefore, the receiver in this embodiment of the present invention receives a FlexE frame, determines, according to information that is included in FlexE overhead and that indicates a correspondence between a PCS bitstream and a timeslot, timeslots of the FlexE frame that are corresponding to CBR service data, obtains, from the timeslots by means of parsing, a PCS bitstream including a rate adaptation code block, deletes the rate adaptation code block in the PCS bitstream, and performs PCS decoding on the bitstream from which the rate adaptation code block is deleted, to obtain the CBR service data. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0239] It should be understood that, in this embodiment of the present invention, the processor 1101 may be a CPU, or the processor 1101 may be another general purpose processor, a DSP, an ASIC, a FPGA or another programmable logic device, a discrete gate or a transistor logic device, a discrete hardware component, or the like. The general purpose processor may be a microprocessor or the processor may be any normal processor, or the like.

    [0240] The memory 1102 may include a read-only memory and a random access memory, and provides an instruction and data for the processor 1101. A part of the memory 1102 may further include a nonvolatile random access memory. For example, the memory 1102 may further store information about a device type.

    [0241] In addition to a data bus, the bus system 1103 may further include a power bus, a control bus, a status signal bus, and the like. However, for clarity, various types of buses in the figure are marked as the bus system 1103.

    [0242] In an implementation process, the steps in the foregoing methods may be completed by means of an integrated logic circuit of hardware in the processor 1101 or an instruction in a form of software. The steps of the methods disclosed with reference to the embodiments of the present invention may be directly performed by a hardware processor, or may be performed by using a combination of hardware in the processor and a software module. The software module may be located in a mature storage medium in the field, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically-erasable programmable memory, or a register. The storage medium is located in the memory 1102. The processor 1101 reads information from the memory 1102, and completes the steps of the foregoing methods in combination with the hardware. To avoid repetition, details are not described herein again.

    [0243] Optionally, in this embodiment of the present invention, a quantity of rate adaptation code blocks included in the PCS bitstream is determined by the transmitter according to a rate of the PCS bitstream and a total rate of the N timeslots of the FlexE frame that are used to transmit the PCS bitstream.

    [0244] Optionally, in this embodiment of the present invention, the FlexE overhead further includes information indicating a quantity of bit blocks of the CBR service data in a specific FlexE frame period and/or information indicating a quantity of bits of the CBR service data in a specific FlexE frame period.

    [0245] That the processor 1101 deletes the rate adaptation code block in the PCS bitstream includes:
    deleting the rate adaptation code block in the PCS bitstream according to the information about a quantity of bit blocks and/or the information about a quantity of bits.

    [0246] Optionally, in this embodiment of the present invention, the rate adaptation code block is an IDLE code block.

    [0247] Optionally, in this embodiment of the present invention, the FlexE overhead further includes information indicating a sequence of a PHY and/or information indicating a type of the CBR service data.

    [0248] Optionally, in this embodiment of the present invention, that the processor 1101 performs PCS decoding on the PCS bitstream from which the rate adaptation code block is deleted, to obtain the CBR service data includes:
    performing 64B/66B decoding, 256B/257B decoding, or 512B/513B decoding on the PCS bitstream from which the rate adaptation code block is deleted, to obtain the CBR service data.

    [0249] Optionally, in this embodiment of the present invention, the CBR service data is optical transport network OTN service data or synchronous digital hierarchy SDH service data.

    [0250] It should be understood that the receiver 1100 according to this embodiment of the present invention may correspondingly execute the data transmission method 300 in the embodiment of the present invention, and may be corresponding to the receiver 700. The foregoing and other operations and/or functions of the modules in the receiver 1100 are respectively used to implement corresponding procedures of the methods in FIG. 10 and FIG. 11. For brevity, details are not described herein again.

    [0251] Therefore, the receiver in this embodiment of the present invention receives a FlexE frame, determines, according to information that is included in FlexE overhead and that indicates a correspondence between a PCS bitstream and a timeslot, timeslots of the FlexE frame that are corresponding to CBR service data, obtains, from the timeslots by means of parsing, a PCS bitstream including a rate adaptation code block, deletes the rate adaptation code block in the PCS bitstream, and performs PCS decoding on the bitstream from which the rate adaptation code block is deleted, to obtain the CBR service data. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0252] An embodiment of the present invention further provides a receiver, including a processor, a memory, and a transceiver.

    [0253] The memory is configured to store an instruction, the processor is configured to execute the instruction stored by the memory, so as to control the transceiver to receive and send a signal, and when the processor executes the instruction stored by the memory, the transmitter is configured to perform the method 400.

    [0254] Specifically, as shown in FIG. 20, an embodiment of the present invention further provides a receiver 1200. The receiver 1200 includes a processor 1201, a memory 1202, a bus system 1203, and a transceiver 1204. The processor 1201, the memory 1202, and the transceiver 1204 are connected by using the bus system 1203. The memory 1202 is configured to store an instruction, and the processor 1201 is configured to execute the instruction stored by the memory 1202. The transceiver 1204 is configured to:
    receive a flexible Ethernet FlexE frame, where the FlexE frame includes a physical coding sublayer PCS bitstream corresponding to constant bit rate CBR service data, and FlexE overhead of the FlexE frame includes information used to indicate N timeslots of the FlexE frame that are corresponding to the PCS bitstream.

    [0255] The processor 1201 is configured to:

    obtain, from the N timeslots of the FlexE frame by means of parsing, the PCS bitstream including a rate adaptation code block according to the information used to indicate the N timeslots of the FlexE frame that are corresponding to the PCS bitstream;

    perform PCS decoding on the PCS bitstream, to obtain an intermediate frame; and

    obtain the mapped CBR service data from the intermediate frame.



    [0256] Therefore, the receiver in this embodiment of the present invention receives a FlexE frame, determines, according to information that is included in FlexE overhead and that indicates a correspondence between a PCS bitstream and a timeslot, timeslots of the FlexE frame that are corresponding to CBR service data, and obtains, by means of parsing, an intermediate frame from the timeslots, to obtain the CBR service data. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0257] It should be understood that, in this embodiment of the present invention, the processor 1201 may be a CPU, or the processor 1201 may be another general purpose processor, a DSP, an ASIC, a FPGA or another programmable logic device, a discrete gate or a transistor logic device, a discrete hardware component, or the like. The general purpose processor may be a microprocessor or the processor may be any normal processor, or the like.

    [0258] The memory 1202 may include a read-only memory and a random access memory, and provides an instruction and data for the processor 1201. A part of the memory 1202 may further include a nonvolatile random access memory. For example, the memory 1202 may further store information about a device type.

    [0259] In addition to a data bus, the bus system 1203 may further include a power bus, a control bus, a status signal bus, and the like. However, for clarity, various types of buses in the figure are marked as the bus system 1203.

    [0260] In an implementation process, the steps in the foregoing methods may be completed by means of an integrated logic circuit of hardware in the processor 1201 or an instruction in a form of software. The steps of the methods disclosed with reference to the embodiments of the present invention may be directly performed by a hardware processor, or may be performed by using a combination of hardware in the processor and a software module. The software module may be located in a mature storage medium in the field, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically-erasable programmable memory, or a register. The storage medium is located in the memory 1202. The processor 1201 reads information from the memory 1202, and completes the steps of the foregoing methods in combination with the hardware. To avoid repetition, details are not described herein again.

    [0261] Optionally, in this embodiment of the present invention, the CBR service data is mapped to the intermediate frame by using an asynchronous mapping procedure AMP or a generic mapping procedure GMP, and the intermediate frame includes overhead of the AMP or overhead of the GMP.

    [0262] It should be understood that the receiver 1200 according to this embodiment of the present invention may correspondingly execute the data transmission method 400 in the embodiment of the present invention, and may be corresponding to the receiver 800. The foregoing and other operations and/or functions of the modules in the receiver 1200 are respectively used to implement corresponding procedures of the methods in FIG. 10 and FIG. 11. For brevity, details are not described herein again.

    [0263] Therefore, the receiver in this embodiment of the present invention receives a FlexE frame, determines, according to information that is included in FlexE overhead and that indicates a correspondence between a PCS bitstream and a timeslot, timeslots of the FlexE frame that are corresponding to CBR service data, and obtains, by means of parsing, an intermediate frame from the timeslots, to obtain the CBR service data. In this way, CBR service data may be mapped to a flexible Ethernet, and a carrying capability of the flexible Ethernet is improved.

    [0264] A person of ordinary skill in the art may be aware that, in combination with the examples described in the embodiments disclosed in this specification, units and algorithm steps may be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed by hardware or software depends on particular applications and design constraint conditions of the technical solutions. A person skilled in the art may use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of the present invention which is defined by the appended claims.

    [0265] It may be clearly understood by a person skilled in the art that, for the purpose of convenient and brief description, for a detailed working process of the foregoing system, apparatus, and unit, reference may be made to a corresponding process in the foregoing method embodiments, and details are not described herein again.

    [0266] In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the described apparatus embodiment is merely an example. For example, the unit division is merely logical function division and may be other division in actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented by using some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.

    [0267] The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual requirements to achieve the objectives of the solutions of the embodiments.

    [0268] In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit.

    [0269] When the functions are implemented in the form of a software functional unit and sold or used as an independent product, the functions may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of the present invention essentially, or the part contributing to the prior art, or some of the technical solutions may be implemented in a form of a software product. The software product is stored in a storage medium, and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) to perform all or some of the steps of the methods described in the embodiments of the present invention. The foregoing storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disc.

    [0270] The foregoing descriptions are merely specific implementations of the present invention, but are not intended to limit the protection scope of the present invention which is defined by the appended claims. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in the present invention shall fall within the protection scope of the present invention which is defined by the appended claims. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.


    Claims

    1. A data transmission method, comprising:

    Obtaining (S110) constant bit rate, CBR, service data; characterized by

    Performing (S120) physical coding sublayer, PCS, encoding on the CBR service data;

    Inserting (S130) a rate adaptation code block in a PCS bitstream obtained by means of PCS encoding, to perform rate adaptation on the PCS bitstream;

    Mapping (S140) the adapted PCS bitstream to N timeslots of a flexible Ethernet, FlexE, frame, wherein N is a positive integer greater than or equal to 1; and

    Sending (S150) the FlexE frame, wherein FlexE overhead of the FlexE frame comprises information used to indicate the N timeslots corresponding to the PCS bitstream.


     
    2. The method according to claim 1, wherein the inserting a rate adaptation code block in a PCS bitstream obtained by means of PCS encoding, to perform rate adaptation on the PCS bitstream comprises:
    inserting the rate adaptation code block in the PCS bitstream according to a rate of the PCS bitstream and a total rate of the N timeslots of the FlexE frame that are used to transmit the PCS bitstream, so that the PCS bitstream in which the rate adaptation code block is inserted can be mapped to the N timeslots of the FlexE frame that are used to transmit the PCS bitstream.
     
    3. The method according to claim 1 or 2, wherein the FlexE overhead further comprises information indicating a quantity of bit blocks of the CBR service data in a specific FlexE frame period and/or information indicating a quantity of bits of the CBR service data in a specific FlexE frame period.
     
    4. The method according to any one of claims 1 to 3, wherein the obtaining constant bit rate CBR service data comprises:

    receiving a CBR service data frame, wherein the data frame comprises forward error correction FEC overhead;

    performing error correction on the data frame according to the FEC overhead; and

    terminating the FEC overhead in the corrected data frame, to obtain the CBR service data.


     
    5. The method according to any one of claims 1 to 4, wherein the rate adaptation code block is an idle code block.
     
    6. The method according to any one of claims 1 to 5, wherein the FlexE overhead further comprises information indicating a sequence of a physical layer device PHY and/or information indicating a type of the CBR service data.
     
    7. The method according to any one of claims 1 to 6, wherein the performing physical coding sublayer PCS encoding on the CBR service data comprises:
    performing 64B/66B encoding, 256B/257B encoding, or 512B/513B encoding on the CBR service data, to obtain the PCS bitstream.
     
    8. A data transmission method, comprising:

    Receiving (S310) a flexible Ethernet, FlexE, frame, wherein the FlexE frame comprises a physical coding sublayer, PCS, bitstream corresponding to constant bit rate, CBR, service data, and FlexE overhead of the FlexE frame comprises information used to indicate N timeslots of the FlexE frame that are corresponding to the PCS bitstream; characterized by

    Obtaining (S320), from the N timeslots of the FlexE frame by means of parsing, the PCS bitstream comprising a rate adaptation code block according to the information used to indicate the N timeslots of the FlexE frame that are corresponding to the PCS bitstream;

    Deleting (S330) the rate adaptation code block in the PCS bitstream; and

    Performing (S340) PCS decoding on the PCS bitstream from which the rate adaptation code block is deleted, to obtain the CBR service data.


     
    9. The method according to claim 8, wherein the FlexE overhead further comprises information indicating a quantity of bit blocks of the CBR service data in a specific FlexE frame period and/or information indicating a quantity of bits of the CBR service data in a specific FlexE frame period; and
    the deleting the rate adaptation code block in the PCS bitstream comprises:
    deleting the rate adaptation code block in the PCS bitstream according to the information about a quantity of bit blocks and/or the information about a quantity of bits.
     
    10. The method according to claim 8 or 9, wherein the rate adaptation code block is an idle IDLE code block.
     
    11. A transmitter (500), comprising:

    an obtaining module (510), configured to obtain constant bit rate, CBR, service data;

    an encoding module (520), configured to perform physical coding sublayer, PCS, encoding on the CBR service data obtained by the obtaining module; characterized by

    a rate adaptation module (530), configured to insert a rate adaptation code block in a PCS bitstream obtained by the encoding module, to perform rate adaptation on the PCS bitstream;

    a mapping module (540), configured to map the PCS bitstream adapted by the rate adaptation module to N timeslots of a flexible Ethernet, FlexE, frame, wherein N is a positive integer greater than or equal to 1; and

    a sending module (550), configured to send the FlexE frame, wherein FlexE overhead of the FlexE frame comprises information used to indicate the N timeslots corresponding to the PCS bitstream.


     
    12. The transmitter (500) according to claim 11, wherein the rate adaptation module (530) is specifically configured to:
    insert the rate adaptation code block in the PCS bitstream according to a rate of the PCS bitstream and a total rate of the N timeslots of the FlexE frame that are used to transmit the PCS bitstream, so that the PCS bitstream in which the rate adaptation code block is inserted can be mapped to the N timeslots of the FlexE frame that are used to transmit the PCS bitstream.
     
    13. The transmitter (500) according to claim 11 or 12, wherein the FlexE overhead further comprises information indicating a quantity of bit blocks of the CBR service data in a specific FlexE frame period and/or information indicating a quantity of bits of the CBR service data in a specific FlexE frame period.
     
    14. The transmitter (500) according to any one of claims 11 to 13, wherein the obtaining module (510) is specifically configured to:

    receive a CBR service data frame, wherein the data frame comprises forward error correction FEC overhead;

    perform error correction on the data frame according to the FEC overhead; and

    terminate the FEC overhead in the corrected data frame, to obtain the CBR service data.


     
    15. The transmitter (500) according to any one of claims 11 to 14, wherein the FlexE overhead further comprises information indicating a sequence of a physical layer device PHY and/or information indicating a type of the CBR service data.
     


    Ansprüche

    1. Datenübertragungsverfahren, umfassend:

    Erhalten (S110) von Dienstdaten mit konstanter Bitrate, CBR; gekennzeichnet durch Durchführen (S120) von Kodieren der CBR-Dienstdaten auf der physischen Kodierteilschicht PCS;

    Einfügen (S130) eines Ratenanpassungskodeblocks in einen PCS-Bitstrom, der durch PCS-Kodieren erhalten wurde, um eine Ratenanpassung des PCS-Bitstroms durchzuführen;

    Abbilden (S140) des angepassten PCS-Bitstroms auf N Zeitschlitze eines flexiblen Ethernet-, FlexE, Frames, wobei N eine positive ganze Zahl größer oder gleich 1 ist; und

    Senden (S150) des FlexE-Frames, wobei der FlexE-Overhead des FlexE-Frames Informationen umfasst, die dazu verwendet werden, die dem PCS-Bitstrom entsprechenden N Zeitschlitze anzugeben.


     
    2. Verfahren nach Anspruch 1, wobei das Einfügen eines Ratenanpassungskodeblocks in einen durch PCS-Kodieren erhaltenen PCS-Bitstrom zum Durchführen einer Ratenanpassung an dem PCS-Bitstrom umfasst:
    Einfügen des Ratenanpassungskodeblocks in den PCS-Bitstrom gemäß einer Rate des PCS-Bitstroms und einer Gesamtrate der zum Übertragen des PCS-Bitstroms verwendeten N Zeitschlitze des FlexE-Frames, sodass der PCS-Bitstrom, in den der Ratenanpassungskodeblock eingefügt wird, auf die zum Übertragen des PCS-Bitstroms verwendeten N Zeitschlitze des FlexE-Frames abgebildet werden kann.
     
    3. Verfahren nach Anspruch 1 oder 2, wobei der FlexE-Overhead ferner Informationen umfasst, die eine Anzahl von Bitblöcken der CBR-Dienstdaten in einer bestimmten FlexE-Frame-Periode und/oder Informationen umfassen, die eine Anzahl von Bits der CBR-Dienstdaten in einer bestimmten FlexE-Frame-Periode angeben.
     
    4. Verfahren nach einem der Ansprüche 1 bis 3, wobei das Erhalten von CBR-Dienstdaten mit konstanter Bitrate umfasst:

    Empfangen eines CBR-Dienstdatenframes, wobei der Datenframe einen Vorwärtsfehlerkorrektur-, FEC, Overhead umfasst;

    Durchführen von Fehlerkorrekturen auf dem Datenframe gemäß dem FEC-Overhead; und

    Beenden des FEC-Overheads im korrigierten Datenframe, um die CBR-Dienstdaten zu erhalten.


     
    5. Verfahren nach einem der Ansprüche 1 bis 4, wobei der Ratenanpassungskodeblock ein Ruhekodeblock ist.
     
    6. Verfahren nach einem der Ansprüche 1 bis 5, wobei der FlexE-Overhead ferner Informationen umfasst, die eine Sequenz einer Vorrichtung der physischen Schicht, PHY, und/oder Informationen, die einen Typ der CBR-Dienstdaten angeben, anzeigen.
     
    7. Verfahren nach einem der Ansprüche 1 bis 6, wobei das Durchführen des Kodierens der CBR-Dienstdaten auf der physischen Kodierteilschicht, PCS, umfasst:
    Durchführen von 64B/66B-Kodieren, 256B/257B-Kodieren oder 512B/513B-Kodieren der CBR-Dienstdaten, um den PCS-Bitstrom zu erhalten.
     
    8. Datenübertragungsverfahren, umfassend:

    Empfangen (S310) eines flexiblen Ethernet-, FlexE, Frames, wobei der FlexE-Frame einen physische Kodierteilschicht-, PCS, Bitstrom, der Dienstdaten mit einer konstanten Bitrate, CBR, entspricht, und der FlexE-Overhead des FlexE-Frames Informationen umfasst, die verwendet werden, um N Zeitschlitze des FlexE-Frames anzuzeigen, die dem PCS-Bitstrom entsprechen; gekennzeichnet durch

    Erhalten (S320) des PCS-Bitstroms aus den N Zeitschlitzen des FlexE-Frames durch Parsen, wobei der PCS-Bitstrom einen Ratenanpassungskodeblock gemäß den Informationen umfasst, die zum Anzeigen der N Zeitschlitze des FlexE-Frames, die dem PCS-Bitstrom entsprechen, verwendet werden;

    Löschen (S330) des Ratenanpassungskodeblocks im PCS-Bitstrom; und

    Durchführen (S340) der PCS-Dekodierung des PCS-Bitstroms, aus dem der Ratenanpassungskodeblock gelöscht wird, um die CBR-Dienstdaten zu erhalten.


     
    9. Verfahren nach Anspruch 8, wobei der FlexE-Overhead ferner Informationen umfasst, die eine Anzahl von Bitblöcken der CBR-Dienstdaten in einer bestimmten FlexE-Frame-Periode und/oder Informationen umfassen, die eine Anzahl von Bits der CBR-Dienstdaten in einer bestimmten FlexE-Frame-Periode anzeigen; und
    das Löschen des Ratenanpassungskodeblocks im PCS-Bitstrom umfasst:
    Löschen des Ratenanpassungskodeblocks im PCS-Bitstrom gemäß den Informationen über eine Anzahl von Bitblöcken und/oder den Informationen über eine Anzahl von Bits.
     
    10. Verfahren nach Anspruch 8 oder 9, wobei der Ratenanpassungskodeblock ein RUHEKodeblock ist.
     
    11. Sender (500), umfassend:

    ein Bezugsmodul (510), das dazu eingerichtet ist, Dienstdaten mit konstanter Bitrate, CBR, zu empfangen;

    ein Kodiermodul (520), das dazu eingerichtet ist, die Kodierung der durch das Bezugsmodul erhaltenen CBR-Dienstdaten auf der physischen Kodierteilschicht, PCS, durchzuführen; gekennzeichnet durch

    ein Ratenanpassungsmodul (530), das dazu eingerichtet ist, einen Ratenanpassungskodeblock in einen durch das Kodiermodul erhaltenen PCS-Bitstrom einzufügen, um eine Ratenanpassung des PCS-Bitstroms durchzuführen;

    ein Abbildungsmodul (540), das dazu eingerichtet ist, den durch das Ratenanpassungsmodul auf N Zeitschlitze eines flexiblen Ethernet-, FlexE, Frames angepassten PCS-Bitstrom abzubilden, wobei N eine positive ganze Zahl größer oder gleich 1 ist; und

    ein Sendemodul (550) das dazu eingerichtet ist, den FlexE-Frame zu senden, wobei der FlexE-Overhead des FlexE-Frames Informationen umfasst, die dazu verwendet werden, die dem PCS-Bitstrom entsprechenden N Zeitschlitze anzuzeigen.


     
    12. Sender (500) nach Anspruch 11, wobei das Ratenanpassungsmodul (530) speziell dazu eingerichtet ist:
    den Ratenanpassungskodeblock in den PCS-Bitstrom gemäß einer Rate des PCS-Bitstroms und einer Gesamtrate der zum Übertragen des PCS-Bitstroms verwendeten N Zeitschlitze des FlexE-Frames einzufügen, sodass der PCS-Bitstrom, in den der Ratenanpassungskodeblock eingefügt wird, auf die zum Übertragen des PCS-Bitstroms verwendeten N Zeitschlitze des FlexE-Frames abgebildet werden kann.
     
    13. Sender (500) nach Anspruch 11 oder 12, wobei der FlexE-Overhead ferner Informationen umfasst, die eine Anzahl von Bitblöcken der CBR-Dienstdaten in einer bestimmten FlexE-Frame-Periode und/oder Informationen umfassen, die eine Anzahl von Bits der CBR-Dienstdaten in einer bestimmten FlexE-Frame-Periode angeben.
     
    14. Sender (500) nach einem der Ansprüche 11 bis 13, wobei das Bezugsmodul (510) speziell dazu eingerichtet ist:

    einen CBR-Dienstdatenframe zu empfangen, wobei der Datenframe einen Vorwärtsfehlerkorrektur-, FEC, Overhead umfasst;

    eine Fehlerkorrektur am Datenframe gemäß dem FEC-Overhead durchzuführen; und

    den FEC-Overhead im korrigierten Datenframe zu beenden, um die CBR-Dienstdaten zu erhalten.


     
    15. Sender (500) nach einem der Ansprüche 11 bis 14, wobei der FlexE-Overhead ferner Informationen umfasst, die eine Sequenz einer Vorrichtung der physischen Schicht, PHY, und/oder Informationen, die einen Typ der CBR-Dienstdaten anzeigen, angeben.
     


    Revendications

    1. Procédé de transmission de données, comprenant :

    l'obtention (S110) de données de service de débit binaire constant, CBR, caractérisé par

    la réalisation (S 120) d'un codage de sous-couche de codage physique, PCS, sur les données de service CBR ;

    l'insertion (S130) d'un bloc de code d'adaptation de débit dans un train de code PCS obtenu au moyen d'un codage PCS, pour réaliser l'adaptation de débit sur le train de code PCS ;

    le mappage (S140) du train de code PCS adapté à N créneaux temporels d'une trame Ethernet souple, FlexE, N étant un nombre entier positif supérieur ou égal à 1 ; et

    l'envoi (S150) de la trame FlexE, le surdébit FlexE de la trame FlexE comprenant des informations utilisées pour indiquer les N créneaux temporels correspondant au train de code PCS.


     
    2. Procédé selon la revendication 1, l'insertion d'un bloc de code d'adaptation de débit dans un train de code PCS obtenu au moyen d'un codage PCS, pour réaliser une adaptation de débit sur le train de code PCS comprenant :
    l'insertion du bloc de code d'adaptation de débit dans le train de code PCS en fonction d'un débit du train de code PCS et d'un débit total des N créneaux temporels de la trame FlexE qui sont utilisés pour transmettre le train de code PCS, de sorte que le train de code PCS dans lequel le bloc de code d'adaptation de débit est inséré peut être mappé avec les N créneaux temporels de la trame FlexE qui sont utilisés pour transmettre le train de code PCS.
     
    3. Procédé selon la revendication 1 ou 2, le surdébit FlexE comprenant en outre des informations indiquant une quantité de blocs de bits des données de service CBR dans une période de trame FlexE spécifique et/ou des informations indiquant une quantité de bits des données de service CBR dans une période de trame FlexE spécifique.
     
    4. Procédé selon l'une quelconque des revendications 1 à 3, l'obtention de données de service de débit binaire constant, CBR, comprenant :

    la réception d'une trame de données de service CBR, la trame de données comprenant un surdébit de correction d'erreurs sans voie de retour FEC ;

    la réalisation d'une correction d'erreurs sur la trame de données en fonction du surdébit de la FEC ; et

    l'arrêt du surdébit de la FEC dans la trame de données corrigée, pour obtenir les données de service CBR.


     
    5. Procédé selon l'une quelconque des revendications 1 à 4, le bloc de code d'adaptation de débit étant un bloc de code inactif.
     
    6. Procédé selon l'une quelconque des revendications 1 à 5, le surdébit FlexE comprenant en outre des informations indiquant une séquence d'un dispositif de couche physique PHY et/ou des informations indiquant un type des données de service CBR.
     
    7. Procédé selon l'une quelconque des revendications 1 à 6, la réalisation d'un codage de sous-couche de codage physique, PCS, sur les données de service CBR comprenant :
    la réalisation du codage 64B/66B, du codage 256B/257B ou du codage 512B/513B sur les données de service CBR, pour obtenir le train de code PCS.
     
    8. Procédé de transmission de données, comprenant :

    la réception (S310) d'une trame Ethernet souple, FlexE, la trame FlexE comprenant un flux de codes de sous-couche de codage physique, PCS, correspondant à des données de service de débit binaire constant, CBR, et le surdébit FlexE de la trame FlexE comprenant des informations utilisées pour indiquer N créneaux temporels de la trame FlexE qui correspondent au train de code PCS ; caractérisé par

    l'obtention (S320), à partir des N créneaux temporels de la trame FlexE au moyen d'une analyse syntaxique, du train de code PCS comprenant un bloc de code d'adaptation de débit en fonction des informations utilisées pour indiquer les N créneaux temporels de la trame FlexE qui correspondent au train de code PCS ;

    la suppression (S330) du bloc de code d'adaptation de débit dans le train de code PCS ; et

    la réalisation (S340) d'un décodage PCS sur le train de code PCS à partir duquel le bloc de code d'adaptation de débit est supprimé, pour obtenir les données de service CBR.


     
    9. Procédé selon la revendication 8, le surdébit FlexE comprenant en outre des informations indiquant une quantité de blocs de bits des données de service CBR dans une période de trame FlexE spécifique et/ou des informations indiquant une quantité de bits des données de service CBR dans une période de trame FlexE spécifique ; et la suppression du bloc de code d'adaptation de débit dans le train de code PCS comprenant :
    la suppression du bloc de code d'adaptation de débit dans le train de code PCS en fonction des informations sur une quantité de blocs de bits et/ou des informations sur une quantité de bits.
     
    10. Procédé selon la revendication 8 ou 9, le bloc de code d'adaptation de débit étant un bloc de code inactif.
     
    11. Émetteur (500), comprenant :

    un module d'obtention (510), configuré pour obtenir des données de service de débit binaire constant CBR ;

    un module de codage (520), configuré pour réaliser un codage de sous-couche de codage physique, PCS, sur les données de service CBR obtenues par le module d'obtention ; caractérisé par

    un module d'adaptation de débit (530), configuré pour insérer un bloc de code d'adaptation de débit dans un train de code PCS obtenu par le module de codage, pour réaliser l'adaptation de débit sur le train de code PCS ;

    un module de mappage (540), configuré pour mapper le train de code PCS adapté par le module d'adaptation du débit à N créneaux temporels d'une trame Ethernet souple, FlexE, N étant un nombre entier positif supérieur ou égal à 1 ; et

    un module d'envoi (550), configuré pour envoyer la trame FlexE, le surdébit FlexE de la trame FlexE comprenant des informations utilisées pour indiquer les N créneaux temporels correspondant au train de code PCS.


     
    12. Émetteur (500) selon la revendication 11, le module d'adaptation de débit (530) étant spécifiquement configuré pour :
    insérer le bloc de code d'adaptation de débit dans le train de code PCS en fonction d'un débit du train de code PCS et d'un débit total des N créneaux temporels de la trame FlexE qui sont utilisés pour transmettre le train de code PCS, de sorte que le train de code PCS dans lequel le bloc de code d'adaptation de débit est inséré peut être mappé avec les N créneaux temporels de la trame FlexE qui sont utilisés pour transmettre le train de code PCS.
     
    13. Émetteur (500) selon la revendication 11 ou 12, le surdébit FlexE comprenant en outre des informations indiquant une quantité de blocs de bits des données de service CBR dans une période de trame FlexE spécifique et/ou des informations indiquant une quantité de bits des données de service CBR dans une période de trame FlexE spécifique.
     
    14. Émetteur (500) selon l'une quelconque des revendications 11 à 13, le module d'obtention (510) étant spécifiquement configuré pour : recevoir une trame de données de service CBR, la trame de données comprenant un surdébit de correction d'erreurs sans voie de retour FEC ; réaliser une correction d'erreurs sur la trame de données en fonction du surdébit de la FEC ; et arrêter le surdébit de la FEC dans la trame de données corrigée, pour obtenir les données de service CBR.
     
    15. Émetteur (500) selon l'une quelconque des revendications 11 à 14, le surdébit FlexE comprenant en outre des informations indiquant une séquence d'un dispositif de couche physique PHY et/ou des informations indiquant un type des données de service CBR.
     




    Drawing



































    Cited references

    REFERENCES CITED IN THE DESCRIPTION



    This list of references cited by the applicant is for the reader's convenience only. It does not form part of the European patent document. Even though great care has been taken in compiling the references, errors or omissions cannot be excluded and the EPO disclaims all liability in this regard.

    Patent documents cited in the description