WO2022037090A1 - Interface, data processing method and apparatus, and network device - Google Patents

Interface, data processing method and apparatus, and network device Download PDF

Info

Publication number
WO2022037090A1
WO2022037090A1 PCT/CN2021/087110 CN2021087110W WO2022037090A1 WO 2022037090 A1 WO2022037090 A1 WO 2022037090A1 CN 2021087110 W CN2021087110 W CN 2021087110W WO 2022037090 A1 WO2022037090 A1 WO 2022037090A1
Authority
WO
WIPO (PCT)
Prior art keywords
code block
stream
time slot
mac
data code
Prior art date
Application number
PCT/CN2021/087110
Other languages
French (fr)
Chinese (zh)
Inventor
刘永志
何向
张琴
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202011375388.5A external-priority patent/CN114157517A/en
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022037090A1 publication Critical patent/WO2022037090A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details

Definitions

  • the present application relates to the field of communication technologies, and in particular, to an interface, a data processing method, an apparatus, and a network device.
  • MII media independent interface
  • MAC Media Access Control
  • the embodiments of the present application provide an interface, a data processing method, an apparatus, and a network device to meet higher communication requirements between a MAC chip and a PHY chip.
  • the interface in this embodiment of the present application may be a pair of interface modules integrated in the transmitting-side device and the receiving-side device, or may also be an independent chip connected between the transmitting-side device and the receiving-side device.
  • an embodiment of the present application provides an interface, where the interface may at least include: a coding unit, an allocation unit, and an overhead frame control unit.
  • the overhead frame control unit is configured to generate a first overhead frame based on the data streams received from the corresponding multiple MAC modules in the medium access control MAC chip;
  • the encoding unit is configured to encode the data streams into corresponding a data code block;
  • an allocation unit configured to allocate the data code block to a corresponding time slot according to the first overhead frame, and generate a first code block stream, where the first code block stream includes the first overhead frame and multiple blocks of data.
  • the overhead frame determines the PHY module corresponding to the data code block in each time slot, so that each data code block in the code block stream is allocated to multiple PHY modules in the PHY chip, not only does it not need to occupy a lot of chip pins and circuit board area , and solves the problem that the existing serialized MII cannot be compatible with multiple different rates and cannot be shared by multiple PHY modules and multiple MAC modules, and realizes data streams of multiple different rates between the PHY chip and the MAC chip. The effect of orderly transmission.
  • the first overhead frame includes the rate of the MAC module and the identifier of the MAC module corresponding to each time slot in a time slot period.
  • the allocating unit is specifically configured to: according to the identifier of the MAC module corresponding to each time slot carried in the first overhead frame, fill the data code block corresponding to each MAC module to the time corresponding to the identifier of the MAC module and generating the first code block stream according to the multiple data code blocks that are filled and the first overhead frame.
  • the code block stream to be sent is obtained by orderly filling according to the instructions in each time slot, which provides a data basis for orderly transmission of the code block stream and subsequent orderly reception and allocation.
  • the first overhead frame when the first time slot corresponds to the first MAC module and the second MAC module, the first overhead frame further includes first indication information, where the first indication information is used to indicate that the first time slot is used by multiple MAC modules Module reuse.
  • the first overhead frame may further include an extended overhead block, where the extended overhead block includes the identifier of the first time slot, the rate of the first MAC module, the identifier of the first MAC module, the rate of the second MAC module, and the rate of the first MAC module. 2. Identification of the MAC module. In this way, it is ensured that time slots multiplexed by multiple MAC modules in different time slot periods can be inserted into corresponding data code blocks in an orderly and accurate manner, which provides a guarantee for the communication efficiency and communication quality of the interface.
  • the field corresponding to the first time slot in the first overhead frame carries the rate of the first MAC module and the identifier of the first MAC module in the first time slot period, and in the second time slot period Carry the rate of the second MAC module and the identifier of the second MAC module, carry the rate of the first MAC module and the identifier of the first MAC module in the third time slot period, and carry the data of the second MAC module in the fourth time slot period.
  • the rate and the identification of the second MAC module wherein the first time slot period is adjacent to the second time slot period, the second time slot period is adjacent to the third time slot period, and the third time slot period is adjacent to the fourth time slot period adjacent.
  • an embodiment of the present application further provides an interface, where the interface may include an allocation unit, where the allocation unit is configured to, according to the first overhead frame in the first code block stream, allocate the first code block stream to the first code block stream.
  • the data code block is allocated to the corresponding medium access control MAC module, and the first code block stream is received by the interface from the physical layer PHY chip.
  • the code block stream received from the PHY chip can be accurately allocated to the corresponding MAC module, and a variety of data code streams of different rates between the PHY chip and the MAC chip can be realized. The effect of orderly transmission.
  • the filling frequency of the data code block corresponding to each MAC module in the first code block stream is determined according to the rate of the MAC module and the equivalent bandwidth corresponding to each time slot.
  • the rate of the data block filled in each time slot is 2.5 Gb/s
  • the rate of the MAC module 1 is 1.25 Gb/s
  • the MAC module 1 is filled in one time slot of every two time slot periods.
  • an embodiment of the present application further provides an interface, where the interface may include: an encoding unit, an allocation unit, and an overhead frame control unit.
  • the overhead frame control unit is used to generate a first overhead frame based on the data code streams received from the corresponding multiple PHY modules in the physical layer PHY chip;
  • the encoding unit is used to encode the data code stream into corresponding data A code block;
  • an allocation unit configured to allocate the data code block to a corresponding time slot according to the first overhead frame, and generate a first code block stream, where the first code block stream includes the first overhead frame and multiple data code blocks.
  • the overhead frame determines the MAC module corresponding to the data code block in each time slot, so that each data code block in the code block stream is allocated to multiple MAC modules in the MAC chip, not only does it not need to occupy a lot of chip pins and circuit board area , and solves the problem that the existing serialized MII cannot be compatible with multiple different rates and cannot be shared by multiple PHY modules and multiple MAC modules, and realizes data streams of multiple different rates between the PHY chip and the MAC chip. The effect of orderly transmission.
  • the first overhead frame may include the rate of the PHY module and the identifier of the PHY module corresponding to each time slot in one time slot period.
  • the allocation unit is specifically configured to: according to the identifier of the PHY module corresponding to each time slot carried in the first overhead frame, fill the data code block corresponding to each PHY module to the time slot corresponding to the identifier of the PHY module ; generating the first code block stream according to the filled-in multiple data code blocks and the first overhead frame.
  • the code block stream to be sent is obtained by orderly filling according to the instructions in each time slot, which provides a data basis for orderly transmission of the code block stream and subsequent orderly reception and allocation.
  • the total bandwidth supported by the interface may be equal to the total bandwidth of the PHY chip.
  • an embodiment of the present application further provides an interface, where the interface may include a distribution unit.
  • the allocating unit is configured to allocate, according to the first overhead frame in the first code block stream, the data code blocks in the first code block stream to the PHY module corresponding to the first physical layer PHY chip, the first code block
  • the block stream is received by the interface from the medium access control MAC chip.
  • the assigning unit is specifically configured to: according to the first overhead frame in the first code block stream, assign part of the data code blocks in the first code block stream to the PHY corresponding to the first PHY chip module; according to the first overhead frame in the first code block stream, allocate another part of the data code blocks in the first code block stream through the first extended interface and the second extended interface, and allocate to the PHY module corresponding to the second PHY chip.
  • the total bandwidth supported by the interface may be equal to the sum of the total bandwidth of the first PHY chip and the total bandwidth of the second PHY chip.
  • the number of overhead blocks included in the first overhead frame may be determined according to the number of time slots included in one slot period of the first code block stream.
  • the first overhead frame may further include any one or more of the following information: second indication information, where the second indication information is used to represent the first overhead frame; time slot status identifier Reset information, the Reset information The information is used to represent that the time slot state is the default state or the negotiation state; the link failure alarm RPF indication bit and LPF indication bit.
  • the second indication information includes one or more of the following information: a synchronization header SH field, a 0x4B field, and a 0x5 field, where the value of the SH field is 10.
  • the first overhead frame may further include one or more of the following information: CRC information, total bandwidth supported by the interface, and reserved fields.
  • an embodiment of the present application further provides an interface, where the interface may include: an encoding unit, an allocation unit, and an overhead frame control unit.
  • an overhead frame control unit is used to generate a first overhead frame
  • an encoding unit is used to encode the data code stream into a corresponding data code block
  • an allocation unit is used to allocate the data code block according to the configuration information Go to the corresponding time slot, and generate a first code block stream
  • the configuration information is used to indicate the correspondence between the MAC module in the medium access control MAC chip and the time slot
  • the first code block stream includes the first overhead frame.
  • a plurality of data code blocks the first overhead frame is used to indicate the starting position of the first code block stream.
  • the relationship between the time slot and the MAC module is stored in the interface in the form of configuration information.
  • the interface corresponding to the PHY chip will follow the first code block stream.
  • the first overhead frame determines the starting position of the code block stream, and determines the PHY module corresponding to the data code block in each time slot based on the locally stored configuration information, so as to allocate each data code block in the code block stream to the transmitting side device.
  • the multiple PHY modules in the PHY chip not only do not need to occupy a lot of chip pins and circuit board area, but also solve the problem that the existing serialized MII cannot be compatible with multiple different rates and cannot implement multiple PHY modules and multiple MACs.
  • the problem of module sharing realizes the effect of orderly transmission of multiple data streams of different rates between the PHY chip and the MAC chip.
  • an embodiment of the present application further provides an interface, characterized in that the interface includes an allocation unit, and the allocation unit is configured to determine, according to the first overhead frame, the size of the data code block in the first code block stream. location, and according to the configuration information, the data code blocks in the first code block stream are allocated to the MAC module corresponding to the medium access control MAC chip, where the configuration information is stored in the MAC chip, and the configuration information is used to indicate The correspondence between the MAC module in the MAC chip and the time slot, and the first code block stream is received by the interface from the physical layer PHY chip. In this way, the relationship between the time slot and the MAC module is stored in the interface in the form of configuration information.
  • the interface corresponding to the MAC chip When reaching the MAC chip through a physical channel corresponding to each direction, the interface corresponding to the MAC chip will follow the first code block stream.
  • the first overhead frame determines the starting position of the code block stream, and determines the MAC module corresponding to the data code block in each time slot based on the locally stored configuration information, so as to allocate each data code block in the code block stream to the transmitting side device.
  • the multiple MAC modules in the PHY chip and the MAC chip realize the effect of orderly transmission of data streams of different rates between the PHY chip and the MAC chip.
  • an embodiment of the present application further provides an interface, where the interface may include: an encoding unit, an allocation unit, and an overhead frame control unit.
  • an overhead frame control unit is used to generate a first overhead frame
  • an encoding unit is used to encode the data code stream into a corresponding data code block
  • an allocation unit is used to allocate the data code block according to the configuration information to the corresponding time slot, and generate a first code block stream
  • the configuration information is used to indicate the correspondence between the PHY module in the physical layer PHY chip and the time slot
  • the first code block stream includes the first overhead frame and A plurality of data code blocks
  • the first overhead frame is used to indicate the starting position of the first code block stream.
  • the relationship between the time slot and the PHY module is stored in the interface in the form of configuration information, and when reaching the MAC chip through a physical channel corresponding to each direction, the interface corresponding to the MAC chip is in accordance with the first code block stream.
  • the first overhead frame determines the starting position of the code block stream, and determines the MAC module corresponding to the data code block in each time slot based on the locally stored configuration information, so as to allocate each data code block in the code block stream to the transmitting side device.
  • the multiple MAC modules in the MAC chip not only need not occupy a lot of chip pins and circuit board area, but also solve the problem that the existing serialized MII cannot be compatible with multiple different rates and cannot implement multiple PHY modules and multiple MACs.
  • the problem of module sharing realizes the effect of orderly transmission of multiple data streams of different rates between the PHY chip and the MAC chip.
  • an embodiment of the present application further provides an interface, where the interface may include a distribution unit.
  • the allocation unit is configured to determine the position of the data code block in the first code block stream according to the first overhead frame, and allocate the data code block in the first code block stream to the physical layer PHY chip according to the configuration information
  • the corresponding PHY module, the configuration information is stored in the PHY chip, and the configuration information is used to indicate the corresponding relationship between the PHY module and the time slot in the PHY chip, and the first code block stream is the interface slave Media Access Control MAC chip received. In this way, the relationship between the time slot and the PHY module is stored in the interface in the form of configuration information.
  • the interface corresponding to the PHY chip When reaching the PHY chip through a physical channel corresponding to each direction, the interface corresponding to the PHY chip will follow the first code block stream.
  • the first overhead frame determines the starting position of the code block stream, and determines the PHY module corresponding to the data code block in each time slot based on the locally stored configuration information, so as to allocate each data code block in the code block stream to the transmitting side device.
  • the multiple PHY modules in the PHY chip realize the effect of orderly transmission of data streams of various rates between the PHY chip and the MAC chip.
  • the MAC module in the MAC chip may correspond one-to-one with the PHY module in the PHY chip.
  • the first overhead frame may include indication information for characterizing the frame as an overhead frame, and the indication information may be one or more of the following information: a synchronization header SH field, a 0x4B field, and a 0x5 field, where the value of the SH field is The value is 10.
  • the sum of the rates of all the MAC modules in the MAC chip is less than or equal to the total bandwidth supported by the interface.
  • the number of MAC modules included in the MAC chip may be greater than or equal to the number of PHY modules included in the PHY chip, or may be smaller than the number of PHY modules included in the PHY chip.
  • the number of time slots included in one time slot cycle of the code block stream is a positive integer multiple of the number of PHY modules included in the physical layer PHY chip connected to the interface .
  • the equivalent bandwidth corresponding to each time slot is the total bandwidth supported by the interface divided by the number of time slots included in one time slot cycle of the code block stream.
  • the coding unit in the interface when the total bandwidth supported by the interface is less than 40 gigabits/second, the coding unit in the interface performs 64B according to the manner of Article 49 in IEEE 802.3 /66B encoding. When the total bandwidth supported by the interface is greater than or equal to 40 gigabits/second, the coding unit in the interface performs 64B/66B coding according to the manner of Clause 82 in IEEE802.3.
  • an embodiment of the present application provides a data processing method, wherein an interface is connected to a medium access control MAC chip, where the MAC chip includes a first MAC module and a second MAC module, and the method may, for example, include: A first data stream from a MAC module and a second data stream from the second MAC module generate a first overhead frame, where the first overhead frame is used to indicate the first data stream and the second data stream.
  • the first code block stream includes a first overhead frame, the The first data code block inserted in the first time slot, and the second data code block inserted in the second time slot.
  • the method may further include: using a serializer SerDes to serialize the first code block stream to obtain a first processing result; sending the first processing result to a first Physical layer PHY chip.
  • the method may further include: receiving a second processing result from the first PHY chip; using the SerDes to deserialize the second processing result to obtain a second code block stream; The second overhead frame in the second code block stream is allocated, and the data code blocks in the second code block stream are allocated to a plurality of MAC modules corresponding to the MAC chip.
  • the method may further include: using a scrambling processing unit to scramble the first code block stream to obtain an updated first code block stream; using a serial deserializer SerDes to scramble the updated first code block stream The latter first code block stream is serialized to obtain a third processing result; and the third processing result is sent to the first physical layer PHY chip.
  • the MAC chip further includes a plurality of ports, and each port in the plurality of ports communicates with a corresponding MAC module through a corresponding adaptation sublayer RS.
  • the method may further include: using the RS to connect the corresponding MAC
  • the MAC frame stream sent by the module is processed into a data code stream; or, the RS is used to process the data code stream received by the interface into a MAC frame stream and sent to the corresponding MAC module.
  • the method provided by the ninth aspect corresponds to the interface provided by the first aspect, so the various possible implementation manners of the method provided by the ninth aspect and the technical effects achieved may refer to the interface provided by the aforementioned first aspect. 's introduction.
  • the embodiments of the present application further provide another data processing method, which interfaces a first physical layer PHY module and a second PHY module, and the method may include: according to a first data code from the first PHY module stream and the second data stream from the second PHY module to generate a first overhead frame, where the first overhead frame is used to indicate time slots corresponding to the first data stream and the second data stream ; Encode the first data code stream and the second data code stream respectively to obtain a first data code block and a second data code block; Based on the first overhead frame, encode the first data code block inserting a first time slot, inserting the second data code block into a second time slot, and generating a first code block stream, the first code block stream including a first overhead frame, all the inserted data blocks in the first time slot the first data code block, and the second data code block inserted in the second time slot.
  • the method may further include: using a serializer SerDes to serialize the first code block stream to obtain a first processing result; sending the first processing result to a medium access Control the MAC chip.
  • the method further includes: receiving a second processing result from the MAC chip; using the SerDes to deserialize the second processing result to obtain a second code block stream, the second code block
  • the stream includes a second overhead frame, a third data code block and a fourth data code block; according to the second overhead frame, the third data code block and the fourth data code block are respectively allocated to the first a PHY module and a second PHY module.
  • the method may further include: using a scrambling processing unit to scramble the first code block stream to obtain an updated first code block stream; using a serial deserializer SerDes to scramble the updated first code block stream The latter first code block stream is serialized to obtain a third processing result; and the third processing result is sent to the medium access control MAC chip.
  • the first PHY module and the second PHY module belong to a first PHY chip; or, the first PHY module belongs to a first PHY chip, the second PHY module belongs to a second PHY chip, and the first PHY module belongs to a second PHY chip.
  • a PHY chip and the second PHY chip are connected through an extended interface.
  • the method provided by the tenth aspect corresponds to the interface provided by the third aspect. Therefore, various possible implementation manners of the method provided by the tenth aspect and the technical effects achieved may refer to the interface provided by the aforementioned third aspect. 's introduction.
  • an embodiment of the present application further provides a data processing method, wherein an interface is connected to a medium access control MAC chip, the MAC chip includes a first MAC module and a second MAC module, and the method includes: generating a first overhead frame , the first overhead frame is used to indicate the starting position of the code block stream; the first data code stream from the first MAC module and the second data code stream from the second MAC module are respectively encoded, obtaining a first data code block and a second data code block; based on the first overhead frame and configuration information, inserting the first data code block into the first time slot, and inserting the second data code block into the second time slot slot to generate a first code block stream, the first code block stream including a first overhead frame, the first data code block inserted in the first time slot, and the first data code block inserted in the second time slot In the second data code block, the configuration information is used to indicate the corresponding relationship between the MAC module and the time slot in the MAC chip.
  • the method provided in the eleventh aspect corresponds to the interface provided by the fifth aspect. Therefore, various possible implementations and technical effects of the method provided in the eleventh aspect can be provided with reference to the aforementioned fifth aspect. An introduction to the interface.
  • an embodiment of the present application provides a data processing method, wherein an interface is connected to a medium access control MAC chip, the MAC chip includes a first MAC module and a second MAC module, and the method includes: obtaining from a physical layer PHY chip a first code block stream, the first code block stream including a first overhead frame, a first data code block inserted in a first time slot, and a second data code block inserted in a second time slot; according to the first an overhead frame, determining the starting position of the data code block in the first code block stream; according to the configuration information, the first data code block and the second data code block in the first code block stream are The configuration information is respectively allocated to the first MAC module and the second MAC module, and the configuration information is used to indicate the corresponding relationship between the MAC module and the time slot in the MAC chip.
  • the method provided by the twelfth aspect corresponds to the interface provided by the sixth aspect. Therefore, various possible implementations and technical effects of the method provided by the twelfth aspect can be provided with reference to the aforementioned sixth aspect. An introduction to the interface.
  • an embodiment of the present application further provides a data processing method, wherein an interface is connected to a physical layer PHY chip, the PHY chip includes a first PHY module and a second PHY module, and the method includes: generating a first overhead frame, The first overhead frame is used to indicate the starting position of the code block stream; the first data code stream from the first PHY module and the second data code stream from the second PHY module are respectively encoded to obtain a first data code block and a second data code block; based on the first overhead frame and configuration information, inserting the first data code block into a first time slot, and inserting the second data code block into a second time slot , generating a first code block stream, the first code block stream including a first overhead frame, the first data code block inserted in the first time slot, and the first data code block inserted in the second time slot Two data code blocks, the configuration information is used to indicate the corresponding relationship between the PHY module and the time slot in the PHY chip.
  • the method provided by the thirteenth aspect corresponds to the interface provided by the seventh aspect. Therefore, various possible implementations and technical effects of the method provided by the thirteenth aspect can be provided with reference to the aforementioned seventh aspect. An introduction to the interface.
  • an embodiment of the present application further provides a data processing method, wherein an interface is connected to a physical layer PHY chip, the PHY chip includes a first PHY module and a second PHY module, and the method includes: accessing a control MAC from a medium
  • the chip obtains a first code block stream, the first code block stream includes a first overhead frame, a first data code block inserted in the first time slot, and a second data code block inserted in the second time slot; according to the the first overhead frame, determining the starting position of the data code block in the first code block stream; according to the configuration information, combining the first data code block and the second data block in the first code block stream
  • the code blocks are respectively allocated to the first PHY module and the second PHY module, and the configuration information is used to indicate the corresponding relationship between the PHY modules and the time slots in the PHY chip.
  • the method provided by the fourteenth aspect corresponds to the interface provided by the eighth aspect. Therefore, various possible implementations and technical effects of the method provided by the fourteenth aspect can be provided with reference to the aforementioned eighth aspect. An introduction to the interface.
  • the MAC module and the PHY module may be in one-to-one correspondence.
  • the first overhead frame includes indication information used to characterize the frame as an overhead frame, and the indication information may be one or more of the following information: a synchronization header SH field, a 0x4B field, and a 0x5 field, where the value of the SH field is is 10.
  • an embodiment of the present application further provides a data processing device, the data processing device is located at an interface or communicates with a flexible interface, the interface is connected to a medium access control MAC chip, and the MAC chip includes a first MAC module and the second MAC module.
  • the apparatus may include: a first generating unit, an encoding unit and a second generating unit.
  • a first generating unit is configured to generate a first overhead frame according to the first data code stream from the first MAC module and the second data code stream from the second MAC module, the first overhead frame It is used to indicate the time slot corresponding to the first data code stream and the second data code stream; the coding unit is used to encode the first data code stream and the second data code stream respectively to obtain the first data code stream.
  • a data code block and a second data code block configured to insert the first data code block into the first time slot and insert the second data code block into the first time slot based on the first overhead frame
  • Two time slots generate a first code block stream, and the first code block stream includes a first overhead frame, the first data code block inserted in the first time slot, and the first data code block inserted in the second time slot. the second data code block.
  • the apparatus may further include a serializing unit and a transmitting unit.
  • the serialization unit is used for serializing the first code block stream by using a serializer SerDes to obtain a first processing result; the sending unit is used for sending the first processing result to The first physical layer PHY chip.
  • the apparatus may further include: a receiving unit, a deserializing unit, and an allocating unit.
  • the receiving unit is configured to receive the second processing result from the first PHY chip;
  • the deserializing unit is configured to use the SerDes to deserialize the second processing result to obtain a second code block. a flow;
  • an allocation unit configured to allocate data code blocks in the second code block flow to multiple MAC modules corresponding to the MAC chip according to the second overhead frame in the second code block flow.
  • the apparatus may further include a scrambling unit, a serializing unit, and a transmitting unit.
  • the scrambling unit is used for scrambling the first code block stream by using the scrambling code processing unit to obtain the updated first code block stream;
  • the serialization unit is used for using the serializer SerDes to scramble the code block stream.
  • the updated first code block stream is serialized to obtain a third processing result;
  • the sending unit is configured to send the third processing result to the first physical layer PHY chip.
  • the MAC chip further includes a plurality of ports, and each port in the plurality of ports communicates with a corresponding MAC module through a corresponding adaptation sublayer RS
  • the apparatus may further include a processing unit.
  • the processing unit is configured to use the RS to process the MAC frame stream sent by the corresponding MAC module into a data stream; or, the processing unit is configured to use the RS to process the data stream received by the interface into a MAC frame stream and send it to Corresponding MAC module.
  • the device provided in the fifteenth aspect corresponds to the interface provided in the first aspect and the method provided in the ninth aspect, so the various possible implementations of the device provided in the fifteenth aspect and the technical effects achieved, Reference may be made to the relevant introductions of the foregoing first and ninth aspects.
  • an embodiment of the present application further provides a data processing apparatus, the data processing apparatus is located at an interface or communicates with a flexible interface, the interface is connected to the first physical layer PHY module and the second PHY module, the apparatus It includes: a first generating unit, a coding unit and a second generating unit.
  • the first generating unit is configured to generate a first overhead frame according to the first data code stream from the first PHY module and the second data code stream from the second PHY module, the first overhead frame It is used to indicate the time slot corresponding to the first data code stream and the second data code stream;
  • the coding unit is used to encode the first data code stream and the second data code stream respectively to obtain the first data code stream.
  • a data code block and a second data code block configured to insert the first data code block into the first time slot and insert the second data code block into the first time slot based on the first overhead frame
  • Two time slots generate a first code block stream, and the first code block stream includes a first overhead frame, the first data code block inserted in the first time slot, and the first data code block inserted in the second time slot. the second data code block.
  • the apparatus may further include a serializing unit and a transmitting unit.
  • the serialization unit is used for serializing the first code block stream by using a serializer SerDes to obtain a first processing result; the sending unit is used for sending the first processing result to Media Access Control MAC chip.
  • the apparatus may further include: a receiving unit, a deserializing unit, and an allocating unit.
  • the receiving unit is configured to receive the second processing result from the MAC chip;
  • the deserializing unit is configured to perform deserialization processing on the second processing result by using the SerDes, and the obtained second code block stream is
  • the second code block stream includes a second overhead frame, a third data code block, and a fourth data code block;
  • an allocation unit is configured to divide the third data code block and the first data code block according to the second overhead frame.
  • Four data code blocks are allocated to the first PHY module and the second PHY module, respectively.
  • the apparatus may further include a scrambling unit, a serializing unit, and a transmitting unit.
  • the scrambling unit is used for scrambling the first code block stream by using the scrambling code processing unit to obtain the updated first code block stream;
  • the serialization unit is used for using the serializer SerDes to scramble the code block stream.
  • the updated first code block stream is serialized to obtain a third processing result;
  • a sending unit is configured to send the third processing result to the medium access control MAC chip.
  • the first PHY module and the second PHY module may belong to the first PHY chip; or, the first PHY module belongs to the first PHY chip, the second PHY module belongs to the second PHY chip, and the first PHY chip and the first PHY chip belong to the first PHY chip. Two PHY chips are connected through an extended interface.
  • the device provided in the sixteenth aspect corresponds to the interface provided in the third aspect and the method provided in the tenth aspect, so the various possible implementations of the device provided in the sixteenth aspect and the technical effects achieved, Reference may be made to the above-mentioned related introductions of the third aspect and the tenth aspect.
  • an embodiment of the present application further provides a data processing device, the data processing device is located at an interface or communicates with a flexible interface, the interface is connected to a medium access control MAC chip, and the MAC chip includes a first MAC module and a second MAC module, the apparatus includes: a first generating unit, an encoding unit and a second generating unit.
  • the first generating unit is used to generate a first overhead frame, where the first overhead frame is used to indicate the starting position of the code block stream; the coding unit is used to encode the first data code from the first MAC module The stream and the second data code stream from the second MAC module are respectively encoded to obtain a first data code block and a second data code block; a second generating unit is configured to, based on the first overhead frame and the configuration information, Inserting the first data code block into a first time slot, inserting the second data code block into a second time slot, and generating a first code block stream, the first code block stream includes a first overhead frame, the first data code block inserted in the first time slot and the second data code block inserted in the second time slot, the configuration information is used to indicate the MAC module and time slot in the MAC chip corresponding relationship.
  • the device provided in the seventeenth aspect corresponds to the interface provided in the fifth aspect and the method provided in the eleventh aspect, so various possible implementations of the device provided in the seventeenth aspect and the technical effects achieved , reference may be made to the above-mentioned related introductions of the fifth aspect and the eleventh aspect.
  • an embodiment of the present application further provides a data processing apparatus, the data processing apparatus is located at an interface or communicates with a flexible interface, the interface is connected to a medium access control MAC chip, and the MAC chip includes a first MAC module and a second MAC module, the apparatus includes: an acquisition unit, a determination unit and an allocation unit.
  • the obtaining unit is configured to obtain the first code block stream from the physical layer PHY chip, where the first code block stream includes the first overhead frame, the first data code block inserted in the first time slot, and the second time slot.
  • a determining unit configured to determine the starting position of the data code block in the first code block stream according to the first overhead frame
  • an allocation unit configured to assign the The first data code block and the second data code block in the first code block stream are respectively allocated to the first MAC module and the second MAC module, and the configuration information is used to indicate the MAC The correspondence between the MAC module in the chip and the time slot.
  • the device provided in the eighteenth aspect corresponds to the interface provided in the sixth aspect and the method provided in the twelfth aspect, so various possible implementations of the device provided in the eighteenth aspect and the technical effects achieved , you can refer to the related introductions of the sixth aspect and the twelfth aspect.
  • an embodiment of the present application further provides a data processing device, the interface is connected to a physical layer PHY chip, the PHY chip includes a first PHY module and a second PHY module, and the device includes: a first generating unit, a coding unit and a second generating unit.
  • the first generating unit is used to generate a first overhead frame, the first overhead frame is used to indicate the starting position of the code block stream;
  • the coding unit is used to generate the first data code from the first PHY module
  • the stream and the second data code stream from the second PHY module are encoded respectively to obtain a first data code block and a second data code block;
  • a second generating unit is configured to, based on the first overhead frame and the configuration information, Inserting the first data code block into a first time slot, inserting the second data code block into a second time slot, and generating a first code block stream, the first code block stream includes a first overhead frame, the The first data code block inserted in the first time slot and the second data code block inserted in the second time slot, the configuration information is used to indicate the PHY module and the time slot in the PHY chip corresponding relationship.
  • the device provided in the nineteenth aspect corresponds to the interface provided in the seventh aspect and the method provided in the thirteenth aspect, so various possible implementations of the device provided in the nineteenth aspect and the technical effects achieved , you can refer to the related introductions of the seventh aspect and the thirteenth aspect.
  • an embodiment of the present application further provides a data processing apparatus, the data processing apparatus is located at an interface or communicates with a flexible interface, the interface is connected to a physical layer PHY chip, and the PHY chip includes a first PHY module and a second PHY module, the apparatus includes: an acquisition unit, a determination unit and an allocation unit.
  • the obtaining unit is configured to obtain the first code block stream from the medium access control MAC chip, where the first code block stream includes the first overhead frame, the first data code block inserted in the first time slot, and the second time slot The second data code block inserted in the data code block; the determining unit is used to determine the starting position of the data code block in the first code block stream according to the first overhead frame; the allocation unit is used to determine the starting position of the data code block according to the configuration information The first data code block and the second data code block in the first code block stream are respectively allocated to the first PHY module and the second PHY module, and the configuration information is used to indicate the The correspondence between the PHY module and the time slot in the PHY chip.
  • the device provided in the twentieth aspect corresponds to the interface provided in the eighth aspect and the method provided in the fourteenth aspect, so various possible implementations of the device provided in the twentieth aspect and the technical effects achieved , reference may be made to the relevant introductions of the foregoing eighth aspect and fourteenth aspect.
  • the MAC module and the PHY module may be in one-to-one correspondence.
  • the first overhead frame may include indication information for characterizing the frame as an overhead frame, and the indication information may be one or more of the following information: a synchronization header SH field, a 0x4B field, and a 0x5 field, where the value of the SH field is The value is 10.
  • an embodiment of the present application further provides a network device, where the network device may include: a processor.
  • the processor communicates with a memory, and the memory includes computer-readable instructions, and the processor is configured to execute the computer-readable instructions, so that the network device performs any one of the ninth aspect to the twentieth aspect above A method provided by an aspect or any one possible implementation of any aspect.
  • an embodiment of the present application further provides a computer-readable storage medium, including a program or an instruction, which, when executed by a processor, implements any one or any one of the above ninth to twentieth aspects A method provided by any one possible implementation of the aspect.
  • an embodiment of the present application further provides a computer program product, characterized in that it includes a computer program, and when the computer program is executed by a processor, implements any one of the ninth aspect to the twentieth aspect above or the method provided by any possible implementation manner of any aspect.
  • 1 is a schematic structural diagram of an interface in an embodiment of the application.
  • FIG. 2a is a schematic diagram of the format of an overhead frame 1 in an embodiment of the present application.
  • FIG. 2b is a schematic diagram of the format of another overhead frame 1 in an embodiment of the present application.
  • 3a is a schematic diagram of the format of a code block stream 1 in an embodiment of the present application.
  • FIG. 3b is a schematic diagram of the format of another code block stream 1 in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a format of an overhead frame 2 in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of the format of a code block stream 2 in an embodiment of the present application.
  • 6a is a schematic diagram of a format of a code block stream in an embodiment of the present application.
  • FIG. 6b is a schematic diagram of the format of another code block stream in an embodiment of the present application.
  • FIG. 7 is a schematic flowchart of a data processing method 100 in an embodiment of the present application.
  • FIG. 8a is a schematic diagram of a format of a first overhead frame in an embodiment of the present application.
  • FIG. 8b is a schematic diagram of a format of another first overhead frame in an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a format of a first code block stream in an embodiment of the present application.
  • FIG. 10 is a schematic flowchart of a data processing method 200 in an embodiment of the present application.
  • FIG. 11 is a schematic flowchart of a data processing method 300 in an embodiment of the present application.
  • FIG. 12 is a schematic flowchart of a data processing method 400 in an embodiment of the present application.
  • FIG. 13a is a schematic diagram of a format of a first overhead frame in an embodiment of the present application.
  • FIG. 13b is a schematic diagram of the format of another first overhead frame in an embodiment of the present application.
  • 13c is a schematic diagram of a format of still another first overhead frame in an embodiment of the present application.
  • 13d is a schematic diagram of a format of still another first overhead frame in an embodiment of the present application.
  • 14a is a schematic diagram of a format of a first overhead frame in an embodiment of the present application.
  • 14b is a schematic diagram of a format of still another first overhead frame in an embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of a PHY chip cascade scenario in an embodiment of the present application.
  • FIG. 16 is a schematic structural diagram of a data processing apparatus 1600 in an embodiment of the present application.
  • FIG. 17 is a schematic structural diagram of a data processing apparatus 1700 according to an embodiment of the present application.
  • FIG. 18 is a schematic structural diagram of a data processing apparatus 1800 in an embodiment of the present application.
  • FIG. 19 is a schematic structural diagram of a data processing apparatus 1900 in an embodiment of the present application.
  • FIG. 20 is a schematic structural diagram of a data processing apparatus 2000 in an embodiment of the present application.
  • FIG. 21 is a schematic structural diagram of a data processing apparatus 2100 in an embodiment of the present application.
  • FIG. 22 is a schematic structural diagram of a network device 2200 in an embodiment of the present application.
  • FIG. 23 is a schematic structural diagram of a network device 2300 in an embodiment of the present application.
  • the current medium independent interface MII is the interface between the medium access control MAC chip and the physical layer PHY chip defined by the Institute of Electrical and Electronic Engineers (English: Institute of Electrical and Electronic Engineers, referred to as: IEEE) 802.3 standard.
  • MII can parallelize the data transmitted between the MAC chip and the PHY chip to meet the communication requirements between the MAC chip and the PHY chip.
  • the parallelized processing can be realized by extending the signal transmission width between the two, for example: When the MII transmission rate is 100 Mbit/s (English: Mb/s), the data signal width of the MAC chip and the PHY chip needs to be 8 bits respectively; the MII transmission rate is 1 Gigabit/s (English: Gb/s) s), the data signal width of the MAC chip and PHY chip is 16 bits respectively; when the MII transmission rate is 10Gb/s, the data signal width of the MAC chip and PHY chip is 64 bits respectively. It can be seen that the method of increasing the communication rate through high parallelization will greatly increase the area of the circuit board occupied by the MII and occupy more pins of the MAC chip and more pins of the PHY chip as the demand for the communication rate continues to increase.
  • the high-speed communication between the MAC chip and the PHY chip is currently implemented through serialized MII, that is, the high-speed signal is transmitted through a physical channel corresponding to each direction, and there is no need to provide an associated clock, the MAC chip and The PHY chip can obtain the clock from the exchange of the data signal according to the clock and data recovery (English: clock and data recovery, CDR for short) technology, and transmit the data signal according to the 8B/10B format.
  • a physical channel can be realized by, for example, a pair of differential lines, or can be realized by a twin-axial cable (English: twin-axial cable).
  • the serialized MII may be a serial gigabit media independent interface (English: serial gigabit media independent interface, SGMII for short).
  • SGMII serial gigabit media independent interface
  • the serialized MII solves the problem of occupying more pins of the MAC chip and the PHY chip in the parallel processing.
  • the current serialized MII only supports communication at one rate between one MAC module in the MAC chip and one PHY module in the PHY chip at a time, and cannot provide support for multiple MAC modules and multiple PHYs The modules communicate at different rates.
  • the total bandwidth that can be supported by the current serialized MII is limited, and the supported rates are all standard Ethernet interface rates, and cannot support communications at larger rates or non-standard Ethernet interface rates.
  • the embodiments of the present application provide an interface (also referred to as a flexible interface (ie Flexible Interface) that can be shared by multiple PHY modules in a PHY chip and multiple MAC modules in a MAC chip, hereinafter referred to as the flexible interface description), using the relationship between the time slot and the PHY module and the relationship between the time slot and the MAC module, through a physical channel corresponding to each direction to achieve a variety of data streams between the PHY chip and the MAC chip at different rates Transmission, not only does not need to occupy a lot of chip pins and circuit board area, but also solves the problem that the existing serialized flexible interface cannot be compatible with multiple different rates and cannot be shared by multiple PHY modules and multiple MAC modules. The effect of orderly transmission of multiple data streams of different rates between the PHY chip and the MAC chip.
  • a flexible interface ie Flexible Interface
  • the flexible interface in this embodiment of the present application may be a pair of interface modules integrated in the transmitting-side device and the receiving-side device, or may be an independent chip connected between the transmitting-side device and the receiving-side device.
  • the following description takes the flexible interface as a pair of interface modules integrated in the sending-side device and the receiving-side device as an example for description.
  • the first flexible interface in the MAC chip of the sending side device on the sending side device, the first flexible interface in the MAC chip of the sending side device generates an overhead frame indicating the time slot occupied by the data code block corresponding to each MAC module, and according to the indication of the overhead frame, in the time slot Fill the code block stream corresponding to the time slot in the cycle with the corresponding data code block, and insert the overhead frame into the code block stream and send it to the PHY chip of the transmitting side device.
  • the second flexible interface in the PHY chip of the transmitting side device That is, the PHY module corresponding to the data code block in each time slot can be determined according to the overhead frame in the code block stream, so that each data code block in the code block stream is allocated to multiple PHY modules in the PHY chip.
  • the third flexible interface in the PHY chip of the receiving side device generates an overhead frame indicating the time slot occupied by the data code block corresponding to each PHY module, and the code corresponding to the time slot in the time slot cycle according to the indication of the overhead frame
  • the block stream is filled with corresponding data code blocks, and the overhead frame is inserted into the code block stream and sent to the MAC chip of the receiving-side device.
  • the fourth flexible interface in the MAC chip of the receiving-side device can follow the code block stream.
  • the overhead frame determines the MAC module corresponding to the data code block in each time slot, so that each data code block in the code block stream is allocated to multiple MAC modules in the MAC chip.
  • the overhead frame in this implementation manner may also indicate the start position of the time slot period corresponding to the code block stream.
  • the data processing method corresponding to this implementation manner refer to the related descriptions of the following method 100 and method 200 .
  • the configuration information may be pre-stored on the sending-side device or the receiving-side device, for example, the configuration information may be stored on the MAC chip and PHY chip of the sending-side device or the receiving-side device.
  • the sending-side device or the receiving-side device may also communicate with a device or module that has pre-stored configuration information, so as to acquire the pre-stored configuration information.
  • the configuration information on the MAC chip is used to indicate the corresponding relationship between each MAC module and time slot in the MAC chip
  • the configuration information on the PHY chip is used to indicate the corresponding relationship between each PHY module and time slot in the PHY chip. There is a one-to-one correspondence between modules and PHY modules.
  • the first flexible interface in the MAC chip of the transmitting-side device can fill the corresponding data code block in the code block stream corresponding to the time slot in the time slot cycle according to the instruction of the configuration information, and use it to indicate the start of the code block stream.
  • the overhead frame at the starting position is inserted into the code block stream and sent to the PHY chip of the sending side device.
  • the second flexible interface in the PHY chip of the sending side device can determine the starting position of the code block stream according to the overhead frame in the code block stream.
  • the PHY module corresponding to the data code block in each time slot is determined based on the locally stored configuration information, so that each data code block in the code block stream is allocated to multiple PHY modules in the PHY chip of the transmitting-side device.
  • the third flexible interface in the PHY chip of the receiving-side device can fill the corresponding data code block in the code block stream corresponding to the time slot in the time slot cycle according to the instruction of the configuration information, and will be used to indicate the starting position of the code block stream
  • the overhead frame is inserted into the code block stream and sent to the MAC chip of the receiving side device.
  • the fourth flexible interface in the MAC chip of the receiving side device can determine the start position of the code block stream according to the overhead frame in the code block stream, and based on The locally stored configuration information determines the MAC module corresponding to the data code block in each time slot, so that each data code block in the code block stream is allocated to multiple MAC modules in the MAC chip of the receiving-side device.
  • the total bandwidth that can be supported by the flexible interface provided by the embodiments of the present application may be equal to the total bandwidth of the PHY chip in one case, that is, equal to the sum of the bandwidths of all PHY modules in the PHY chip; in another case, it may also be equal to the total bandwidth of the PHY chip.
  • the sum of the bandwidth of multiple PHY chips cascaded through an extended flexible interface. The embodiment of the present application is described by taking the first case as an example. For a scenario in which multiple PHY chips are cascaded, refer to the related description of the embodiment shown in FIG. 15 below.
  • the sum of the rates of all MAC modules in the MAC chip connected by the flexible interface is less than or equal to the total bandwidth supported by the flexible interface. For example, if the total bandwidth supported by the flexible interface is 10 Gb/s, then, The sum of the rates of all MAC modules in the MAC chip should be less than 10Gb/s.
  • FIG. 1 is a schematic structural diagram of a flexible interface provided by an embodiment of the present application.
  • the MAC chip 10 includes a flexible interface 100 and a MAC module 1 to a MAC module N
  • the PHY chip 20 includes a flexible interface 200 and a PHY module 1 to a PHY module M
  • N and M are both positive integers, and N is equal to M
  • N is greater than M or N is less than M
  • the number N of MAC modules may also be different or the same as the number L of RSs, for example, N is greater than or less than L.
  • M equals N and N equals L as an example.
  • N For the case where N is greater than M, it involves multiple MAC modules multiplexing a time slot. See Figures 13a to 13d and the corresponding descriptions of Figures 14a and 14b .
  • the flexible interface 100 and the flexible interface 200 are connected through two physical channels 300 .
  • the flexible interface 100 includes an overhead frame control unit 110, an encoding unit 120 and an allocation unit 130, wherein the overhead frame control unit 120 is used to generate an overhead frame, and the encoding unit 120 is used to encode the data code stream to obtain the corresponding data code block, and the allocation unit 130 is used to allocate the data code block to the code block stream corresponding to the time slot in the time slot cycle according to the overhead frame or configuration information, and generate the code block stream .
  • the flexible interface 100 may also include a serializer SerDes 140 for serializing the stream of code blocks.
  • the flexible interface 100 may further include a SerDes 140 and a scrambling code processing unit 150.
  • the scrambling code processing unit 150 is used to scramble the code block stream before serialization processing.
  • the work of the scrambling code processing unit 150 can make the code block stream
  • the data code blocks in the are more randomized, and the data balance is better.
  • the flexible interface 100 can send the generated code block stream to the flexible interface 200.
  • the allocation unit 230 in the flexible interface 200 can be used to determine the corresponding time slots according to the configuration information or according to the overhead frame in the received code block stream.
  • the PHY module to which the data code block of 1 should be allocated, so that each data code block in the code block stream is allocated to the PHY module in the PHY chip 20 .
  • the flexible interface 200 may also include an overhead frame control unit 210 and an encoding unit 220, and may also include a SerDes 240 and a scrambling code processing unit 250, wherein the SerDes 240
  • the code processing unit 250 may be used to descramble the received stream of code blocks.
  • the flexible interface 200 includes an overhead frame control unit 210, an encoding unit 220 and an allocation unit 230, wherein the overhead frame control unit 220 is used to generate an overhead frame, and the encoding unit 220 is used to encode the data code stream to obtain the corresponding data code block, and the allocation unit 230 is used to allocate the data code block to the code block stream corresponding to the time slot in the time slot cycle according to the overhead frame or configuration information, and generate the code block stream .
  • the flexible interface 200 may also include a serializer SerDes 240 for serializing the stream of code blocks.
  • the flexible interface 200 may further include a SerDes 240 and a scrambling code processing unit 250.
  • the scrambling code processing unit 250 is used to scramble the code block stream before the serialization process.
  • the work of the scrambling code processing unit 250 can make the code block stream
  • the data code blocks in the are more randomized, and the data balance is better.
  • the flexible interface 200 can send the generated code block stream to the flexible interface 100.
  • the allocation unit 130 in the flexible interface 100 can be used to determine the corresponding time slots according to the configuration information or according to the overhead frame in the received code block stream.
  • the data code block should be allocated to the MAC module, so that each data code block in the code block stream is allocated to the MAC module in the MAC chip 10 .
  • the flexible interface 100 may also include an overhead frame control unit 110 and an encoding unit 120, and may also include a SerDes 140 and a scrambling code processing unit 150, wherein the SerDes 140 may be used to deserialize the received processing result, and scramble the
  • the code processing unit 150 may be configured to descramble the received stream of code blocks.
  • the code block stream transmitted between the MAC chip 10 and the PHY chip 20 may be divided according to the time slot period.
  • the number of time slots included in a time slot cycle is equal to the positive integer multiple of the number of PHY modules included in the PHY chip; the rate of data code blocks that can be filled in each time slot (also called the equivalent bandwidth corresponding to a time slot) is a flexible interface
  • the process of sending data from the MAC chip 10 to the PHY chip 20 is taken as an example to illustrate the working process of the flexible interface and related concepts involved in the first implementation provided by the embodiment of the present application:
  • MAC modules 1 to MAC modules N are respectively connected to adaptation sublayers (English: reconciliation sublayer, RS for short) 1 to N.
  • the RS corresponding to the MAC module reconciles the MAC frame stream. It is divided into data code streams, and the data code streams are sent to the flexible interface 100 through the corresponding ports.
  • the RS can process the MAC frame stream into a data stream based on the rate from the MAC module. For example, when the rate of the MAC module 1 is 10Gb/s, the RS 1 can process the MAC frame stream from the MAC module 1. 1 is processed as a 32-bit data stream; for another example, when the rate of the MAC module N is 1Gb/s, the RS N can process the MAC frame stream N from the MAC module N into an 8-bit data stream.
  • the encoding unit 120 is configured to encode each data code stream to obtain a corresponding data code block. If the total bandwidth supported by the flexible interface 100 is less than 40 Gb/s, the encoding unit 120 performs 66B/68B encoding according to the method in Clause 49 of IEEE 802.3; if the total bandwidth supported by the flexible interface 100 is greater than or equal to 40 Gb/s, the encoding unit 120 performs 66B/68B encoding is performed in the manner of Clause 82 in IEEE 802.3. On the other hand, the overhead frame control unit 110 generates the overhead frame 1 based on the data streams received from the plurality of MAC modules.
  • the overhead frame 1 is used to indicate the data code blocks generated by the MAC module that should be filled in each time slot.
  • the overhead frame 1 may include at least one overhead block, and the size of one overhead block is 68 bits.
  • the number of overhead blocks included in the overhead frame 1 is related to the time slots included in a time slot cycle. Assuming that a time slot cycle includes 2 time slots, the overhead frame 1 may include only one overhead block 1 as shown in Figure 2a; Assuming that one time slot period includes 8 time slots, the overhead frame 1 may include an overhead block 1 and an overhead block 2 as shown in FIG. 2 b .
  • overhead frame 1 (ie, overhead block 1) may include: an indication information field for characterizing the frame as an overhead frame, a time slot 1 field, and a time slot 2 field.
  • the indication information field may include at least one of a synchronization header (English: synchronization header, SH for short) field, a 0x4B field and a 0x5 field, where the value of the SH field is 10, indicating that the overhead block 1 is the control of the overhead frame 1 Block; the position and value of the 0x4B field and the 0x5 field are used to identify the frame as an overhead frame that is different from the data frame.
  • a synchronization header English: synchronization header, SH for short
  • the value of the 0x4B field can be 0x4B
  • the value of the 0x5 field can be 0x5
  • the value of the 0x4B field and the 0x5 field can also be Define the data frame as an overhead frame by other values.
  • the indication information fields in FIG. 2a include the SH field, the 0x4B field and the 0x5 field.
  • the time slot 1 field includes the rate 1 (English: Client Rate 1) of the MAC module 1 (English: Client Rate 1) and the identification 1 (English: Client ID 1) of the MAC module 1 that need to be filled into the time slot 1.
  • the time slot 2 field includes the required The rate 2 (English: Client Rate 2) of the MAC module 2 and the identification 2 (English: Client ID 2) of the MAC module 2 are filled into the time slot 2.
  • the overhead frame 1 may also include a time slot status identification bit Reset, a remote PHY fault (English: Remote PHY Fault, abbreviated: RPF) indication bit, a local PHY fault (English: Local PHY Fault, abbreviated: LPF) indication Bit, PHY chip rate indication field (English: PHY Rate) and cyclic redundancy check (English: cyclic redundancy check, abbreviated: CRC) field, where Reset is used to characterize the time slot state as the default state or negotiation state; RPF and LPF are used to indicate whether the PHY chip is faulty, PHY Rate is used to indicate the maximum rate supported by the PHY chip (that is, the total bandwidth supported by the flexible interface), and CRC is used to check the overhead frame 1.
  • Reset is used to characterize the time slot state as the default state
  • overhead block 1 may include: indication information field 1, timeslot 1 field, timeslot 2 field, and timeslot 3 field
  • overhead block 2 may include indication information field 2, timeslot 4 field, timeslot 5 field, timeslot 6 field, slot 7 field and slot 8 field.
  • the overhead block 1 may also include fields such as R, RPF, LPF, PHY Rate, and Reserved.
  • PHY Rate can indicate different bandwidths through different values. For example, if the length of the PHY Rate is 3 bits, then the corresponding relationship between the preset PHY Rate value and the bandwidth can be seen in Table 1 below:
  • the value of the PHY Rate in the overhead frame 1 generated by the overhead frame control unit 110 may be 100. It should be noted that the total bandwidth supported by the flexible interface is no longer limited to the standard Ethernet interface rate. The flexible interface can support any bandwidth by defining the value of the reserved PHY Rate or expanding the bit length occupied by the PHY Rate. .
  • Client Rate can also indicate the rate of the MAC module through different values. For example, if the length of the Client Rate is 4 bits, then the corresponding relationship between the value of the preset Client Rate and the rate of the corresponding MAC module can be seen in Table 2 below.
  • each time slot field in the overhead frame indicates the rate of the MAC module corresponding to the time slot, so that the flexible interface supports communication between multiple MAC modules and multiple PHY modules in the PHY chip at different rates.
  • the allocating unit 130 can allocate the data code blocks to the code block stream corresponding to the time slot in the time slot cycle according to the overhead frame 1, and generate the code block stream 1, if the code block stream 1 is between the MAC chip 10 and the PHY chip 20
  • the code block stream 1 carries the overhead frame 1 and several timeslot periods filled with data code blocks.
  • the filling frequency of the data code block corresponding to each MAC module in the code block stream is determined according to the rate of the MAC module and the equivalent bandwidth corresponding to each time slot.
  • the rate of the data block filled in each time slot is 2.5 Gb/s
  • the rate of the MAC module 1 is 1.25 Gb/s
  • the MAC module 1 is filled in one time slot of every two time slot periods.
  • the specific time slot field in a time slot cycle that the data code block in the MAC module is filled into can be flexibly designed according to needs, which is not specifically limited in this embodiment of the present application.
  • the overhead frame control unit 120 may determine the MAC module corresponding to each time slot according to the sequence of the data stream generated in the RS corresponding to the MAC module.
  • the value of Client Rate The rate of the MAC module 0x0 Reserved 0x1 10Mb/s 0x2 100Mb/s 0x3 1Gb/s 0x4 1.25Gb/s 0x5 2.5Gb/s 0x6 5Gb/s 0x7 10Gb/s 0x8 20Gb/s 0x9 ⁇ 0xF Reserved
  • the bandwidth supported by the flexible interface is 20Gb/s
  • the PHY chip 20 includes 8 PHY modules
  • the MAC chip 10 includes MAC module 1 to MAC module 4, and the rates are 1.25Gb/s, 1Gb/s, and 2.5Gb/s respectively. and 5Gb/s.
  • Fig. 3a it is a schematic diagram of the format of a code block stream 1.
  • One time slot cycle includes 8 time slots, and the equivalent bandwidth of each time slot is 2.5Gb/s.
  • the MAC module is determined according to the sequence in which the RS generates data code blocks. 1 corresponds to time slot 7, MAC module 2 corresponds to time slot 2, MAC module 3 corresponds to time slot 5, and MAC module 4 corresponds to time slot 1 and time slot 3.
  • the rate of the MAC module 2 is 1 Gb/s
  • the data code blocks corresponding to the MAC module 2 are filled in the timeslot 2 of two timeslot periods every five timeslot periods.
  • the rate of the MAC module 3 is 2.5 Gb/s, the data code blocks corresponding to the MAC module 3 are filled in the time slot 5 of each time slot cycle.
  • the data code blocks corresponding to the MAC module 4 are filled in the time slot 1 and the time slot 3 of each time slot cycle. It should be noted that the correspondence between each time slot in a time slot cycle and the MAC module is fixed. Taking the above MAC module 1 as an example, in the time slot cycle in which the data code block does not need to be filled in time slot 7 , the time slot 7 can be filled with a special code block (for example: an idle control code block (English: idle control block) or an error control code block (English: error control block), represented by X in the figure). Referring to Fig. 3b, it is a schematic diagram of the format of another code block stream 1.
  • a special code block for example: an idle control code block (English: idle control block) or an error control code block (English: error control block)
  • One time slot cycle includes 16 time slots, and the equivalent bandwidth of each time slot is 1.25 Gb/s.
  • the MAC is determined according to the sequence in which the RS generates data code blocks.
  • Module 1 corresponds to slot 14, MAC module 2 corresponds to slot 5, MAC module 3 corresponds to slot 9 and slot 10, and MAC module 4 corresponds to slot 1, slot 2, slot 3, slot 7 and slot 8 . Since the rate of the MAC module 1 is 1.25 Gb/s, the data code block corresponding to the MAC module 1 is filled once in one time slot 14 in each time slot cycle. Similarly, since the rate of the MAC module 2 is 1 Gb/s, the data code blocks corresponding to the MAC module 2 are filled in the timeslot 5 of the four timeslot periods every five timeslot periods.
  • the data code blocks corresponding to the MAC module 3 are filled in the time slot 9 and the time slot 10 of each time slot cycle. Since the rate of the MAC module 4 is 5Gb/s, the data code blocks corresponding to the MAC module 4 are filled in time slot 1, time slot 2, time slot 3, time slot 7 and time slot 8 of each time slot cycle.
  • the number filled in the time slot can be regarded as the identification of the MAC module.
  • the number 4 in the time slot 1 represents the identification of the MAC module 4, which is used to indicate that the data code corresponding to the MAC module 4 is filled in the time slot. Piece.
  • the flexible interface 100 can also use the SerDes 140 to serialize the code block stream 1 to obtain the processing result 1, and send the processing result 1 to the PHY chip 20 through a physical channel in the corresponding direction in the physical channel 300. , and is specifically sent to the flexible interface 200 in the PHY chip 20 .
  • the flexible interface 100 can also use the scrambling processing unit 150 to perform scramble processing on the code block stream 1 before the serialization processing, so as to obtain the code block stream 1'. , and then use the SerDes 140 to serialize the code block stream 1' to obtain a processing result 1', and send the processing result 1' to the PHY chip 20 through a physical channel in the corresponding direction in the physical channel 300.
  • the scrambling processing unit 150 may be implemented using a scrambler defined by IEEE 802.3 Clause 49.2.6.
  • the flexible interface 100 may further include a forward error correction FEC sublayer, where the FEC sublayer is used to perform FEC encoding on the code block stream.
  • the scrambling processing unit 150 scrambles the code block stream 1 to obtain the code block stream 1'; then, the FEC sublayer is used to perform FEC encoding on the code block stream 1' to obtain the code block stream 1 ”; then, the SerDes 140 serializes the code block stream 1” to obtain the processing result 1”, and sends the processing result 1” to the PHY chip 20 through a physical channel in the corresponding direction in the physical communication 300.
  • the allocation unit 230 can allocate each data code block to the corresponding PHY module based on the overhead frame 1 superior.
  • the data is the processing result 1 obtained by serializing the code block stream 1 by the SerDes 140
  • the SerDes 240 may firstly perform the deserializing processing on the processing result 1, The code block stream 1 is obtained, and then the allocation unit 230 allocates each data code block to the corresponding PHY module based on the overhead frame 1 in the code block stream 1.
  • the SerDes 240 can also perform deserialization processing on the processing result 1' to obtain the code.
  • Block stream 1' the code block stream 1' is descrambled by the scrambling processing unit 250 to obtain code block stream 1, and then the allocation unit 230 allocates each data code block to the block stream 1 based on the overhead frame 1 in the code block stream 1. on the corresponding PHY module.
  • the execution sequence of the operations of deserializing and descrambling the received data in the flexible interface 200 is merely exemplary, and is not specifically limited in the embodiments of the present application.
  • the scrambling processing unit 250 may be implemented using a scrambler defined by IEEE 802.3 Clause 49.2.6.
  • the flexible interface 200 may include the mapping relationship 1 between the MAC module and the PHY module, then the allocation unit 230 may determine which MAC module the data code blocks in each time slot come from based on the overhead frame 1, and then Considering the mapping relationship 1 and the indication of the overhead frame 1 comprehensively, the data code blocks in each time slot are accurately allocated to the corresponding PHY modules.
  • the flexible interface 200 may also include the mapping relationship 2 between each time slot and the PHY module. Then, the allocation unit 230 can accurately assign the data code blocks in each time slot to the data code block based on the indication of the mapping relationship 2. assigned to the corresponding PHY module.
  • each MAC module supports the same rate
  • each PHY module supports the same rate
  • the MAC module and the PHY module have the same rate.
  • Configuration information is pre-stored on the PHY chip 20 and the MAC chip 10, wherein the configuration information 1 on the PHY chip 20 is used to indicate the corresponding relationship between the PHY module and the time slot, and the configuration information 2 on the MAC chip 10 is used to indicate the MAC module and the time slot. gap correspondence.
  • the number of times each PHY module or MAC module appears in the configuration information can be determined according to the rate supported by the PHY module or MAC module and the equivalent bandwidth corresponding to each time slot.
  • each MAC module corresponds to a time slot in a time slot period; for another example, the equivalent bandwidth of each time slot is 2.5 Gb/s, the rate supported by each MAC module is also 5Gb/s, then in the configuration information 2, each MAC module corresponds to two time slots in a time slot cycle, and the two time slots corresponding to the same MAC module can be time slots.
  • the adjacent time slots in the slot period may also be non-adjacent time slots in the time slot period.
  • the configuration information 1 on the PHY chip 20 may be as shown in Table 3 below:
  • the configuration information 1 on the PHY chip 20 may be as shown in Table 4 below:
  • the configuration information 2 on the MAC chip 10 may be as shown in Table 5 below:
  • the configuration information 2 on the MAC chip 10 may be as shown in Table 6 below:
  • the PHY module 1 to the PHY module N send the data stream to the flexible interface 200 through the corresponding port.
  • the encoding unit 220 is configured to encode each data code stream to obtain a corresponding data code block.
  • the encoding mode of the encoding unit 220 is not specifically limited in the embodiment of the present application. For example, if the total bandwidth supported by the flexible interface 200 is less than 40Gb/s, the encoding unit 220 performs 66B/68B encoding according to the method of Article 49 in IEEE 802.3.
  • the total bandwidth supported by the interface 200 is greater than or equal to 40 Gb/s, and the encoding unit 220 performs 66B/68B encoding according to the IEEE 802.3 clause 82; for another example, the encoding method is not distinguished by the total bandwidth supported by the flexible interface 200, the encoding unit 220 66B/68B encoding is performed according to Clause 49 in IEEE 802.3.
  • the overhead frame control unit 110 generates the overhead frame 2 .
  • the overhead frame 2 is used to indicate the starting position of the code block stream transmitted by the flexible interface 200.
  • the overhead frame 2 may include at least one 68-bit overhead block, and the overhead frame 2 may include an indication information field for characterizing the frame as an overhead frame.
  • the indication information field may include at least one of the SH field, the 0x4B field, and the 0x5 field, where the value of the SH field is 10, indicating that the overhead block is the control block of the overhead frame 2 .
  • the indication information field in FIG. 4 includes the SH field, the 0x4B field, and the 0x5 field.
  • the overhead frame 2 may also include fields such as R, RPF, LPF, PHY Rate, and CRC.
  • the overhead frame 2 may further include a Reserved field of several bits.
  • the allocation unit 230 can allocate the data code blocks to the corresponding time slots according to the configuration information 1, and generate a code block stream 2. If the code block stream 2 is the first data communication between the MAC chip 10 and the PHY chip 20, then, The start position in the code block stream 2 fills the overhead frame 2 to indicate the start position of the data code block in the code block stream 2 .
  • the configuration information 1 on the PHY chip 20 is shown in Table 4 above, Then, the generated code block stream 2 can be referred to as shown in FIG. 5 . Referring to FIG.
  • the code block stream 2 may include overhead frame 2, time slot 1 corresponding to PHY module 1, time slot 2 corresponding to PHY module 2, time slot 3 corresponding to PHY module 3, and time slot 4 corresponding to PHY module 4 , Time slot 5 corresponding to PHY module 1, time slot 6 corresponding to PHY module 2, time slot 7 corresponding to PHY module 3, time slot 8 corresponding to PHY module 4, time slot 1 corresponding to PHY module 1, corresponding to PHY module 2 time slot 2, . . .
  • the number filled in the time slot can be regarded as the identity of the PHY module.
  • the number 1 in the time slot 1 represents the identity of the PHY module 1, which is used to indicate that the data code corresponding to the PHY module 1 is filled in the time slot. Piece.
  • the flexible interface 200 can also use the SerDes 240 to serialize the code block stream 2 to obtain a processing result 2, and send the processing result 2 to the MAC chip 10 through a physical channel in the corresponding direction in the physical channel 300. , which is specifically sent to the flexible interface 100 in the MAC chip 10 .
  • the flexible interface 200 can also use the scrambling processing unit 250 to scramble the code block stream 2 before the serialization process to obtain the code block stream 2', wherein , the lengths of the code block stream 2 and the code block stream 2' are the same, and then use the SerDes 240 to serialize the code block stream 2' to obtain the processing result 2', and pass the processing result 2' through the corresponding direction in the physical channel 300. is sent to the MAC chip 10 on a physical channel.
  • the allocation unit 130 can determine the starting position of the code block stream 2 based on the overhead frame 2, so as to be based on Configuration information 2 allocates each data code block to the corresponding PHY module. For example, if the configuration information 1 on the PHY chip 20 is shown in Table 4, the configuration information 2 on the MAC chip 10 can be shown in Table 7 below:
  • the SerDes 140 may first perform deserialization processing on the processing result 2, The code block stream 2 is obtained, and then the allocation unit 130 allocates each data code block to the corresponding MAC module based on the configuration information 2 .
  • the SerDes 140 can also perform deserialization processing on the processing result 2' to obtain the code.
  • the scrambling processing unit 150 descrambles the code block stream 2' to obtain code block stream 2, and then the allocation unit 130 allocates each data code block to the corresponding MAC module based on the configuration information 2.
  • the execution sequence of the operations of deserializing and descrambling the received data in the flexible interface 100 is only exemplary, and is not specifically limited in this embodiment of the present application.
  • the frequency of inserting overhead frames into the code block stream and the insertion timing can be flexibly set according to timing requirements.
  • overhead frames can be periodically inserted into the code block stream, and the period for inserting overhead frames can be a preset number (eg, 20,000) timeslot periods. Errors occur in the process of allocating code blocks to various modules, which ensures the orderly and accurate allocation to a certain extent.
  • an overhead frame may also be inserted into the code block stream based on a trigger event, where the trigger event may be an event such as a time slot allocation modification or a link failure. In this case, the inserted overhead frame is generated based on the trigger event.
  • a new overhead frame in this way, ensures that after a trigger event occurs, the allocation can still be guaranteed to be accurate.
  • the at least two overhead blocks can be inserted into the code block stream at the same time, so that the flexible interface in the code block stream can be received.
  • the overhead frame is quickly acquired from the code block stream, so that the data code blocks in each time slot can be directly allocated based on the overhead frame, which improves the processing efficiency of the flexible interface.
  • at least two overhead frames can also be inserted into the code block stream at different positions.
  • the code block The position in the stream where the overhead block is inserted is usually the position between two slot periods, instead of choosing to insert the overhead block inside a slot period.
  • the flexible interface that receives the code block stream needs to obtain all the overhead blocks of the overhead frame from different positions of the code block stream first, before obtaining the last overhead block. All the data code blocks of the time slot need to be buffered, and then the data code blocks in each time slot are allocated based on the overhead frame determined by all the overhead blocks. In this case, the impact of inserting overhead frames on the code block stream can be effectively reduced.
  • the overhead blocks may be inserted periodically, and the number of code blocks included in the insertion period may be an integer multiple of the total number of time slots included in one slot cycle.
  • an overhead frame includes two overhead blocks, and the overhead frame is inserted periodically, and the period for inserting the overhead frame is 2500 time slot periods.
  • the code block stream includes: overhead frame, 2500 timeslot periods, overhead frames, 2500 timeslot periods, ...; in another case, if two overhead blocks 1 and 2 are inserted into the code block stream respectively, and are separated by 2 timeslot periods, then the format of the code block stream can be seen in Figure 6b.
  • the code block stream sequentially includes: overhead block 1, 2 timeslot periods, overhead Block 2, 2498 slot periods, overhead block 1, 2 slot periods, overhead block 2, 2498 slot periods, . . .
  • the overhead blocks are continuously sent until all the overhead blocks included in the overhead frame are received and identified, and then, from the next non-overhead frame (the next non-overhead frame)
  • the overhead frame is the data code block adjacent to the last overhead block, for example, can be identified by the overhead block identification field) as the starting point of sending the data code block, and starts to send the code block stream including the data code block to the opposite end.
  • overhead blocks can also be sent periodically, that is, a fixed number of data code blocks are spaced between two adjacent overhead blocks, for example, 10 data code blocks are spaced between two adjacent overhead blocks.
  • the opposite end may feed back an acknowledgement signal through the overhead frame to trigger the sending end to no longer send the overhead blocks. It should be noted that, in the above two examples, if there is an operation of losing the lock during operation or the configuration needs to be modified, the entire process of sending the overhead frame needs to be restarted.
  • the above-mentioned first example is an example of the first possible implementation manner provided by the embodiment of the present application.
  • the above second example is an example of the second possible implementation manner provided by the embodiment of the present application.
  • data is processed by a flexible interface in a MAC chip and a PHY chip, so as to achieve the effect of orderly transmission of multiple data streams of different rates between the MAC chip and the PHY chip.
  • the method can be implemented in the scenario shown in FIG. 1 , where the MAC chip is the MAC chip 10 in FIG. 1 , the PHY chip is the PHY chip 20 , and the flexible interface corresponds to the flexible interface 100 in the MAC chip 10 and the interface in the PHY chip 20 .
  • Flexible interface 200 is flexible interface in FIG. 1 , where the MAC chip is the MAC chip 10 in FIG. 1 , the PHY chip is the PHY chip 20 , and the flexible interface corresponds to the flexible interface 100 in the MAC chip 10 and the interface in the PHY chip 20 .
  • Flexible interface 200 is flexible interface in a MAC chip and a PHY chip
  • the following method 100 and method 200 correspond to the first possible implementation manner, wherein the method 100 takes the process of sending data from the MAC chip 10 to the PHY chip 20 as an example to introduce the data processing process performed by the flexible interface; The process of sending data to the MAC chip 10 is taken as an example to introduce the data processing process performed by the MII.
  • the following methods 300 and 400 correspond to the second possible implementation manner, wherein the method 300 takes the process of sending data from the MAC chip 10 to the PHY chip 20 as an example to introduce the data processing process performed by the flexible interface; The process of sending data to the MAC chip 10 is taken as an example to introduce the data processing process performed by the flexible interface.
  • the total bandwidth supported by the flexible interface is considered in the process that the encoding unit encodes the data code stream to obtain the data code block. If the total bandwidth supported by the flexible interface 100 is less than 40 Gb/s, the encoding unit 120 performs 66B/68B encoding according to the method in Clause 49 of IEEE 802.3; if the total bandwidth supported by the flexible interface 100 is greater than or equal to 40 Gb/s, the encoding unit 120 performs 66B/68B encoding is performed in the manner of Clause 82 in IEEE 802.3.
  • FIG. 7 is a schematic flowchart of a data processing method 100 in an embodiment of the present application.
  • S101 to S105 in the method 100 are performed by the flexible interface 100 in the MAC chip 10
  • S106 to S107 are performed by the flexible interface 200 in the PHY chip 20 .
  • the method 100 may include, for example:
  • the overhead frame control unit 110 in the MII 100 generates a first overhead frame according to the data stream from each MAC module, where the first overhead frame is used to indicate the time slot corresponding to each data stream.
  • each MAC module will process the MAC frame stream to be sent to the PHY chip 20 by connecting the corresponding RS to each MAC module to obtain the data code. stream, and send the data stream to the flexible interface 100 through the corresponding port.
  • the processing of the MAC frame stream by the RS may be, for example, by dividing the MAC frame stream based on the rate supported by the MAC module from which the MAC frame stream comes to obtain a data stream.
  • the RS 1 connected to the MAC module 1 can divide the MAC frame stream 1 from the MAC module 1 into 32-bit data streams; if the rate of the MAC module N is 1Gb/s, the RS N connected to the MAC module N can The MAC frame stream N from the MAC module N is divided into 8-bit data streams.
  • the flexible interface 100 may generate a first overhead frame based on the data stream.
  • the first overhead frame please refer to the description of the overhead frame 1 in the first example above, and the specific format may refer to FIG. 2a and 2b and related descriptions.
  • the encoding unit 120 in the flexible interface 100 encodes the data code stream from each MAC module to obtain a data code block corresponding to each MAC module.
  • the total bandwidth supported by the flexible interface 100 depends on the total bandwidth of the PHY chip 20 , and the total bandwidth of the PHY chip 20 may be the sum of the rates supported by each PHY module in the PHY chip 20 .
  • S101 and S102 are not limited in order. S101 may be executed first and then S102 may be executed, or S102 may be executed first and then S101, or S101 and S102 may be executed simultaneously, which is not specifically limited in this embodiment.
  • the allocation unit 130 in the flexible interface 100 inserts each data code block into the corresponding time slot based on the first overhead frame, and generates a first code block stream, where the first code block stream includes the first overhead frame and the inserted data code block slot.
  • inserting each data code block into the corresponding time slot may refer to inserting each data code block into the corresponding position of the time slot corresponding to the time slot period in the code block stream to obtain the first code block stream to be sent.
  • the lower 4 bits of each slot field in the first overhead frame indicate the Client Rate
  • the upper 4 bits indicate the Client ID.
  • the rate supported by MAC module 1 is 1.25GB/s
  • the rate supported by MAC module 2 is 1Gb/s
  • the rate supported by MAC module 3 is 2.5Gb/s
  • the rate supported by MAC module 4 is 5Gb/s.
  • the first overhead frame is shown in Figure 8a.
  • the format of the generated first code block stream can be referred to, for example, FIG. 3a.
  • the lower 4 bits of each slot field in the first overhead frame indicate the Client Rate
  • the upper 4 bits indicate the Client ID.
  • the rate supported by the MAC module 1 is 100MB/s
  • the rate supported by the MAC module 2 is 1Gb/s
  • the rate supported by the MAC module 3 is 5Gb/s
  • the rate supported by the MAC module 4 is 1Gb/s.
  • the first overhead frame is shown in Figure 8b.
  • the format of the generated first code block stream can be seen, for example, as shown in FIG. 9.
  • the data code block corresponding to the MAC module 3 occupies time slot 1 to time slot 5, and the MAC
  • the data code blocks corresponding to the module 2 and the MAC module 4 occupy time slot 6 and time slot 7 respectively, and the data code block corresponding to the MAC module 1 is inserted in every 10 time slot cycles, and the data code block corresponding to the MAC module 1 occupies In the time slot 8, in the time slot period in which the data code block corresponding to the MAC module 1 is not inserted, a special code block (such as an idle control code block or an error control code block) is used to occupy the time slot 8.
  • a special code block such as an idle control code block or an error control code block
  • the SerDes 140 in the flexible interface 100 performs serialization processing on the first code block stream to obtain a first processing result.
  • S104 is an optional step.
  • Serializing the first code block stream can ensure orderly transmission of the first code block stream through the physical channel 300 .
  • the flexible interface 100 may further include a scrambling code processing unit 150 for scrambling the first code block stream obtained by the allocation unit 130 to obtain an updated first code block stream; then, the The SerDes 140 performs serialization processing on the updated first code block stream to obtain a first processing result. In this way, by scrambling the first code block stream, the data sent to the PHY chip 20 can be more balanced.
  • the flexible interface 100 sends the first processing result to the MII 200 through the physical channel 300.
  • the SerDes 240 in the flexible interface 200 deserializes the first processing result to obtain a first code block stream.
  • S106 is an optional step.
  • the flexible interface 200 also needs to perform deserializing processing on the received first processing result through the SerDes 240 , to get the first code block stream.
  • the serialization process performed by the SerDes 140 and the deserialization process performed by the SerDes 240 are inverse processes, that is, B is obtained by serializing A, and A is obtained by deserializing B.
  • the flexible interface 200 also includes a scrambling code processing unit 250, configured to descramble the deserialized code block stream , get the first code block stream.
  • a scrambling code processing unit 250 configured to descramble the deserialized code block stream , get the first code block stream.
  • the allocation unit 230 in the flexible interface 200 allocates each data code block in the first code block stream to each PHY module in the PHY chip 20 based on the first overhead frame in the first code block stream.
  • the flexible interface 200 may include a mapping relationship 1 between the MAC module and the PHY module. Then, the allocation unit 230 may determine the MAC module from which the data code blocks in each time slot come from based on the first overhead frame, and then comprehensively consider the mapping According to the relationship 1 and the indication of the first overhead frame, the data code blocks in each time slot are accurately allocated to the corresponding PHY modules.
  • the flexible interface 200 may also include the mapping relationship 2 between each time slot and the PHY module, then the allocation unit 230 can accurately allocate the data code blocks in each time slot based on the indication of the mapping relationship 2 to the corresponding PHY module.
  • the PHY module can perform standard processing on the data code block.
  • Access English: physical medium attachment, referred to as: PMA
  • FEC forward error correction
  • the flexible interface in the MAC chip generates an overhead frame, and the overhead frame can indicate the time slot occupied by the data code block corresponding to each MAC module.
  • the flexible interface can follow the overhead frame. Instructs to accurately fill the corresponding data code block in the time slot of the code block stream, and insert the overhead frame into the code block stream and send it to the PHY chip.
  • the flexible interface in the PHY chip can also be determined according to the overhead frame in the code block stream.
  • the PHY module corresponding to the data code block in each time slot so that each data code block in the code block stream is allocated to multiple PHY modules in the PHY chip, so as to realize various data codes of different rates between the PHY chip and the MAC chip.
  • the effect of orderly transmission of streams satisfies the demand for better communication between the PHY chip and the MAC chip.
  • FIG. 10 is a schematic flowchart of a data processing method 200 in an embodiment of the present application.
  • S201 - S205 in the method 200 are performed by the flexible interface 200 in the PHY chip 20
  • S206 - S207 are performed by the flexible interface 100 in the MAC chip 10 .
  • the method 200 may include, for example:
  • the overhead frame control unit 210 in the flexible interface 200 generates a second overhead frame according to the data stream from each PHY module, where the second overhead frame is used to indicate the time slot corresponding to each data stream.
  • the flexible interface 200 may generate a second overhead frame based on the data code stream.
  • the second overhead frame please refer to the relevant description of the overhead frame 1 in the first example above, and the specific format may refer to FIG. 2a and FIG. 2b and related descriptions, the difference is that the time slot field in the second overhead frame includes the rate supported by the PHY module corresponding to the time slot and the identifier of the PHY module.
  • the encoding unit 220 in the flexible interface 200 encodes the data code stream from each PHY module to obtain a data code block corresponding to each PHY module.
  • S201 and S202 are not limited in sequence. S201 may be executed first and then S202 may be executed, or S202 may be executed first and then S201 may be executed, or S201 and S202 may be executed simultaneously, which is not specifically limited in this embodiment.
  • the allocation unit 230 in the flexible interface 200 inserts each data code block into the corresponding time slot based on the second overhead frame, and generates a second code block stream, where the second code block stream includes the second overhead frame and the inserted data code block time slot.
  • inserting each data code block into the corresponding time slot may refer to inserting each data code block into the corresponding position of the time slot corresponding to the time slot period in the code block stream to obtain the second code block stream to be sent.
  • the SerDes 240 in the flexible interface 200 performs serialization processing on the second code block stream to obtain a second processing result.
  • S204 is an optional step.
  • the flexible interface 200 may further include a scrambling code processing unit 250, configured to scramble the second code block stream obtained by the allocation unit 230 to obtain an updated second code block stream; then, the SerDes 240 serializes the updated second code block stream to obtain a second processing result. In this way, the data sent to the MAC chip 10 can be more balanced by scrambling the second code block stream.
  • a scrambling code processing unit 250 configured to scramble the second code block stream obtained by the allocation unit 230 to obtain an updated second code block stream; then, the SerDes 240 serializes the updated second code block stream to obtain a second processing result.
  • the flexible interface 200 sends the second processing result to the flexible interface 100 through the physical channel 300 .
  • the SerDes 140 in the flexible interface 100 deserializes the second processing result to obtain a second code block stream.
  • S206 is an optional step.
  • the flexible interface 100 also needs to perform deserializing processing on the received second processing result through the SerDes 140 , to obtain the second code block stream.
  • the flexible interface 100 also includes a scrambling code processing unit 150, configured to descramble the deserialized code block stream , to obtain the second code block stream.
  • the allocation unit 130 in the flexible interface 100 allocates each data code block in the second code block stream to each MAC module in the MAC chip 10 based on the second overhead frame in the second code block stream.
  • the flexible interface 100 may include a mapping relationship 1 between the MAC module and the PHY module. Then, the allocation unit 130 may determine, based on the second overhead frame, the PHY module from which the data code blocks in each time slot come from, and then comprehensively consider the mapping According to the indication of relation 1 and the second overhead frame, the data code blocks in each time slot are accurately allocated to the corresponding MAC module.
  • the flexible interface 100 may also include the mapping relationship 3 between each time slot and the MAC module, then the allocation unit 130 can accurately allocate the data code blocks in each time slot based on the indication of the mapping relationship 3 to the corresponding PHY module.
  • S207 may specifically refer to: the flexible interface 100 sends the data code blocks to the RS corresponding to each MAC module through a plurality of ports, and the RS performs corresponding processing and sends the data block to the MAC module.
  • the flexible interface in the PHY chip generates an overhead frame, and the overhead frame can indicate the time slot occupied by the data code block corresponding to each PHY module.
  • the flexible interface can follow the overhead frame. Instructs to accurately fill the corresponding data code block in the time slot of the code block stream, and insert the overhead frame into the code block stream and send it to the MAC chip.
  • the flexible interface in the MAC chip can also be determined according to the overhead frame in the code block stream.
  • the MAC module corresponding to the data code block in each time slot so that each data code block in the code block stream is allocated to multiple MAC modules in the MAC chip, so as to realize various data codes of different rates between the PHY chip and the MAC chip.
  • configuration information needs to be stored in both the MAC chip 10 and the PHY chip 20.
  • the configuration information may be hardened on the chip by hardware and cannot be Modified content.
  • the registers of the MAC chip 10 and the PHY chip 20 both store the operation mode, and the operation mode corresponds to the configuration information. After the flexible interface reads the operation mode, it can automatically process data according to the configuration information corresponding to the operation mode.
  • the rates supported by each MAC module are the same or different, and the rates supported by each PHY module are the same or different,
  • the rates of the MAC block and the PHY block are the same or different.
  • the first configuration information on the PHY chip 20 is used to indicate the corresponding relationship between the PHY module and the time slot
  • the second configuration information on the MAC chip 10 is used to indicate the corresponding relationship between the MAC module and the time slot.
  • the number of times each PHY module or MAC module appears in the configuration information can be determined according to the rate supported by the PHY module or MAC module and the equivalent bandwidth corresponding to each time slot.
  • each MAC module corresponds to a time slot in a time slot period; for another example, the equivalent bandwidth of each time slot is 2.5Gb/s, and the rate supported by each MAC module is also 5Gb/s.
  • each MAC module corresponds to two time slots in one time slot period, and the two time slots corresponding to the same MAC module can be It is an adjacent time slot in the time slot period, or it can be a non-adjacent time slot in the time slot period.
  • FIG. 11 is a schematic flowchart of a data processing method 300 in an embodiment of the present application.
  • S301 to S305 in the method 300 are performed by the flexible interface 100 in the MAC chip 10
  • S306 to S307 are performed by the flexible interface 200 in the PHY chip 20 .
  • the method 300 may include, for example:
  • the overhead frame control unit 110 in the flexible interface 100 generates a third overhead frame, where the third overhead frame is used to indicate the starting position of the stream of code blocks to be transmitted.
  • the flexible interface 100 may generate a third overhead frame based on the data code stream.
  • the third overhead frame please refer to the relevant description of the overhead frame 2 in the second example above, and the specific format may refer to FIG. 4 and related instructions.
  • the encoding unit 120 in the flexible interface 100 encodes the data code stream from each MAC module to obtain a data code block corresponding to each MAC module.
  • S301 and S302 are not limited in order. S301 may be executed first and then S302 may be executed, or S302 may be executed first and then S301 may be executed, or S301 and S302 may be executed simultaneously, which is not specifically limited in this embodiment.
  • the allocation unit 130 in the flexible interface 100 inserts each data code block into the corresponding time slot according to the second configuration information, and generates a third code block stream, where the third code block stream includes a third overhead frame and an inserted data code block time slot.
  • inserting each data code block into the corresponding time slot may refer to inserting each data code block into the corresponding position of the time slot corresponding to the time slot period in the code block stream to obtain the third code block stream to be sent.
  • the generated third code block stream may include: the third overhead frame, the time slot 1 corresponding to the MAC module 1, the time slot 2 corresponding to the MAC module 2, and the MAC module Time slot 1 corresponding to 3, time slot 2 corresponding to MAC module 4, time slot 1 corresponding to MAC module 5, time slot 2 corresponding to MAC module 6, time slot 1 corresponding to MAC module 7, time slot corresponding to MAC module 8 2. Time slot 1 corresponding to MAC module 1, time slot 2 corresponding to MAC module 2, . . .
  • the generated third code block stream may include: the third overhead frame, the time slot 1 corresponding to the MAC module 1, the time slot 2 corresponding to the MAC module 2, and the MAC Time slot 3 corresponding to module 3, time slot 4 corresponding to MAC module 4, time slot 5 corresponding to MAC module 5, time slot 6 corresponding to MAC module 6, time slot 7 corresponding to MAC module 7, time slot corresponding to MAC module 8 Slot 8, time slot 1 corresponding to MAC module 1, time slot 2 corresponding to MAC module 2, . . .
  • the SerDes 140 in the flexible interface 100 performs serialization processing on the third code block stream to obtain a third processing result.
  • S304 is an optional step.
  • the flexible interface 100 may further include a scrambling code processing unit 150, configured to scramble the third code block stream obtained by the allocation unit 130 to obtain an updated third code block stream; then, in the flexible interface 100 The SerDes 140 serializes the updated third code block stream to obtain a third processing result. In this way, the data sent to the PHY chip 20 can be more balanced by scrambling the third code block stream.
  • a scrambling code processing unit 150 configured to scramble the third code block stream obtained by the allocation unit 130 to obtain an updated third code block stream; then, in the flexible interface 100 The SerDes 140 serializes the updated third code block stream to obtain a third processing result. In this way, the data sent to the PHY chip 20 can be more balanced by scrambling the third code block stream.
  • the flexible interface 100 sends the third processing result to the flexible interface 200 through the physical channel 300 .
  • the SerDes 240 in the flexible interface 200 deserializes the third processing result to obtain a third code block stream.
  • S306 is an optional step.
  • the flexible interface 200 also needs to use the SerDes 240 to deserialize the received third processing result. , to obtain the third code block stream.
  • the flexible interface 200 also includes a scrambling code processing unit 250, configured to descramble the deserialized code block stream , get the third code block stream.
  • the allocation unit 230 in the flexible interface 200 allocates each data code block in the third code block stream to each PHY module in the PHY chip 20 based on the first configuration information and the third overhead frame.
  • the first configuration information stored on the PHY chip 20 may be as shown in Table 3 above.
  • the PHY module can perform standard processing on the data code block, for example, through PCS processing, PMA processing, or FEC processing.
  • the flexible interface in the MAC chip generates an overhead frame, and the overhead frame can indicate the starting position of the stream of code blocks to be transmitted, and the MAC chip includes an overhead frame for indicating the difference between the MAC module and the time slot.
  • the flexible interface can accurately fill the corresponding data block in the time slot of the code block stream according to the instructions of the configuration information, and insert the overhead frame into the code block stream and send it to the PHY chip.
  • the flexible interface in the PHY chip can also determine the starting position of the code block stream according to the overhead frame in the code block stream, and determine each time based on the configuration information stored in the PHY chip to indicate the correspondence between the PHY module and the time slot.
  • the PHY module corresponding to the data code block in the slot so that each data code block in the code block stream is allocated to multiple PHY modules in the PHY chip, and the effect of orderly transmission of the data code stream between the PHY chip and the MAC chip is realized. It meets the demand for better communication between the PHY chip and the MAC chip.
  • FIG. 12 is a schematic flowchart of a data processing method 400 in an embodiment of the present application.
  • S401 to S405 in the method 400 are performed by the flexible interface 200 in the PHY chip 20
  • S406 to S407 are performed by the flexible interface 100 in the MAC chip 10 .
  • the method 400 may include, for example:
  • the overhead frame control unit 210 in the flexible interface 200 generates a fourth overhead frame, where the fourth overhead frame is used to indicate the starting position of the stream of code blocks to be transmitted.
  • the flexible interface 200 may generate a fourth overhead frame based on the data code stream.
  • the fourth overhead frame please refer to the relevant description of the overhead frame 2 in the second example above, and the specific format can be referred to in FIG. 4 and related instructions.
  • the encoding unit 220 in the flexible interface 200 encodes the data code stream from each PHY module to obtain a data code block corresponding to each MAC module.
  • S401 and S402 are not limited in sequence. S401 may be executed first and then S402 may be executed, or S402 may be executed first and then S401 may be executed, or S401 and S402 may be executed simultaneously, which is not specifically limited in this embodiment.
  • the allocation unit 230 in the flexible interface 200 inserts each data code block into the corresponding time slot based on the first configuration information, and generates a fourth code block stream, where the fourth code block stream includes a fourth overhead frame and an inserted data code block time slot.
  • Inserting each data code block into the corresponding time slot may refer to inserting each data code block into the corresponding position of the time slot corresponding to the time slot period in the code block stream to obtain the fourth code block stream to be sent.
  • the SerDes 240 in the flexible interface 200 serializes the fourth code block stream to obtain a fourth processing result.
  • S404 is an optional step.
  • the flexible interface 200 may further include a scrambling code processing unit 250, configured to scramble the fourth code block stream obtained by the allocation unit 230 to obtain an updated fourth code block stream; then, in the flexible interface 200 SerDes 240 serializes the updated fourth code block stream to obtain a fourth processing result.
  • a scrambling code processing unit 250 configured to scramble the fourth code block stream obtained by the allocation unit 230 to obtain an updated fourth code block stream
  • SerDes 240 serializes the updated fourth code block stream to obtain a fourth processing result.
  • the flexible interface 200 sends the fourth processing result to the flexible interface 100 through the physical channel 300 .
  • the SerDes 140 in the flexible interface 100 deserializes the fourth processing result to obtain a fourth code block stream.
  • S406 is an optional step.
  • the flexible interface 100 also needs to perform deserializing processing on the received fourth processing result through the SerDes 140 , to obtain the fourth code block stream.
  • the flexible interface 100 also includes a scrambling code processing unit 150, configured to descramble the deserialized code block stream code to obtain the fourth code block stream.
  • the allocation unit 130 in the flexible interface 100 allocates each data code block in the fourth code block stream to each MAC module in the MAC chip 10 based on the second configuration information and the fourth overhead frame.
  • the second configuration information on the MAC chip 10 may be as shown in Table 5 above.
  • S407 may specifically refer to: the flexible interface 100 sends the data code blocks to the RS corresponding to each MAC module respectively through multiple ports, and the RS performs corresponding processing and sends the data block to the MAC module.
  • the flexible interface in the PHY chip generates an overhead frame, where the overhead frame can indicate the starting position of the stream of code blocks to be transmitted, and the PHY chip includes an overhead frame for indicating the difference between the PHY module and the time slot.
  • the flexible interface can accurately fill the corresponding data code block in the time slot of the code block stream according to the instructions of the configuration information, and insert the overhead frame into the code block stream and send it to the MAC chip.
  • the flexible interface in the MAC chip can also determine the starting position of the code block stream according to the overhead frame in the code block stream, and determine each time based on the configuration information stored in the MAC chip to indicate the correspondence between the MAC module and the time slot.
  • the MAC module corresponding to the data code block in the slot, so that each data code block in the code block stream is allocated to multiple MAC modules in the MAC chip, and the effect of orderly transmission of the data code stream between the PHY chip and the MAC chip is realized. It meets the demand for better communication between the PHY chip and the MAC chip.
  • each time slot corresponds to only one MAC module.
  • the rates supported by each MAC module may be different, and the MAC module with a smaller rate and the MAC module with a larger rate occupy the same time slot bandwidth. In this way, the MAC module supporting the smaller rate will waste the bandwidth on the time slot. resource.
  • the equivalent bandwidth of each time slot is 2.5Gb/s, but the rate supported by a certain MAC module is 100Mb/s, then the MAC module occupies the time slot in each time slot cycle, and the time slot waste of bandwidth resources.
  • the embodiments of the present application also provide a mechanism to support multiplexing of a time slot by at least two MAC modules, that is, data code blocks corresponding to multiple MAC modules occupy the same time slot in different time slot periods respectively. gaps to improve resource utilization.
  • the first overhead frame may further include multiplexing indication information, which is used to indicate that a certain time slot is multiplexed by multiple MAC modules.
  • the multiplexing indication information may be carried by the time slot field corresponding to the multiplexed time slot, and the value of the time slot field corresponding to the multiplexed time slot is a specific value (for example, each of the time slot fields The value of each bit is 1, for example, the value of each bit in the time slot field is 0), which is used to identify that the time slot corresponding to the time slot field is multiplexed by multiple MAC modules.
  • the first overhead frame can use the extended overhead block to indicate at least two MAC module identifiers (English: Client ID) and the rate supported by the MAC module (English: Client ID) corresponding to the multiplexed time slot. : Client Rate).
  • the first overhead frame only needs to be inserted before the first slot cycle of the first code block stream, and the first overhead frame does not need to be inserted before each slot cycle in the future, and the first overhead frame can also be ordered according to the first overhead frame.
  • the accurate insertion of the data code blocks corresponding to each MAC module is completed to generate the first code block stream.
  • the first overhead frame may add an extended overhead block 3 based on the overhead frame 1 shown in FIG. 2b, as shown in FIG. 13a.
  • the value of the time slot 1 field in the overhead block 1 is 8'hFF (that is, all 8 bits are 1)
  • the extended overhead block 3 may also include fields such as Reserved and CRC.
  • the first overhead frame may add an extended overhead block 4 on the basis of the overhead frame 1 shown in FIG. 13a, as shown in FIG. 13b.
  • the value of the time slot 1 field and the time slot 3 field in the overhead block 1 are both 8'hFF.
  • the extended overhead block 4 may also include fields such as Reserved and CRC.
  • the first overhead frame may add information about multiplexing of timeslot 3 in the extended overhead block 3 of the overhead frame 1 shown in FIG. 13a, as shown in FIG. 13c.
  • the extended overhead block 3 may also include fields such as Reserved and CRC.
  • the first overhead frame may indicate, through the Reserved field, the identifiers (English: Client ID) of at least two MAC modules corresponding to the multiplexed time slot and the rate (English: Client Rate) supported by the MAC modules.
  • the identifiers English: Client ID
  • the rate English: Client Rate
  • the first overhead frame can be based on the overhead frame 1 shown in FIG. 2b, in the Reserved field after the time slot 8 field, carrying The identifier of the multiplexed time slot 0, the time slot 0 subfield 1 and the time slot 0 subfield 2 are shown in FIG. 13d for details.
  • the multiplexed time slot and the relevant information of the MAC module corresponding to the time slot can be carried in the In the Reserved field, there is no need to insert the first overhead frame including the relevant information of the MAC module corresponding to the multiplexed timeslot under the timeslot period before each timeslot period.
  • a first overhead frame can be inserted before each time slot period, and the Reserved field of the first overhead frame can be inserted It includes the relevant information of the MAC module corresponding to the multiplexed timeslot under the timeslot period.
  • the multiplexing indication information may also be borne by several bits of the time slots included in a time slot period in the Reserved field (also referred to as the multiplexing enable identification field).
  • the multiplexing enable Each bit in the identification field corresponds to a time slot. When the value of this bit is 1, it means that the time slot corresponding to this bit is multiplexed. When the value of this bit is 0, it means that the corresponding time slot of this bit is Slots are not multiplexed.
  • a first overhead frame needs to be inserted before each time slot period, and the multiplexed time slot in the first overhead frame corresponds to In the slot field of , it carries the identifier and rate of the MAC module occupying the slot in the current slot cycle.
  • the first overhead frame can be based on the overhead frame 1 shown in FIG.
  • the multiplexing enable flag field as shown in Figure 14a, in the first overhead frame generated and inserted before the first time slot period, the 0th bit of the multiplexing enable flag field is 1, and the time slot
  • the 1 field carries the identification of MAC module 1 (English: Client ID 1) and the rate supported by MAC module 1 (English: Client Rate 1); as shown in Figure 14b, before the second slot cycle, the first generated and inserted
  • the 0th bit of the multiplexing enable identification field is 1, and the time slot 1 field is used to carry the identification of the MAC module 2 (English: Client ID 2) and the rate supported by the MAC module 2 (English: Client Rate 2);
  • the first overhead frame generated and inserted is shown in Figure 14a; before the fourth time slot cycle, the first overhead frame generated and inserted is shown in Figure 14b; like
  • the corresponding relationship between the multiplexed time slot and the MAC module can be carried in the first overhead frame by adding an extended overhead block, so that there is no need to insert the corresponding relationship before each time slot period. Therefore, the resources of the first code block stream occupied by the first overhead frame are reduced, and the impact of inserting the first overhead frame on data transmission between the MAC chip 10 and the PHY chip 20 can also be reduced.
  • the embodiment of the present application also provides an extended flexible interface, which is used for cascading PHYs chip.
  • the PHY chip 20 includes: a flexible interface 200, a PHY module 1, a PHY module 2, . . . , a PHY module M, and an extended flexible interface 210
  • the PHY chip 30 may include: an extended flexible interface 310.
  • the extended flexible interface 210 and the extended flexible interface 310 may also be connected through a pair of physical channels 400 .
  • the bandwidth of the PHY chip 20 is 10Gb/s and the bandwidth of the PHY chip 30 is 20Gb/s
  • the number of MAC modules in the MAC chip 10 is greater than or equal to the total number (M+K) of PHY modules included in the two PHY chips.
  • the flexible interface 200 can allocate the received data code blocks in the first code block stream to the PHY module 1, PHY module 2, . . . , and PHY module M according to the first overhead frame.
  • the interface 210 and the extended flexible interface 310 are assigned to PHY module (M+1), PHY module (M+2), . . . , PHY module (M+K).
  • the flexible interface 200 can be allocated to the PHY module (M+1), the PHY module (M+2), .
  • the configuration information on the MAC chip 10 and the PHY chip 20 may remain unchanged, and the PHY chip 20 can process the sent and received data based on the configuration information, and the extended The flexible interface 210 and the extended flexible interface 310 are only regarded as transmission media, and do not process data.
  • the part corresponding to the PHY module in the PHY chip 30 may be identified as the extended flexible interface 210 , and other configuration information may be stored on the PHY chip 30 , indicating that the PHY chip 30 The corresponding time slot of each PHY module, in this way, the effective transmission of data can also be realized.
  • FIG. 16 is a schematic structural diagram of a data processing apparatus 1600 according to an embodiment of the application.
  • the data processing apparatus 1600 is located at or communicates with a flexible interface.
  • the apparatus 1600 includes a first generating unit 1601, an encoding unit 1602, and a first generating unit 1601. Second generation unit 1603.
  • the interface is connected to a medium access control MAC chip, and the MAC chip includes a first MAC module and a second MAC module.
  • the first generating unit 1601 is configured to generate a first overhead frame according to the first data code stream from the first MAC module and the second data code stream from the second MAC module, the first overhead frame The frame is used to indicate the time slot corresponding to the first data code stream and the second data code stream; the encoding unit 1602 is used to encode the first data code stream and the second data code stream respectively, obtaining the first data code block and the second data code block; the second generating unit 1603 is configured to insert the first data code block into the first time slot based on the first overhead frame, and generate the second data code block block into a second time slot to generate a first code block stream, the first code block stream including a first overhead frame, the first data code block inserted in the first time slot, the second time slot the second data code block inserted in .
  • the apparatus 1600 may further include a serializing unit and a transmitting unit.
  • the serialization unit is used for serializing the first code block stream by using a serializer SerDes to obtain a first processing result; the sending unit is used for sending the first processing result to The first physical layer PHY chip.
  • the apparatus 1600 may further include: a receiving unit, a deserializing unit, and an allocating unit.
  • the receiving unit is configured to receive the second processing result from the first PHY chip;
  • the deserializing unit is configured to use the SerDes to deserialize the second processing result to obtain a second code block. a flow;
  • an allocation unit configured to allocate data code blocks in the second code block flow to multiple MAC modules corresponding to the MAC chip according to the second overhead frame in the second code block flow.
  • the apparatus 1600 may further include a scrambling unit, a serializing unit, and a transmitting unit.
  • the scrambling unit is used for scrambling the first code block stream by using the scrambling code processing unit to obtain the updated first code block stream;
  • the serialization unit is used for using the serializer SerDes to scramble the code block stream.
  • the updated first code block stream is serialized to obtain a third processing result;
  • the sending unit is configured to send the third processing result to the first physical layer PHY chip.
  • the MAC chip further includes a plurality of ports, and each port in the plurality of ports communicates with a corresponding MAC module through a corresponding adaptation sublayer RS
  • the apparatus may further include a processing unit.
  • the processing unit is configured to use the RS to process the MAC frame stream sent by the corresponding MAC module into a data stream; or, the processing unit is configured to use the RS to process the data stream received by the interface into a MAC frame stream and send it to Corresponding MAC module.
  • FIG. 17 is a schematic structural diagram of a data processing apparatus 1700 provided by an embodiment of the present application.
  • the data processing apparatus 1700 is located at or communicates with a flexible interface.
  • the apparatus 1700 includes: a first generating unit 1701, an encoding unit 1702 and The second generation unit 1703 .
  • the interface connects the first physical layer PHY module and the second PHY module.
  • the first generating unit 1701 is configured to generate a first overhead frame according to the first data code stream from the first PHY module and the second data code stream from the second PHY module, the first overhead frame The frame is used to indicate the time slot corresponding to the first data code stream and the second data code stream; the encoding unit 1702 is used to encode the first data code stream and the second data code stream respectively, obtaining the first data code block and the second data code block; the second generating unit 1703 is configured to insert the first data code block into the first time slot based on the first overhead frame, and generate the second data code block block into a second time slot to generate a first code block stream, the first code block stream including a first overhead frame, the first data code block inserted in the first time slot, the second time slot the second data code block inserted in .
  • the apparatus 1700 may further include a serializing unit and a transmitting unit.
  • the serialization unit is used for serializing the first code block stream by using a serializer SerDes to obtain a first processing result; the sending unit is used for sending the first processing result to Media Access Control MAC chip.
  • the apparatus 1700 may further include: a receiving unit, a deserializing unit, and an allocating unit.
  • the receiving unit is configured to receive the second processing result from the MAC chip;
  • the deserializing unit is configured to perform deserialization processing on the second processing result by using the SerDes, and the obtained second code block stream is
  • the second code block stream includes a second overhead frame, a third data code block, and a fourth data code block;
  • an allocation unit is configured to divide the third data code block and the first data code block according to the second overhead frame.
  • Four data code blocks are allocated to the first PHY module and the second PHY module, respectively.
  • the apparatus 1700 may further include a scrambling unit, a serializing unit, and a transmitting unit.
  • the scrambling unit is used for scrambling the first code block stream by using the scrambling code processing unit to obtain the updated first code block stream;
  • the serialization unit is used for using the serializer SerDes to scramble the code block stream.
  • the updated first code block stream is serialized to obtain a third processing result;
  • a sending unit is configured to send the third processing result to the medium access control MAC chip.
  • the first PHY module and the second PHY module may belong to the first PHY chip; or, the first PHY module belongs to the first PHY chip, the second PHY module belongs to the second PHY chip, and the first PHY chip and the first PHY chip belong to the first PHY chip. Two PHY chips are connected through an extended interface.
  • FIG. 18 is a schematic structural diagram of a data processing apparatus 1800 provided by an embodiment of the present application.
  • the data processing apparatus 1800 is located at or communicates with a flexible interface.
  • the apparatus 1800 includes: a first generating unit 1801, an encoding unit 1802 and The second generation unit 1803 .
  • the interface is connected to a medium access control MAC chip, and the MAC chip includes a first MAC module and a second MAC module.
  • the first generating unit 1801 is used to generate a first overhead frame
  • the first overhead frame is used to indicate the starting position of the code block stream
  • the encoding unit 1802 is used to generate the first overhead frame from the first MAC module.
  • the data code stream and the second data code stream from the second MAC module are encoded respectively to obtain a first data code block and a second data code block; the second generation unit 1803 is configured to be based on the first overhead frame and the second data code block.
  • configuration information insert the first data code block into the first time slot, insert the second data code block into the second time slot, and generate a first code block stream, where the first code block stream includes a first overhead frame , the first data code block inserted in the first time slot and the second data code block inserted in the second time slot, the configuration information is used to indicate the MAC module in the MAC chip corresponding to the time slot.
  • FIG. 19 is a schematic structural diagram of a data processing apparatus 1900 provided by an embodiment of the application.
  • the data processing apparatus 1900 is located at or communicates with a flexible interface.
  • the apparatus 1900 includes: an acquisition unit 1901, a determination unit 1902, and an allocation unit 1903.
  • an interface is connected to a medium access control MAC chip, and the MAC chip includes a first MAC module and a second MAC module.
  • the obtaining unit 1901 is configured to obtain a first code block stream from a physical layer PHY chip, where the first code block stream includes a first overhead frame, a first data code block inserted in a first time slot, and a second time slot.
  • the determining unit 1902 is used to determine the starting position of the data code block in the first code block stream according to the first overhead frame;
  • the allocation unit 1903 is used to determine the starting position of the data code block according to the configuration information , assigning the first data code block and the second data code block in the first code block stream to the first MAC module and the second MAC module respectively, and the configuration information is used to indicate Correspondence between MAC modules in the MAC chip and time slots.
  • FIG. 20 is a schematic structural diagram of a data processing apparatus 2000 according to an embodiment of the present application.
  • the data processing apparatus 2000 is located at or communicates with a flexible interface.
  • the apparatus 2000 includes: a first generating unit 2001 and an encoding unit 2002 and the second generation unit 2003.
  • the interface is connected to a physical layer PHY chip, and the PHY chip includes a first PHY module and a second PHY module.
  • the first generating unit 2001 is configured to generate a first overhead frame, where the first overhead frame is used to indicate the starting position of the code block stream; the encoding unit 2002 is configured to generate a first overhead frame from the first PHY module.
  • the data code stream and the second data code stream from the second PHY module are encoded respectively to obtain a first data code block and a second data code block;
  • the second generation unit 2003 is configured to be based on the first overhead frame and configuration information, insert the first data code block into the first time slot, insert the second data code block into the second time slot, and generate a first code block stream, where the first code block stream includes a first overhead frame , the first data code block inserted in the first time slot and the second data code block inserted in the second time slot, the configuration information is used to indicate the PHY module in the PHY chip corresponding to the time slot.
  • FIG. 21 is a schematic structural diagram of a data processing apparatus 2100 provided by an embodiment of the application.
  • the data processing apparatus 2100 is located at or communicates with a flexible interface.
  • the apparatus 2100 includes: an acquisition unit 2101, a determination unit 2102, and an allocation unit Unit 2103.
  • the interface is connected to a physical layer PHY chip, and the PHY chip includes a first PHY module and a second PHY module.
  • the obtaining unit 2101 is configured to obtain a first code block stream from a medium access control MAC chip, where the first code block stream includes a first overhead frame, a first data code block inserted in a first time slot, and a second time code block.
  • the determining unit 2102 is used to determine the starting position of the data code block in the first code block stream according to the first overhead frame;
  • the allocation unit 2103 is used to determine the starting position of the data code block according to the configuration information, respectively assigning the first data code block and the second data code block in the first code block stream to the first PHY module and the second PHY module, and the configuration information is used for Indicates the correspondence between the PHY module and the time slot in the PHY chip.
  • the first overhead frame may include indication information for characterizing the frame as an overhead frame, and the indication information may be one or more of the following information: a synchronization header SH field, a 0x4B field, and a 0x5 field, where the value of the SH field is The value is 10.
  • an embodiment of the present application further provides a network device 2200, as shown in FIG. 22 .
  • the network device 2200 includes a first communication interface 2201 , a second communication interface 2202 and a processor 2203 .
  • the first communication interface 2201 is used for performing the receiving operation performed by the network device in the foregoing embodiments
  • the second communication interface 2201 is used for performing the sending operation performed by the network device in the foregoing embodiments
  • the processor 2203 is used for performing the foregoing various Other operations other than the receiving operation and the sending operation performed by the network device in the embodiment.
  • an embodiment of the present application further provides a network device 2300, as shown in FIG. 23 .
  • the network device 2300 includes a processor 2302 in communication with memory 2301 .
  • the memory 2301 includes computer-readable instructions; the processor 2302 is configured to execute the computer-readable instructions, so that the network device 2300 executes the method in the embodiment shown in FIG. 7 , FIG. 10 , FIG. 11 or FIG. 12 .
  • the processor may be a central processing unit (English: central processing unit, abbreviation: CPU), a network processor (English: network processor, abbreviation: NP), or a combination of CPU and NP.
  • the processor may also be an application-specific integrated circuit (English: application-specific integrated circuit, abbreviation: ASIC), a programmable logic device (English: programmable logic device, abbreviation: PLD) or a combination thereof.
  • the above-mentioned PLD can be a complex programmable logic device (English: complex programmable logic device, abbreviation: CPLD), field programmable logic gate array (English: field-programmable gate array, abbreviation: FPGA), general array logic (English: generic array logic, abbreviation: GAL) or any combination thereof.
  • the processor may refer to one processor, or may include multiple processors.
  • the memory may include volatile memory (English: volatile memory), such as random-access memory (English: random-access memory, abbreviation: RAM); the memory may also include non-volatile memory (English: non-volatile memory), For example, read-only memory (English: read-only memory, abbreviation: ROM), flash memory (English: flash memory), hard disk (English: hard disk drive, abbreviation: HDD) or solid-state hard disk (English: solid-state drive, Abbreviation: SSD); the memory may also comprise a combination of the above-mentioned kinds of memory.
  • the memory may refer to one memory, or may include multiple memories.
  • a computer program or instruction is stored in the memory, and the computer program or instruction includes a plurality of software modules, such as a sending module, a processing module and a receiving module.
  • the processor can perform corresponding operations according to the instructions of each software module.
  • the operation performed by a software module actually refers to the operation performed by the processor according to the instruction of the software module.
  • the processor executes the computer program or instructions in the memory, it can execute all operations in the data processing method according to the instructions of the computer program or instructions.
  • an embodiment of the present application also provides a computer-readable storage medium, where a computer program or instruction is stored in the computer-readable storage medium, and when it is run on a computer, the computer is made to execute the above FIG. 7 and FIG. 10 . , the method in the embodiment shown in FIG. 11 or FIG. 12 .
  • the embodiments of the present application also provide a computer program product, including a computer program or computer-readable instructions, when the computer program or the computer-readable instructions are run on a computer, the computer is caused to execute the aforementioned FIG. 7 , FIG. 10 , The method in the embodiment shown in FIG. 11 or FIG. 12 .

Abstract

Disclosed are an interface, a data processing method and apparatus, and a network device. The interface can be shared by a plurality of PHY modules in a PHY chip and a plurality of MAC modules in a MAC chip. By using a relationship between a time slot and a PHY module and a relationship between a time slot and a MAC module, the transmission of data code streams at a plurality of different rates between the PHY chip and the MAC chip is realized by means of a physical channel corresponding to each direction, such that there is no need to occupy a large number of chip pins and the area of a circuit board, and the problems whereby an existing serialized MII cannot be compatible with a plurality of different rates and cannot be shared by a plurality of PHY modules and a plurality of MAC modules are solved, thereby achieving the effect of orderly transmitting data code streams at a plurality of different rates between a PHY chip and a MAC chip.

Description

一种接口、数据处理方法、装置及网络设备An interface, data processing method, device and network equipment
本申请要求于2020年8月17日提交中国国家知识产权局、申请号为202010827823.7、申请名称为“接口、计算设备及网络系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中;并且,本申请还要求于2020年11月30提交中国国家知识产权局、申请号为202011375388.5、申请名称为“一种接口、数据处理方法、装置及网络设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202010827823.7 and the application name "Interfaces, Computing Devices and Network Systems" filed with the State Intellectual Property Office of China on August 17, 2020, the entire contents of which are incorporated herein by reference In the application; and, this application also requires the priority of the Chinese patent application submitted to the State Intellectual Property Office of China on November 30, 2020, the application number is 202011375388.5, and the application name is "an interface, data processing method, device and network equipment". rights, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请涉及通信技术领域,特别是涉及一种接口、数据处理方法、装置及网络设备。The present application relates to the field of communication technologies, and in particular, to an interface, a data processing method, an apparatus, and a network device.
背景技术Background technique
由于介质无关接口(英文:media independent interface,简称:MII)不受PHY采用的信号传递介质的影响,所以,为了满足一种介质访问控制(英文:Media Access Control,简称:MAC)芯片适配多种不同介质类型的物理层(英文:physical layer,简称:PHY)芯片的需求,通常采用MII进行MAC芯片与PHY芯片之间的通信,但是目前的MII实现的效果不好,无法满足实际需求。Since the media independent interface (English: media independent interface, referred to as: MII) is not affected by the signal transmission medium used by the PHY, in order to meet a media access control (English: Media Access Control, referred to as: MAC) chip adaptation To meet the needs of physical layer (English: physical layer, PHY) chips of different media types, MII is usually used to communicate between the MAC chip and the PHY chip, but the current MII implementation is not effective and cannot meet the actual needs.
发明内容SUMMARY OF THE INVENTION
基于此,本申请实施例提供了一种接口、数据处理方法、装置及网络设备,满足MAC芯片和PHY芯片之间更高的通信需求。Based on this, the embodiments of the present application provide an interface, a data processing method, an apparatus, and a network device to meet higher communication requirements between a MAC chip and a PHY chip.
本申请实施例中的接口,可以是集成在发送侧设备和接收侧设备内的一对接口模块,或者,也可以是连接在发送侧设备和接收侧设备之间的独立芯片。The interface in this embodiment of the present application may be a pair of interface modules integrated in the transmitting-side device and the receiving-side device, or may also be an independent chip connected between the transmitting-side device and the receiving-side device.
第一方面,本申请实施例提供了一种接口,该接口至少可以包括:编码单元、分配单元和开销帧控制单元。其中,开销帧控制单元,用于基于从介质访问控制MAC芯片中对应的多个MAC模块接收的数据码流,生成第一开销帧;编码单元,用于将所述数据码流编码为对应的数据码块;分配单元,用于根据所述第一开销帧,将所述数据码块分配到对应的时隙,生成第一码块流,所述第一码块流包括所述第一开销帧和多个数据码块。这样,利用时隙和MAC模块之间的关系生成的第一码块流,通过每个方向对应的一条物理通道到达PHY芯片时,PHY芯片对应的接口按照该第一码块流中的第一开销帧确定各个时隙中的数据码块对应的PHY模块,从而将码块流中的各数据码块分配到PHY芯片中的多个PHY模块,不仅无需占用大量的芯片管脚和电路板面积,而且解决了现有的串行化MII无法兼容多种不同速率以及无法实现多个PHY模块和多个MAC模块共享的问题,实现了PHY芯片和MAC芯片之间多种不同速率的数据码流有序传输的效果。In a first aspect, an embodiment of the present application provides an interface, where the interface may at least include: a coding unit, an allocation unit, and an overhead frame control unit. Wherein, the overhead frame control unit is configured to generate a first overhead frame based on the data streams received from the corresponding multiple MAC modules in the medium access control MAC chip; the encoding unit is configured to encode the data streams into corresponding a data code block; an allocation unit configured to allocate the data code block to a corresponding time slot according to the first overhead frame, and generate a first code block stream, where the first code block stream includes the first overhead frame and multiple blocks of data. In this way, when the first code block stream generated by the relationship between the time slot and the MAC module reaches the PHY chip through a physical channel corresponding to each direction, the interface corresponding to the PHY chip will follow the first code block stream in the first code block stream. The overhead frame determines the PHY module corresponding to the data code block in each time slot, so that each data code block in the code block stream is allocated to multiple PHY modules in the PHY chip, not only does it not need to occupy a lot of chip pins and circuit board area , and solves the problem that the existing serialized MII cannot be compatible with multiple different rates and cannot be shared by multiple PHY modules and multiple MAC modules, and realizes data streams of multiple different rates between the PHY chip and the MAC chip. The effect of orderly transmission.
在一些实现方式中,第一开销帧包括一个时隙周期内各个时隙对应的MAC模块的速率和MAC模块的标识。那么,该分配单元,具体用于:根据所述第一开销帧中携带的各个时隙对应的MAC模块的标识,将每个MAC模块对应的数据码块填充到该MAC模块的标识对应的时隙;根据填充完成的多个数据码块和所述第一开销帧,生成所述第一码块流。如此,按照各个时隙中的指示有序填充得到待发送的码块流,为码块流有序传输以及后续被有序接收和分配提供了数据基础。In some implementation manners, the first overhead frame includes the rate of the MAC module and the identifier of the MAC module corresponding to each time slot in a time slot period. Then, the allocating unit is specifically configured to: according to the identifier of the MAC module corresponding to each time slot carried in the first overhead frame, fill the data code block corresponding to each MAC module to the time corresponding to the identifier of the MAC module and generating the first code block stream according to the multiple data code blocks that are filled and the first overhead frame. In this way, the code block stream to be sent is obtained by orderly filling according to the instructions in each time slot, which provides a data basis for orderly transmission of the code block stream and subsequent orderly reception and allocation.
在一些实现方式中,当第一时隙对应第一MAC模块和第二MAC模块时,第一开销帧 还包括第一指示信息,该第一指示信息用于指示第一时隙被多个MAC模块复用。In some implementations, when the first time slot corresponds to the first MAC module and the second MAC module, the first overhead frame further includes first indication information, where the first indication information is used to indicate that the first time slot is used by multiple MAC modules Module reuse.
作为一个示例,第一开销帧还可以包括扩展开销块,该扩展开销块中包括第一时隙的标识、第一MAC模块的速率、第一MAC模块的标识、第二MAC模块的速率和第二MAC模块的标识。这样,确保在不同的时隙周期被多个MAC模块复用的时隙,能够有序且准确的插入对应的数据码块,为该接口的通信效率的通信质量提供了保障。As an example, the first overhead frame may further include an extended overhead block, where the extended overhead block includes the identifier of the first time slot, the rate of the first MAC module, the identifier of the first MAC module, the rate of the second MAC module, and the rate of the first MAC module. 2. Identification of the MAC module. In this way, it is ensured that time slots multiplexed by multiple MAC modules in different time slot periods can be inserted into corresponding data code blocks in an orderly and accurate manner, which provides a guarantee for the communication efficiency and communication quality of the interface.
作为另一个示例,该第一开销帧中所述第一时隙对应的字段,在第一时隙周期内携带第一MAC模块的速率和第一MAC模块的标识,在第二时隙周期内携带第二MAC模块的速率和第二MAC模块的标识,在第三时隙周期内携带第一MAC模块的速率和第一MAC模块的标识,在第四时隙周期内携带第二MAC模块的速率和第二MAC模块的标识,其中,第一时隙周期和第二时隙周期相邻,第二时隙周期和第三时隙周期相邻,第三时隙周期和第四时隙周期相邻。这样,通过多个不同时隙周期对应的开销帧中携带不同的指示信息,确保在不同的时隙周期被多个MAC模块复用的时隙,能够有序且准确的插入对应的数据码块,为该接口的通信效率的通信质量提供了保障。As another example, the field corresponding to the first time slot in the first overhead frame carries the rate of the first MAC module and the identifier of the first MAC module in the first time slot period, and in the second time slot period Carry the rate of the second MAC module and the identifier of the second MAC module, carry the rate of the first MAC module and the identifier of the first MAC module in the third time slot period, and carry the data of the second MAC module in the fourth time slot period. The rate and the identification of the second MAC module, wherein the first time slot period is adjacent to the second time slot period, the second time slot period is adjacent to the third time slot period, and the third time slot period is adjacent to the fourth time slot period adjacent. In this way, by carrying different indication information in the overhead frames corresponding to multiple different timeslot periods, it is ensured that timeslots multiplexed by multiple MAC modules in different timeslot periods can be inserted into corresponding data code blocks in an orderly and accurate manner , which provides a guarantee for the communication efficiency and communication quality of the interface.
第二方面,本申请实施例还提供了一种接口,该接口可以包括分配单元,其中,该分配单元,用于根据第一码块流中的第一开销帧,将第一码块流中的数据码块分配到对应的介质访问控制MAC模块,所述第一码块流为所述接口从物理层PHY芯片接收的。这样,利用时隙和MAC模块之间的关系,可以对从PHY芯片接收的码块流准确的分配到对应的MAC模块上,实现了PHY芯片和MAC芯片之间多种不同速率的数据码流有序传输的效果。In a second aspect, an embodiment of the present application further provides an interface, where the interface may include an allocation unit, where the allocation unit is configured to, according to the first overhead frame in the first code block stream, allocate the first code block stream to the first code block stream. The data code block is allocated to the corresponding medium access control MAC module, and the first code block stream is received by the interface from the physical layer PHY chip. In this way, using the relationship between the time slot and the MAC module, the code block stream received from the PHY chip can be accurately allocated to the corresponding MAC module, and a variety of data code streams of different rates between the PHY chip and the MAC chip can be realized. The effect of orderly transmission.
其中,每个MAC模块对应的数据码块在所述第一码块流中的填充频率根据该MAC模块的速率和每个时隙对应的等效带宽确定。例如,每个时隙填充的数据码块的速率为2.5Gb/s,MAC模块1的速率为1.25Gb/s,那么,每2个时隙周期的一个时隙中填充MAC模块1。Wherein, the filling frequency of the data code block corresponding to each MAC module in the first code block stream is determined according to the rate of the MAC module and the equivalent bandwidth corresponding to each time slot. For example, the rate of the data block filled in each time slot is 2.5 Gb/s, and the rate of the MAC module 1 is 1.25 Gb/s, then, the MAC module 1 is filled in one time slot of every two time slot periods.
第三方面,本申请实施例还提供了一种接口,该接口可以包括:编码单元、分配单元和开销帧控制单元。其中,开销帧控制单元,用于基于从物理层PHY芯片中对应的多个PHY模块接收的数据码流,生成第一开销帧;编码单元,用于将所述数据码流编码为对应的数据码块;分配单元,用于根据所述第一开销帧,将所述数据码块分配到对应的时隙,生成第一码块流,所述第一码块流包括所述第一开销帧和多个数据码块。这样,利用时隙和PHY模块之间的关系生成的第一码块流,通过每个方向对应的一条物理通道到达MAC芯片时,MAC芯片对应的接口按照该第一码块流中的第一开销帧确定各个时隙中的数据码块对应的MAC模块,从而将码块流中的各数据码块分配到MAC芯片中的多个MAC模块,不仅无需占用大量的芯片管脚和电路板面积,而且解决了现有的串行化MII无法兼容多种不同速率以及无法实现多个PHY模块和多个MAC模块共享的问题,实现了PHY芯片和MAC芯片之间多种不同速率的数据码流有序传输的效果。In a third aspect, an embodiment of the present application further provides an interface, where the interface may include: an encoding unit, an allocation unit, and an overhead frame control unit. Wherein, the overhead frame control unit is used to generate a first overhead frame based on the data code streams received from the corresponding multiple PHY modules in the physical layer PHY chip; the encoding unit is used to encode the data code stream into corresponding data A code block; an allocation unit configured to allocate the data code block to a corresponding time slot according to the first overhead frame, and generate a first code block stream, where the first code block stream includes the first overhead frame and multiple data code blocks. In this way, when the first code block stream generated by using the relationship between the time slot and the PHY module reaches the MAC chip through a physical channel corresponding to each direction, the interface corresponding to the MAC chip will follow the first code block stream in the first code block stream. The overhead frame determines the MAC module corresponding to the data code block in each time slot, so that each data code block in the code block stream is allocated to multiple MAC modules in the MAC chip, not only does it not need to occupy a lot of chip pins and circuit board area , and solves the problem that the existing serialized MII cannot be compatible with multiple different rates and cannot be shared by multiple PHY modules and multiple MAC modules, and realizes data streams of multiple different rates between the PHY chip and the MAC chip. The effect of orderly transmission.
在一些实现方式中,第一开销帧可以包括一个时隙周期内各个时隙对应的PHY模块的速率和PHY模块的标识。那么,分配单元,具体用于:根据所述第一开销帧中携带的各个时隙对应的PHY模块的标识,将每个PHY模块对应的数据码块填充到该PHY模块的标识 对应的时隙;根据填充完成的多个数据码块和所述第一开销帧,生成所述第一码块流。如此,按照各个时隙中的指示有序填充得到待发送的码块流,为码块流有序传输以及后续被有序接收和分配提供了数据基础。In some implementations, the first overhead frame may include the rate of the PHY module and the identifier of the PHY module corresponding to each time slot in one time slot period. Then, the allocation unit is specifically configured to: according to the identifier of the PHY module corresponding to each time slot carried in the first overhead frame, fill the data code block corresponding to each PHY module to the time slot corresponding to the identifier of the PHY module ; generating the first code block stream according to the filled-in multiple data code blocks and the first overhead frame. In this way, the code block stream to be sent is obtained by orderly filling according to the instructions in each time slot, which provides a data basis for orderly transmission of the code block stream and subsequent orderly reception and allocation.
其中,该接口支持的总带宽可以等于PHY芯片的总带宽。The total bandwidth supported by the interface may be equal to the total bandwidth of the PHY chip.
第四方面,本申请实施例还提供了一种接口,该接口可以包括分配单元。该分配单元,用于根据第一码块流中的第一开销帧,将所述第一码块流中的数据码块分配到第一物理层PHY芯片对应的PHY模块,所述第一码块流为所述接口从介质访问控制MAC芯片接收到的。这样,利用时隙和PHY模块之间的关系,可以对从MAC芯片接收的码块流准确的分配到对应的PHY模块上,实现了PHY芯片和MAC芯片之间多种不同速率的数据码流有序传输的效果。In a fourth aspect, an embodiment of the present application further provides an interface, where the interface may include a distribution unit. The allocating unit is configured to allocate, according to the first overhead frame in the first code block stream, the data code blocks in the first code block stream to the PHY module corresponding to the first physical layer PHY chip, the first code block The block stream is received by the interface from the medium access control MAC chip. In this way, using the relationship between the time slot and the PHY module, the code block stream received from the MAC chip can be accurately allocated to the corresponding PHY module, and a variety of data code streams at different rates between the PHY chip and the MAC chip can be realized. The effect of orderly transmission.
在一些实现方式中,如果第一PHY芯片还包括第一扩展的接口,该第一扩展的接口,用于和第二PHY芯片的第二扩展的接口通信,第二PHY芯片包括多个PHY模块。那么,该分配单元,具体用于:按照所述第一码块流中的第一开销帧,将所述第一码块流中的部分数据码块分配到所述第一PHY芯片对应的PHY模块;按照所述第一码块流中的第一开销帧,将所述第一码块流中的另一部分数据码块通过所述第一扩展的接口和所述第二扩展的接口,分配到所述第二PHY芯片对应的PHY模块。其中,该接口支持的总带宽可以等于第一PHY芯片的总带宽和第二PHY芯片的总带宽之和。In some implementations, if the first PHY chip further includes a first extended interface, the first extended interface is used to communicate with the second extended interface of the second PHY chip, and the second PHY chip includes a plurality of PHY modules . Then, the assigning unit is specifically configured to: according to the first overhead frame in the first code block stream, assign part of the data code blocks in the first code block stream to the PHY corresponding to the first PHY chip module; according to the first overhead frame in the first code block stream, allocate another part of the data code blocks in the first code block stream through the first extended interface and the second extended interface, and allocate to the PHY module corresponding to the second PHY chip. The total bandwidth supported by the interface may be equal to the sum of the total bandwidth of the first PHY chip and the total bandwidth of the second PHY chip.
对于上述第一方面至第四方面任意一种实现方式,第一开销帧所包括的开销块个数可以根据第一码块流的一个时隙周期包括的时隙个数确定。该第一开销帧还可以包括下述信息中的任意一个或多个:第二指示信息,所述第二指示信息用于表征所述第一开销帧;时隙状态标识Reset信息,所述Reset信息用于表征所述时隙状态为默认状态或协商状态;链路故障告警RPF指示位和LPF指示位。其中,第二指示信息包括下述信息中的一个或多个:同步头SH字段、0x4B字段和0x5字段,其中,SH字段的取值为10。此外,该第一开销帧还可以包括下述信息中的一个或多个:循环冗余码校验CRC信息、所述接口支持的总带宽和保留字段。For any implementation manner of the first aspect to the fourth aspect, the number of overhead blocks included in the first overhead frame may be determined according to the number of time slots included in one slot period of the first code block stream. The first overhead frame may further include any one or more of the following information: second indication information, where the second indication information is used to represent the first overhead frame; time slot status identifier Reset information, the Reset information The information is used to represent that the time slot state is the default state or the negotiation state; the link failure alarm RPF indication bit and LPF indication bit. The second indication information includes one or more of the following information: a synchronization header SH field, a 0x4B field, and a 0x5 field, where the value of the SH field is 10. In addition, the first overhead frame may further include one or more of the following information: CRC information, total bandwidth supported by the interface, and reserved fields.
第五方面,本申请实施例还提供了一种接口,该接口可以包括:编码单元、分配单元和开销帧控制单元。其中,开销帧控制单元,用于生成第一开销帧;编码单元,用于将所述数据码流编码为对应的数据码块;分配单元,用于根据配置信息,将所述数据码块分配到对应的时隙,生成第一码块流,所述配置信息用于指示介质访问控制MAC芯片中的MAC模块和时隙的对应关系,所述第一码块流包括所述第一开销帧和多个数据码块,所述第一开销帧用于指示所述第一码块流的起始位置。这样,将时隙和MAC模块之间的关系以配置信息的形式保存在接口中,通过每个方向对应的一条物理通道到达PHY芯片时,PHY芯片对应的接口按照该第一码块流中的第一开销帧确定确定码块流的开始位置,并基于本地保存的配置信息确定各个时隙中的数据码块对应的PHY模块,从而将码块流中的各数据码块分配到发送侧设备的PHY芯片中的多个PHY模块,不仅无需占用大量的芯片管脚和电路板面积,而且解决了现有的串行化MII无法兼容多种不同速率以及无法实现多个PHY模块和多个MAC模块共享的问题,实现了PHY芯片和MAC芯片之间多种不同速率的数 据码流有序传输的效果。In a fifth aspect, an embodiment of the present application further provides an interface, where the interface may include: an encoding unit, an allocation unit, and an overhead frame control unit. Wherein, an overhead frame control unit is used to generate a first overhead frame; an encoding unit is used to encode the data code stream into a corresponding data code block; an allocation unit is used to allocate the data code block according to the configuration information Go to the corresponding time slot, and generate a first code block stream, the configuration information is used to indicate the correspondence between the MAC module in the medium access control MAC chip and the time slot, and the first code block stream includes the first overhead frame. and a plurality of data code blocks, the first overhead frame is used to indicate the starting position of the first code block stream. In this way, the relationship between the time slot and the MAC module is stored in the interface in the form of configuration information. When reaching the PHY chip through a physical channel corresponding to each direction, the interface corresponding to the PHY chip will follow the first code block stream. The first overhead frame determines the starting position of the code block stream, and determines the PHY module corresponding to the data code block in each time slot based on the locally stored configuration information, so as to allocate each data code block in the code block stream to the transmitting side device. The multiple PHY modules in the PHY chip not only do not need to occupy a lot of chip pins and circuit board area, but also solve the problem that the existing serialized MII cannot be compatible with multiple different rates and cannot implement multiple PHY modules and multiple MACs. The problem of module sharing realizes the effect of orderly transmission of multiple data streams of different rates between the PHY chip and the MAC chip.
第六方面,本申请实施例还提供了一种接口,其特征在于,所述接口包括分配单元,该分配单元,用于根据第一开销帧,确定第一码块流中的数据码块的位置,并根据配置信息,将所述第一码块流中的数据码块分配到介质访问控制MAC芯片对应的MAC模块,所述MAC芯片中保存所述配置信息,所述配置信息用于指示所述MAC芯片中的MAC模块和时隙的对应关系,所述第一码块流为所述接口从物理层PHY芯片接收的。这样,将时隙和MAC模块之间的关系以配置信息的形式保存在接口中,通过每个方向对应的一条物理通道到达MAC芯片时,MAC芯片对应的接口按照该第一码块流中的第一开销帧确定确定码块流的开始位置,并基于本地保存的配置信息确定各个时隙中的数据码块对应的MAC模块,从而将码块流中的各数据码块分配到发送侧设备的MAC芯片中的多个MAC模块,实现了PHY芯片和MAC芯片之间多种不同速率的数据码流有序传输的效果。In a sixth aspect, an embodiment of the present application further provides an interface, characterized in that the interface includes an allocation unit, and the allocation unit is configured to determine, according to the first overhead frame, the size of the data code block in the first code block stream. location, and according to the configuration information, the data code blocks in the first code block stream are allocated to the MAC module corresponding to the medium access control MAC chip, where the configuration information is stored in the MAC chip, and the configuration information is used to indicate The correspondence between the MAC module in the MAC chip and the time slot, and the first code block stream is received by the interface from the physical layer PHY chip. In this way, the relationship between the time slot and the MAC module is stored in the interface in the form of configuration information. When reaching the MAC chip through a physical channel corresponding to each direction, the interface corresponding to the MAC chip will follow the first code block stream. The first overhead frame determines the starting position of the code block stream, and determines the MAC module corresponding to the data code block in each time slot based on the locally stored configuration information, so as to allocate each data code block in the code block stream to the transmitting side device. The multiple MAC modules in the PHY chip and the MAC chip realize the effect of orderly transmission of data streams of different rates between the PHY chip and the MAC chip.
第七方面,本申请实施例还提供了一种接口,该接口可以包括:编码单元、分配单元和开销帧控制单元。其中,开销帧控制单元,用于生成第一开销帧;编码单元,用于将所述数据码流编码为对应的数据码块;分配单元,用于根据配置信息,将所述数据码块分配到对应的时隙,生成第一码块流,所述配置信息用于指示物理层PHY芯片中的PHY模块和时隙的对应关系,所述第一码块流包括所述第一开销帧和多个数据码块,所述第一开销帧用于指示所述第一码块流的起始位置。这样,将时隙和PHY模块之间的关系以配置信息的形式保存在接口中,通过每个方向对应的一条物理通道到达MAC芯片时,MAC芯片对应的接口按照该第一码块流中的第一开销帧确定确定码块流的开始位置,并基于本地保存的配置信息确定各个时隙中的数据码块对应的MAC模块,从而将码块流中的各数据码块分配到发送侧设备的MAC芯片中的多个MAC模块,不仅无需占用大量的芯片管脚和电路板面积,而且解决了现有的串行化MII无法兼容多种不同速率以及无法实现多个PHY模块和多个MAC模块共享的问题,实现了PHY芯片和MAC芯片之间多种不同速率的数据码流有序传输的效果。In a seventh aspect, an embodiment of the present application further provides an interface, where the interface may include: an encoding unit, an allocation unit, and an overhead frame control unit. Wherein, an overhead frame control unit is used to generate a first overhead frame; an encoding unit is used to encode the data code stream into a corresponding data code block; an allocation unit is used to allocate the data code block according to the configuration information to the corresponding time slot, and generate a first code block stream, the configuration information is used to indicate the correspondence between the PHY module in the physical layer PHY chip and the time slot, and the first code block stream includes the first overhead frame and A plurality of data code blocks, the first overhead frame is used to indicate the starting position of the first code block stream. In this way, the relationship between the time slot and the PHY module is stored in the interface in the form of configuration information, and when reaching the MAC chip through a physical channel corresponding to each direction, the interface corresponding to the MAC chip is in accordance with the first code block stream. The first overhead frame determines the starting position of the code block stream, and determines the MAC module corresponding to the data code block in each time slot based on the locally stored configuration information, so as to allocate each data code block in the code block stream to the transmitting side device. The multiple MAC modules in the MAC chip not only need not occupy a lot of chip pins and circuit board area, but also solve the problem that the existing serialized MII cannot be compatible with multiple different rates and cannot implement multiple PHY modules and multiple MACs. The problem of module sharing realizes the effect of orderly transmission of multiple data streams of different rates between the PHY chip and the MAC chip.
第八方面,本申请实施例还提供了一种接口,该接口可以包括分配单元。该分配单元,用于根据第一开销帧,确定第一码块流中的数据码块的位置,并根据配置信息,将所述第一码块流中的数据码块分配到物理层PHY芯片对应的PHY模块,所述PHY芯片中保存所述配置信息,所述配置信息用于指示所述PHY芯片中的PHY模块和时隙的对应关系,所述第一码块流为所述接口从介质访问控制MAC芯片接收的。这样,将时隙和PHY模块之间的关系以配置信息的形式保存在接口中,通过每个方向对应的一条物理通道到达PHY芯片时,PHY芯片对应的接口按照该第一码块流中的第一开销帧确定确定码块流的开始位置,并基于本地保存的配置信息确定各个时隙中的数据码块对应的PHY模块,从而将码块流中的各数据码块分配到发送侧设备的PHY芯片中的多个PHY模块,实现了PHY芯片和MAC芯片之间多种不同速率的数据码流有序传输的效果。In an eighth aspect, an embodiment of the present application further provides an interface, where the interface may include a distribution unit. The allocation unit is configured to determine the position of the data code block in the first code block stream according to the first overhead frame, and allocate the data code block in the first code block stream to the physical layer PHY chip according to the configuration information The corresponding PHY module, the configuration information is stored in the PHY chip, and the configuration information is used to indicate the corresponding relationship between the PHY module and the time slot in the PHY chip, and the first code block stream is the interface slave Media Access Control MAC chip received. In this way, the relationship between the time slot and the PHY module is stored in the interface in the form of configuration information. When reaching the PHY chip through a physical channel corresponding to each direction, the interface corresponding to the PHY chip will follow the first code block stream. The first overhead frame determines the starting position of the code block stream, and determines the PHY module corresponding to the data code block in each time slot based on the locally stored configuration information, so as to allocate each data code block in the code block stream to the transmitting side device. The multiple PHY modules in the PHY chip realize the effect of orderly transmission of data streams of various rates between the PHY chip and the MAC chip.
对于上述第五方面至第八方面任意一种实现方式,MAC芯片中的MAC模块可以和PHY芯片中的PHY模块一一对应。第一开销帧可以包括用于表征该帧为开销帧的指示信息,该指示信息可以为下述信息中的一个或多个:同步头SH字段、0x4B字段和0x5字段, 其中,SH字段的取值为10。For any implementation manner of the fifth aspect to the eighth aspect, the MAC module in the MAC chip may correspond one-to-one with the PHY module in the PHY chip. The first overhead frame may include indication information for characterizing the frame as an overhead frame, and the indication information may be one or more of the following information: a synchronization header SH field, a 0x4B field, and a 0x5 field, where the value of the SH field is The value is 10.
对于上述第一方面至第八方面任意一种实现方式,MAC芯片中所有MAC模块的速率之和小于或等于所述接口支持的总带宽。其中,MAC芯片中包括的MAC模块的数量可以大于或等于PHY芯片中包括的PHY模块的数量,也可以小于PHY芯片中包括的PHY模块的数量。For any implementation manner of the first aspect to the eighth aspect, the sum of the rates of all the MAC modules in the MAC chip is less than or equal to the total bandwidth supported by the interface. The number of MAC modules included in the MAC chip may be greater than or equal to the number of PHY modules included in the PHY chip, or may be smaller than the number of PHY modules included in the PHY chip.
对于上述第一方面至第八方面任意一种实现方式,码块流的一个时隙周期包括的时隙个数为所述接口连接的物理层PHY芯片包括的PHY模块的个数的正整数倍。每个时隙对应的等效带宽为所述接口支持的总带宽除以码块流一个时隙周期所包括的时隙个数。For any implementation manner of the first aspect to the eighth aspect, the number of time slots included in one time slot cycle of the code block stream is a positive integer multiple of the number of PHY modules included in the physical layer PHY chip connected to the interface . The equivalent bandwidth corresponding to each time slot is the total bandwidth supported by the interface divided by the number of time slots included in one time slot cycle of the code block stream.
对于上述第一方面至第八方面任意一种实现方式,当所述接口支持的总带宽小于40千兆比特/秒时,所述接口中的编码单元按照IEEE 802.3中第49条的方式进行64B/66B编码。当所述接口支持的总带宽大于或等于40千兆比特/秒时,所述接口中的编码单元按照IEEE802.3中第82条的方式进行64B/66B编码。For any implementation manner of the above-mentioned first aspect to the eighth aspect, when the total bandwidth supported by the interface is less than 40 gigabits/second, the coding unit in the interface performs 64B according to the manner of Article 49 in IEEE 802.3 /66B encoding. When the total bandwidth supported by the interface is greater than or equal to 40 gigabits/second, the coding unit in the interface performs 64B/66B coding according to the manner of Clause 82 in IEEE802.3.
第九方面,本申请实施例提供了一种数据处理方法,接口连接介质访问控制MAC芯片,所述MAC芯片包括第一MAC模块和第二MAC模块,该方法例如可以包括:根据来自所述第一MAC模块的第一数据码流和来自所述第二MAC模块的第二数据码流,生成第一开销帧,所述第一开销帧用于指示所述第一数据码流和所述第二数据码流对应的时隙;对所述第一数据码流和所述第二数据码流分别进行编码,得到第一数据码块和第二数据码块;基于所述第一开销帧,将所述第一数据码块插入第一时隙,将所述第二数据码块插入第二时隙,生成第一码块流,所述第一码块流包括第一开销帧、所述第一时隙中插入的所述第一数据码块,所述第二时隙中插入的所述第二数据码块。In a ninth aspect, an embodiment of the present application provides a data processing method, wherein an interface is connected to a medium access control MAC chip, where the MAC chip includes a first MAC module and a second MAC module, and the method may, for example, include: A first data stream from a MAC module and a second data stream from the second MAC module generate a first overhead frame, where the first overhead frame is used to indicate the first data stream and the second data stream. two time slots corresponding to the data code stream; encoding the first data code stream and the second data code stream respectively to obtain a first data code block and a second data code block; based on the first overhead frame, Inserting the first data code block into a first time slot, inserting the second data code block into a second time slot, and generating a first code block stream, the first code block stream includes a first overhead frame, the The first data code block inserted in the first time slot, and the second data code block inserted in the second time slot.
在一些实现方式中,该方法还可以包括:采用串行解串器SerDes对所述第一码块流进行串行化处理,获得第一处理结果;将所述第一处理结果发送给第一物理层PHY芯片。In some implementation manners, the method may further include: using a serializer SerDes to serialize the first code block stream to obtain a first processing result; sending the first processing result to a first Physical layer PHY chip.
作为一个示例,该方法还可以包括:从所述第一PHY芯片接收第二处理结果;采用所述SerDes对所述第二处理结果进行解串行处理,获得的第二码块流;根据所述第二码块流中的第二开销帧,将所述第二码块流中的数据码块分配到所述MAC芯片对应的多个MAC模块。As an example, the method may further include: receiving a second processing result from the first PHY chip; using the SerDes to deserialize the second processing result to obtain a second code block stream; The second overhead frame in the second code block stream is allocated, and the data code blocks in the second code block stream are allocated to a plurality of MAC modules corresponding to the MAC chip.
在另一些实现方式中,方法还可以包括:采用扰码处理单元对所述第一码块流进行扰码,得到更新后的第一码块流;采用串行解串器SerDes对所述更新后的第一码块流进行串行化处理,获得第三处理结果;将所述第三处理结果发送给第一物理层PHY芯片。In other implementation manners, the method may further include: using a scrambling processing unit to scramble the first code block stream to obtain an updated first code block stream; using a serial deserializer SerDes to scramble the updated first code block stream The latter first code block stream is serialized to obtain a third processing result; and the third processing result is sent to the first physical layer PHY chip.
在一些实现方式中,MAC芯片还包括多个端口,多个端口中的每个端口通过对应的适配子层RS和对应的MAC模块进行通信,该方法还可以包括:采用RS将对应的MAC模块发送的MAC帧流处理为数据码流;或者,采用RS将所述接口接收的数据码流处理为MAC帧流发送给对应的MAC模块。In some implementation manners, the MAC chip further includes a plurality of ports, and each port in the plurality of ports communicates with a corresponding MAC module through a corresponding adaptation sublayer RS. The method may further include: using the RS to connect the corresponding MAC The MAC frame stream sent by the module is processed into a data code stream; or, the RS is used to process the data code stream received by the interface into a MAC frame stream and sent to the corresponding MAC module.
需要说明的是,第九方面提供的方法,对应于第一方面提供的接口,故第九方面提供的方法的各种可能的实现方式以及达到的技术效果,可以参照前述第一方面提供的接口的介绍。It should be noted that the method provided by the ninth aspect corresponds to the interface provided by the first aspect, so the various possible implementation manners of the method provided by the ninth aspect and the technical effects achieved may refer to the interface provided by the aforementioned first aspect. 's introduction.
第十方面,本申请实施例还提供了另一种数据处理方法,接口连接第一物理层PHY模 块和第二PHY模块,该方法可以包括:根据来自所述第一PHY模块的第一数据码流和来自所述第二PHY模块的第二数据码流,生成第一开销帧,所述第一开销帧用于指示所述第一数据码流和所述第二数据码流对应的时隙;对所述第一数据码流和所述第二数据码流分别进行编码,得到第一数据码块和第二数据码块;基于所述第一开销帧,将所述第一数据码块插入第一时隙,将所述第二数据码块插入第二时隙,生成第一码块流,所述第一码块流包括第一开销帧、所述第一时隙中插入的所述第一数据码块,所述第二时隙中插入的所述第二数据码块。In a tenth aspect, the embodiments of the present application further provide another data processing method, which interfaces a first physical layer PHY module and a second PHY module, and the method may include: according to a first data code from the first PHY module stream and the second data stream from the second PHY module to generate a first overhead frame, where the first overhead frame is used to indicate time slots corresponding to the first data stream and the second data stream ; Encode the first data code stream and the second data code stream respectively to obtain a first data code block and a second data code block; Based on the first overhead frame, encode the first data code block inserting a first time slot, inserting the second data code block into a second time slot, and generating a first code block stream, the first code block stream including a first overhead frame, all the inserted data blocks in the first time slot the first data code block, and the second data code block inserted in the second time slot.
在一些实现方式中,该方法还可以包括:采用串行解串器SerDes对所述第一码块流进行串行化处理,获得第一处理结果;将所述第一处理结果发送给介质访问控制MAC芯片。In some implementation manners, the method may further include: using a serializer SerDes to serialize the first code block stream to obtain a first processing result; sending the first processing result to a medium access Control the MAC chip.
作为一个示例,方法还包括:从所述MAC芯片接收第二处理结果;采用所述SerDes对所述第二处理结果进行解串行处理,获得的第二码块流,所述第二码块流包括第二开销帧、第三数据码块和第四数据码块;根据所述第二开销帧,将所述第三数据码块和所述第四数据码块分别分配到所述第一PHY模块和第二PHY模块。As an example, the method further includes: receiving a second processing result from the MAC chip; using the SerDes to deserialize the second processing result to obtain a second code block stream, the second code block The stream includes a second overhead frame, a third data code block and a fourth data code block; according to the second overhead frame, the third data code block and the fourth data code block are respectively allocated to the first a PHY module and a second PHY module.
在一些实现方式中,该方法还可以包括:采用扰码处理单元对所述第一码块流进行扰码,得到更新后的第一码块流;采用串行解串器SerDes对所述更新后的第一码块流进行串行化处理,获得第三处理结果;将所述第三处理结果发送给介质访问控制MAC芯片。In some implementation manners, the method may further include: using a scrambling processing unit to scramble the first code block stream to obtain an updated first code block stream; using a serial deserializer SerDes to scramble the updated first code block stream The latter first code block stream is serialized to obtain a third processing result; and the third processing result is sent to the medium access control MAC chip.
在一些实现方式中,第一PHY模块和第二PHY模块属于第一PHY芯片;或者,所述第一PHY模块属于第一PHY芯片,所述第二PHY模块属于第二PHY芯片,所述第一PHY芯片和所述第二PHY芯片通过扩展的接口连接。In some implementations, the first PHY module and the second PHY module belong to a first PHY chip; or, the first PHY module belongs to a first PHY chip, the second PHY module belongs to a second PHY chip, and the first PHY module belongs to a second PHY chip. A PHY chip and the second PHY chip are connected through an extended interface.
需要说明的是,第十方面提供的方法,对应于第三方面提供的接口,故第十方面提供的方法的各种可能的实现方式以及达到的技术效果,可以参照前述第三方面提供的接口的介绍。It should be noted that the method provided by the tenth aspect corresponds to the interface provided by the third aspect. Therefore, various possible implementation manners of the method provided by the tenth aspect and the technical effects achieved may refer to the interface provided by the aforementioned third aspect. 's introduction.
第十一方面,本申请实施例还提供了一种数据处理方法,接口连接介质访问控制MAC芯片,所述MAC芯片包括第一MAC模块和第二MAC模块,该方法包括:生成第一开销帧,所述第一开销帧用于指示码块流的起始位置;对来自所述第一MAC模块的第一数据码流和来自所述第二MAC模块的第二数据码流分别进行编码,得到第一数据码块和第二数据码块;基于所述第一开销帧和配置信息,将所述第一数据码块插入第一时隙,将所述第二数据码块插入第二时隙,生成第一码块流,所述第一码块流包括第一开销帧、所述第一时隙中插入的所述第一数据码块和所述第二时隙中插入的所述第二数据码块,所述配置信息用于指示所述MAC芯片中的MAC模块和时隙的对应关系。In an eleventh aspect, an embodiment of the present application further provides a data processing method, wherein an interface is connected to a medium access control MAC chip, the MAC chip includes a first MAC module and a second MAC module, and the method includes: generating a first overhead frame , the first overhead frame is used to indicate the starting position of the code block stream; the first data code stream from the first MAC module and the second data code stream from the second MAC module are respectively encoded, obtaining a first data code block and a second data code block; based on the first overhead frame and configuration information, inserting the first data code block into the first time slot, and inserting the second data code block into the second time slot slot to generate a first code block stream, the first code block stream including a first overhead frame, the first data code block inserted in the first time slot, and the first data code block inserted in the second time slot In the second data code block, the configuration information is used to indicate the corresponding relationship between the MAC module and the time slot in the MAC chip.
需要说明的是,第十一方面提供的方法,对应于第五方面提供的接口,故第十一方面提供的方法的各种可能的实现方式以及达到的技术效果,可以参照前述第五方面提供的接口的介绍。It should be noted that the method provided in the eleventh aspect corresponds to the interface provided by the fifth aspect. Therefore, various possible implementations and technical effects of the method provided in the eleventh aspect can be provided with reference to the aforementioned fifth aspect. An introduction to the interface.
第十二方面,本申请实施例提供了一种数据处理方法,接口连接介质访问控制MAC芯片,所述MAC芯片包括第一MAC模块和第二MAC模块,该方法包括:从物理层PHY芯片获得第一码块流,所述第一码块流包括第一开销帧、第一时隙中插入的第一数据码块和第二时隙中插入的第二数据码块;根据所述第一开销帧,确定所述第一码块流中的数据 码块的起始位置;根据配置信息,将所述第一码块流中的所述第一数据码块和所述第二数据码块分别分配到所述第一MAC模块和所述第二MAC模块,所述配置信息用于指示所述MAC芯片中的MAC模块和时隙的对应关系。In a twelfth aspect, an embodiment of the present application provides a data processing method, wherein an interface is connected to a medium access control MAC chip, the MAC chip includes a first MAC module and a second MAC module, and the method includes: obtaining from a physical layer PHY chip a first code block stream, the first code block stream including a first overhead frame, a first data code block inserted in a first time slot, and a second data code block inserted in a second time slot; according to the first an overhead frame, determining the starting position of the data code block in the first code block stream; according to the configuration information, the first data code block and the second data code block in the first code block stream are The configuration information is respectively allocated to the first MAC module and the second MAC module, and the configuration information is used to indicate the corresponding relationship between the MAC module and the time slot in the MAC chip.
需要说明的是,第十二方面提供的方法,对应于第六方面提供的接口,故第十二方面提供的方法的各种可能的实现方式以及达到的技术效果,可以参照前述第六方面提供的接口的介绍。It should be noted that the method provided by the twelfth aspect corresponds to the interface provided by the sixth aspect. Therefore, various possible implementations and technical effects of the method provided by the twelfth aspect can be provided with reference to the aforementioned sixth aspect. An introduction to the interface.
第十三方面,本申请实施例还提供了一种数据处理方法,接口连接物理层PHY芯片,所述PHY芯片包括第一PHY模块和第二PHY模块,该方法包括:生成第一开销帧,所述第一开销帧用于指示码块流的起始位置;对来自所述第一PHY模块的第一数据码流和来自所述第二PHY模块的第二数据码流分别进行编码,得到第一数据码块和第二数据码块;基于所述第一开销帧和配置信息,将所述第一数据码块插入第一时隙,将所述第二数据码块插入第二时隙,生成第一码块流,所述第一码块流包括第一开销帧、所述第一时隙中插入的所述第一数据码块和所述第二时隙中插入的所述第二数据码块,所述配置信息用于指示所述PHY芯片中的PHY模块和时隙的对应关系。In a thirteenth aspect, an embodiment of the present application further provides a data processing method, wherein an interface is connected to a physical layer PHY chip, the PHY chip includes a first PHY module and a second PHY module, and the method includes: generating a first overhead frame, The first overhead frame is used to indicate the starting position of the code block stream; the first data code stream from the first PHY module and the second data code stream from the second PHY module are respectively encoded to obtain a first data code block and a second data code block; based on the first overhead frame and configuration information, inserting the first data code block into a first time slot, and inserting the second data code block into a second time slot , generating a first code block stream, the first code block stream including a first overhead frame, the first data code block inserted in the first time slot, and the first data code block inserted in the second time slot Two data code blocks, the configuration information is used to indicate the corresponding relationship between the PHY module and the time slot in the PHY chip.
需要说明的是,第十三方面提供的方法,对应于第七方面提供的接口,故第十三方面提供的方法的各种可能的实现方式以及达到的技术效果,可以参照前述第七方面提供的接口的介绍。It should be noted that the method provided by the thirteenth aspect corresponds to the interface provided by the seventh aspect. Therefore, various possible implementations and technical effects of the method provided by the thirteenth aspect can be provided with reference to the aforementioned seventh aspect. An introduction to the interface.
第十四方面,本申请实施例还提供了一种数据处理方法,接口连接物理层PHY芯片,所述PHY芯片包括第一PHY模块和第二PHY模块,所述方法包括:从介质访问控制MAC芯片获得第一码块流,所述第一码块流包括第一开销帧、第一时隙中插入的第一数据码块和第二时隙中插入的第二数据码块;根据所述第一开销帧,确定所述第一码块流中的数据码块的起始位置;根据配置信息,将所述第一码块流中的所述第一数据码块和所述第二数据码块分别分配到所述第一PHY模块和所述第二PHY模块,所述配置信息用于指示所述PHY芯片中的PHY模块和时隙的对应关系。In a fourteenth aspect, an embodiment of the present application further provides a data processing method, wherein an interface is connected to a physical layer PHY chip, the PHY chip includes a first PHY module and a second PHY module, and the method includes: accessing a control MAC from a medium The chip obtains a first code block stream, the first code block stream includes a first overhead frame, a first data code block inserted in the first time slot, and a second data code block inserted in the second time slot; according to the the first overhead frame, determining the starting position of the data code block in the first code block stream; according to the configuration information, combining the first data code block and the second data block in the first code block stream The code blocks are respectively allocated to the first PHY module and the second PHY module, and the configuration information is used to indicate the corresponding relationship between the PHY modules and the time slots in the PHY chip.
需要说明的是,第十四方面提供的方法,对应于第八方面提供的接口,故第十四方面提供的方法的各种可能的实现方式以及达到的技术效果,可以参照前述第八方面提供的接口的介绍。It should be noted that the method provided by the fourteenth aspect corresponds to the interface provided by the eighth aspect. Therefore, various possible implementations and technical effects of the method provided by the fourteenth aspect can be provided with reference to the aforementioned eighth aspect. An introduction to the interface.
对于第十一方面到第十四方面中任意一种实现方式中,通过接口连接的MAC芯片和PHY芯片中,MAC模块和PHY模块可以是一一对应的。第一开销帧包括用于表征该帧为开销帧的指示信息,该指示信息可以为下述信息中的一个或多个:同步头SH字段、0x4B字段和0x5字段,其中,SH字段的取值为10。For any one of the implementation manners of the eleventh aspect to the fourteenth aspect, in the MAC chip and the PHY chip connected through the interface, the MAC module and the PHY module may be in one-to-one correspondence. The first overhead frame includes indication information used to characterize the frame as an overhead frame, and the indication information may be one or more of the following information: a synchronization header SH field, a 0x4B field, and a 0x5 field, where the value of the SH field is is 10.
第十五方面,本申请实施例还提供了一种数据处理装置,所述数据处理装置位于接口处或与灵活接口通信,所述接口连接介质访问控制MAC芯片,所述MAC芯片包括第一MAC模块和第二MAC模块。该装置可以包括:第一生成单元、编码单元和第二生成单元。其中,第一生成单元,用于根据来自所述第一MAC模块的第一数据码流和来自所述第二MAC模块的第二数据码流,生成第一开销帧,所述第一开销帧用于指示所述第一数据码流和所述第二数据码流对应的时隙;编码单元,用于对所述第一数据码流和所述第二数据码 流分别进行编码,得到第一数据码块和第二数据码块;第二生成单元,用于基于所述第一开销帧,将所述第一数据码块插入第一时隙,将所述第二数据码块插入第二时隙,生成第一码块流,所述第一码块流包括第一开销帧、所述第一时隙中插入的所述第一数据码块,所述第二时隙中插入的所述第二数据码块。In a fifteenth aspect, an embodiment of the present application further provides a data processing device, the data processing device is located at an interface or communicates with a flexible interface, the interface is connected to a medium access control MAC chip, and the MAC chip includes a first MAC module and the second MAC module. The apparatus may include: a first generating unit, an encoding unit and a second generating unit. Wherein, a first generating unit is configured to generate a first overhead frame according to the first data code stream from the first MAC module and the second data code stream from the second MAC module, the first overhead frame It is used to indicate the time slot corresponding to the first data code stream and the second data code stream; the coding unit is used to encode the first data code stream and the second data code stream respectively to obtain the first data code stream. a data code block and a second data code block; a second generating unit, configured to insert the first data code block into the first time slot and insert the second data code block into the first time slot based on the first overhead frame Two time slots, generate a first code block stream, and the first code block stream includes a first overhead frame, the first data code block inserted in the first time slot, and the first data code block inserted in the second time slot. the second data code block.
在一些实现方式中,该装置还可以包括串行化单元和发送单元。其中,串行化单元,用于采用串行解串器SerDes对所述第一码块流进行串行化处理,获得第一处理结果;发送单元,用于将所述第一处理结果发送给第一物理层PHY芯片。In some implementations, the apparatus may further include a serializing unit and a transmitting unit. The serialization unit is used for serializing the first code block stream by using a serializer SerDes to obtain a first processing result; the sending unit is used for sending the first processing result to The first physical layer PHY chip.
作为一个示例,该装置还可以包括:接收单元、解串行单元和分配单元。其中,接收单元,用于从所述第一PHY芯片接收第二处理结果;解串行单元,用于采用所述SerDes对所述第二处理结果进行解串行处理,获得的第二码块流;分配单元,用于根据所述第二码块流中的第二开销帧,将所述第二码块流中的数据码块分配到所述MAC芯片对应的多个MAC模块。As an example, the apparatus may further include: a receiving unit, a deserializing unit, and an allocating unit. The receiving unit is configured to receive the second processing result from the first PHY chip; the deserializing unit is configured to use the SerDes to deserialize the second processing result to obtain a second code block. a flow; an allocation unit configured to allocate data code blocks in the second code block flow to multiple MAC modules corresponding to the MAC chip according to the second overhead frame in the second code block flow.
在一些实现方式中,该装置还可以包括扰码单元、串行化单元和发送单元。其中,扰码单元,用于采用扰码处理单元对所述第一码块流进行扰码,得到更新后的第一码块流;串行化单元,用于采用串行解串器SerDes对所述更新后的第一码块流进行串行化处理,获得第三处理结果;发送单元,用于将所述第三处理结果发送给第一物理层PHY芯片。In some implementations, the apparatus may further include a scrambling unit, a serializing unit, and a transmitting unit. Wherein, the scrambling unit is used for scrambling the first code block stream by using the scrambling code processing unit to obtain the updated first code block stream; the serialization unit is used for using the serializer SerDes to scramble the code block stream. The updated first code block stream is serialized to obtain a third processing result; the sending unit is configured to send the third processing result to the first physical layer PHY chip.
在一些实现方式中,MAC芯片还包括多个端口,多个端口中的每个端口通过对应的适配子层RS和对应的MAC模块进行通信,该装置还可以包括处理单元。该处理单元,用于采用RS将对应的MAC模块发送的MAC帧流处理为数据码流;或者,该处理单元,用于采用RS将所述接口接收的数据码流处理为MAC帧流发送给对应的MAC模块。In some implementation manners, the MAC chip further includes a plurality of ports, and each port in the plurality of ports communicates with a corresponding MAC module through a corresponding adaptation sublayer RS, and the apparatus may further include a processing unit. The processing unit is configured to use the RS to process the MAC frame stream sent by the corresponding MAC module into a data stream; or, the processing unit is configured to use the RS to process the data stream received by the interface into a MAC frame stream and send it to Corresponding MAC module.
需要说明的是,第十五方面提供的装置,对应于第一方面提供的接口以及第九方面提供的方法,故第十五方面提供的装置的各种可能的实现方式以及达到的技术效果,可以参照前述第一方面、第九方面的相关介绍。It should be noted that the device provided in the fifteenth aspect corresponds to the interface provided in the first aspect and the method provided in the ninth aspect, so the various possible implementations of the device provided in the fifteenth aspect and the technical effects achieved, Reference may be made to the relevant introductions of the foregoing first and ninth aspects.
第十六方面,本申请实施例还提供了一种数据处理装置,所述数据处理装置位于接口处或与灵活接口通信,所述接口连接第一物理层PHY模块和第二PHY模块,该装置包括:第一生成单元、编码单元和第二生成单元。其中,第一生成单元,用于根据来自所述第一PHY模块的第一数据码流和来自所述第二PHY模块的第二数据码流,生成第一开销帧,所述第一开销帧用于指示所述第一数据码流和所述第二数据码流对应的时隙;编码单元,用于对所述第一数据码流和所述第二数据码流分别进行编码,得到第一数据码块和第二数据码块;第二生成单元,用于基于所述第一开销帧,将所述第一数据码块插入第一时隙,将所述第二数据码块插入第二时隙,生成第一码块流,所述第一码块流包括第一开销帧、所述第一时隙中插入的所述第一数据码块,所述第二时隙中插入的所述第二数据码块。In a sixteenth aspect, an embodiment of the present application further provides a data processing apparatus, the data processing apparatus is located at an interface or communicates with a flexible interface, the interface is connected to the first physical layer PHY module and the second PHY module, the apparatus It includes: a first generating unit, a coding unit and a second generating unit. Wherein, the first generating unit is configured to generate a first overhead frame according to the first data code stream from the first PHY module and the second data code stream from the second PHY module, the first overhead frame It is used to indicate the time slot corresponding to the first data code stream and the second data code stream; the coding unit is used to encode the first data code stream and the second data code stream respectively to obtain the first data code stream. a data code block and a second data code block; a second generating unit, configured to insert the first data code block into the first time slot and insert the second data code block into the first time slot based on the first overhead frame Two time slots, generate a first code block stream, and the first code block stream includes a first overhead frame, the first data code block inserted in the first time slot, and the first data code block inserted in the second time slot. the second data code block.
在一些实现方式中,该装置还可以包括串行化单元和发送单元。其中,串行化单元,用于采用串行解串器SerDes对所述第一码块流进行串行化处理,获得第一处理结果;发送单元,用于将所述第一处理结果发送给介质访问控制MAC芯片。In some implementations, the apparatus may further include a serializing unit and a transmitting unit. The serialization unit is used for serializing the first code block stream by using a serializer SerDes to obtain a first processing result; the sending unit is used for sending the first processing result to Media Access Control MAC chip.
作为一个示例,该装置还可以包括:接收单元、解串行单元和分配单元。其中,接收单元,用于从所述MAC芯片接收第二处理结果;解串行单元,用于采用所述SerDes对所 述第二处理结果进行解串行处理,获得的第二码块流,所述第二码块流包括第二开销帧、第三数据码块和第四数据码块;分配单元,用于根据所述第二开销帧,将所述第三数据码块和所述第四数据码块分别分配到所述第一PHY模块和第二PHY模块。As an example, the apparatus may further include: a receiving unit, a deserializing unit, and an allocating unit. The receiving unit is configured to receive the second processing result from the MAC chip; the deserializing unit is configured to perform deserialization processing on the second processing result by using the SerDes, and the obtained second code block stream is The second code block stream includes a second overhead frame, a third data code block, and a fourth data code block; an allocation unit is configured to divide the third data code block and the first data code block according to the second overhead frame. Four data code blocks are allocated to the first PHY module and the second PHY module, respectively.
在一些实现方式中,该装置还可以包括扰码单元、串行化单元和发送单元。其中,扰码单元,用于采用扰码处理单元对所述第一码块流进行扰码,得到更新后的第一码块流;串行化单元,用于采用串行解串器SerDes对所述更新后的第一码块流进行串行化处理,获得第三处理结果;发送单元,用于将所述第三处理结果发送给介质访问控制MAC芯片。In some implementations, the apparatus may further include a scrambling unit, a serializing unit, and a transmitting unit. Wherein, the scrambling unit is used for scrambling the first code block stream by using the scrambling code processing unit to obtain the updated first code block stream; the serialization unit is used for using the serializer SerDes to scramble the code block stream. The updated first code block stream is serialized to obtain a third processing result; a sending unit is configured to send the third processing result to the medium access control MAC chip.
在一些实现方式中,第一PHY模块和第二PHY模块可以属于第一PHY芯片;或者,第一PHY模块属于第一PHY芯片,第二PHY模块属于第二PHY芯片,第一PHY芯片和第二PHY芯片通过扩展的接口连接。In some implementations, the first PHY module and the second PHY module may belong to the first PHY chip; or, the first PHY module belongs to the first PHY chip, the second PHY module belongs to the second PHY chip, and the first PHY chip and the first PHY chip belong to the first PHY chip. Two PHY chips are connected through an extended interface.
需要说明的是,第十六方面提供的装置,对应于第三方面提供的接口和第十方面提供的方法,故第十六方面提供的装置的各种可能的实现方式以及达到的技术效果,可以参照前述第三方面、第十方面的相关介绍。It should be noted that the device provided in the sixteenth aspect corresponds to the interface provided in the third aspect and the method provided in the tenth aspect, so the various possible implementations of the device provided in the sixteenth aspect and the technical effects achieved, Reference may be made to the above-mentioned related introductions of the third aspect and the tenth aspect.
第十七方面,本申请实施例还提供了一种数据处理装置,所述数据处理装置位于接口处或与灵活接口通信,所述接口连接介质访问控制MAC芯片,所述MAC芯片包括第一MAC模块和第二MAC模块,该装置包括:第一生成单元、编码单元和第二生成单元。其中,第一生成单元,用于生成第一开销帧,所述第一开销帧用于指示码块流的起始位置;编码单元,用于对来自所述第一MAC模块的第一数据码流和来自所述第二MAC模块的第二数据码流分别进行编码,得到第一数据码块和第二数据码块;第二生成单元,用于基于所述第一开销帧和配置信息,将所述第一数据码块插入第一时隙,将所述第二数据码块插入第二时隙,生成第一码块流,所述第一码块流包括第一开销帧、所述第一时隙中插入的所述第一数据码块和所述第二时隙中插入的所述第二数据码块,所述配置信息用于指示所述MAC芯片中的MAC模块和时隙的对应关系。In a seventeenth aspect, an embodiment of the present application further provides a data processing device, the data processing device is located at an interface or communicates with a flexible interface, the interface is connected to a medium access control MAC chip, and the MAC chip includes a first MAC module and a second MAC module, the apparatus includes: a first generating unit, an encoding unit and a second generating unit. The first generating unit is used to generate a first overhead frame, where the first overhead frame is used to indicate the starting position of the code block stream; the coding unit is used to encode the first data code from the first MAC module The stream and the second data code stream from the second MAC module are respectively encoded to obtain a first data code block and a second data code block; a second generating unit is configured to, based on the first overhead frame and the configuration information, Inserting the first data code block into a first time slot, inserting the second data code block into a second time slot, and generating a first code block stream, the first code block stream includes a first overhead frame, the the first data code block inserted in the first time slot and the second data code block inserted in the second time slot, the configuration information is used to indicate the MAC module and time slot in the MAC chip corresponding relationship.
需要说明的是,第十七方面提供的装置,对应于第五方面提供的接口和第十一方面提供的方法,故第十七方面提供的装置的各种可能的实现方式以及达到的技术效果,可以参照前述第五方面和第十一方面的相关介绍。It should be noted that the device provided in the seventeenth aspect corresponds to the interface provided in the fifth aspect and the method provided in the eleventh aspect, so various possible implementations of the device provided in the seventeenth aspect and the technical effects achieved , reference may be made to the above-mentioned related introductions of the fifth aspect and the eleventh aspect.
第十八方面,本申请实施例还提供了一种数据处理装置,所述数据处理装置位于接口处或与灵活接口通信,所述接口连接介质访问控制MAC芯片,所述MAC芯片包括第一MAC模块和第二MAC模块,所述装置包括:获取单元、确定单元和分配单元。其中,获取单元,用于从物理层PHY芯片获得第一码块流,所述第一码块流包括第一开销帧、第一时隙中插入的第一数据码块和第二时隙中插入的第二数据码块;确定单元,用于根据所述第一开销帧,确定所述第一码块流中的数据码块的起始位置;分配单元,用于根据配置信息,将所述第一码块流中的所述第一数据码块和所述第二数据码块分别分配到所述第一MAC模块和所述第二MAC模块,所述配置信息用于指示所述MAC芯片中的MAC模块和时隙的对应关系。In an eighteenth aspect, an embodiment of the present application further provides a data processing apparatus, the data processing apparatus is located at an interface or communicates with a flexible interface, the interface is connected to a medium access control MAC chip, and the MAC chip includes a first MAC module and a second MAC module, the apparatus includes: an acquisition unit, a determination unit and an allocation unit. The obtaining unit is configured to obtain the first code block stream from the physical layer PHY chip, where the first code block stream includes the first overhead frame, the first data code block inserted in the first time slot, and the second time slot. the inserted second data code block; a determining unit, configured to determine the starting position of the data code block in the first code block stream according to the first overhead frame; an allocation unit, configured to assign the The first data code block and the second data code block in the first code block stream are respectively allocated to the first MAC module and the second MAC module, and the configuration information is used to indicate the MAC The correspondence between the MAC module in the chip and the time slot.
需要说明的是,第十八方面提供的装置,对应于第六方面提供的接口和第十二方面提供的方法,故第十八方面提供的装置的各种可能的实现方式以及达到的技术效果,可以参 照前述第六方面和第十二方面的相关介绍。It should be noted that the device provided in the eighteenth aspect corresponds to the interface provided in the sixth aspect and the method provided in the twelfth aspect, so various possible implementations of the device provided in the eighteenth aspect and the technical effects achieved , you can refer to the related introductions of the sixth aspect and the twelfth aspect.
第十九方面,本申请实施例还提供了一种数据处理装置,接口连接物理层PHY芯片,所述PHY芯片包括第一PHY模块和第二PHY模块,所述装置包括:第一生成单元、编码单元和第二生成单元。其中,第一生成单元,用于生成第一开销帧,所述第一开销帧用于指示码块流的起始位置;编码单元,用于对来自所述第一PHY模块的第一数据码流和来自所述第二PHY模块的第二数据码流分别进行编码,得到第一数据码块和第二数据码块;第二生成单元,用于基于所述第一开销帧和配置信息,将所述第一数据码块插入第一时隙,将所述第二数据码块插入第二时隙,生成第一码块流,所述第一码块流包括第一开销帧、所述第一时隙中插入的所述第一数据码块和所述第二时隙中插入的所述第二数据码块,所述配置信息用于指示所述PHY芯片中的PHY模块和时隙的对应关系。In a nineteenth aspect, an embodiment of the present application further provides a data processing device, the interface is connected to a physical layer PHY chip, the PHY chip includes a first PHY module and a second PHY module, and the device includes: a first generating unit, a coding unit and a second generating unit. Wherein, the first generating unit is used to generate a first overhead frame, the first overhead frame is used to indicate the starting position of the code block stream; the coding unit is used to generate the first data code from the first PHY module The stream and the second data code stream from the second PHY module are encoded respectively to obtain a first data code block and a second data code block; a second generating unit is configured to, based on the first overhead frame and the configuration information, Inserting the first data code block into a first time slot, inserting the second data code block into a second time slot, and generating a first code block stream, the first code block stream includes a first overhead frame, the The first data code block inserted in the first time slot and the second data code block inserted in the second time slot, the configuration information is used to indicate the PHY module and the time slot in the PHY chip corresponding relationship.
需要说明的是,第十九方面提供的装置,对应于第七方面提供的接口和第十三方面提供的方法,故第十九方面提供的装置的各种可能的实现方式以及达到的技术效果,可以参照前述第七方面和第十三方面的相关介绍。It should be noted that the device provided in the nineteenth aspect corresponds to the interface provided in the seventh aspect and the method provided in the thirteenth aspect, so various possible implementations of the device provided in the nineteenth aspect and the technical effects achieved , you can refer to the related introductions of the seventh aspect and the thirteenth aspect.
第二十方面,本申请实施例还提供了一种数据处理装置,所述数据处理装置位于接口处或与灵活接口通信,所述接口连接物理层PHY芯片,所述PHY芯片包括第一PHY模块和第二PHY模块,所述装置包括:获取单元、确定单元和分配单元。其中,获取单元,用于从介质访问控制MAC芯片获得第一码块流,所述第一码块流包括第一开销帧、第一时隙中插入的第一数据码块和第二时隙中插入的第二数据码块;确定单元,用于根据所述第一开销帧,确定所述第一码块流中的数据码块的起始位置;分配单元,用于根据配置信息,将所述第一码块流中的所述第一数据码块和所述第二数据码块分别分配到所述第一PHY模块和所述第二PHY模块,所述配置信息用于指示所述PHY芯片中的PHY模块和时隙的对应关系。In a twentieth aspect, an embodiment of the present application further provides a data processing apparatus, the data processing apparatus is located at an interface or communicates with a flexible interface, the interface is connected to a physical layer PHY chip, and the PHY chip includes a first PHY module and a second PHY module, the apparatus includes: an acquisition unit, a determination unit and an allocation unit. Wherein, the obtaining unit is configured to obtain the first code block stream from the medium access control MAC chip, where the first code block stream includes the first overhead frame, the first data code block inserted in the first time slot, and the second time slot The second data code block inserted in the data code block; the determining unit is used to determine the starting position of the data code block in the first code block stream according to the first overhead frame; the allocation unit is used to determine the starting position of the data code block according to the configuration information The first data code block and the second data code block in the first code block stream are respectively allocated to the first PHY module and the second PHY module, and the configuration information is used to indicate the The correspondence between the PHY module and the time slot in the PHY chip.
需要说明的是,第二十方面提供的装置,对应于第八方面提供的接口和第十四方面提供的方法,故第二十方面提供的装置的各种可能的实现方式以及达到的技术效果,可以参照前述第八方面和第十四方面的相关介绍。It should be noted that the device provided in the twentieth aspect corresponds to the interface provided in the eighth aspect and the method provided in the fourteenth aspect, so various possible implementations of the device provided in the twentieth aspect and the technical effects achieved , reference may be made to the relevant introductions of the foregoing eighth aspect and fourteenth aspect.
对于第十七方面到第二十方面中任意一种实现方式中,通过接口连接的MAC芯片和PHY芯片中,MAC模块和PHY模块可以是一一对应的。第一开销帧可以包括用于表征该帧为开销帧的指示信息,该指示信息可以为下述信息中的一个或多个:同步头SH字段、0x4B字段和0x5字段,其中,SH字段的取值为10。For any implementation manner of the seventeenth aspect to the twentieth aspect, in the MAC chip and the PHY chip connected through the interface, the MAC module and the PHY module may be in one-to-one correspondence. The first overhead frame may include indication information for characterizing the frame as an overhead frame, and the indication information may be one or more of the following information: a synchronization header SH field, a 0x4B field, and a 0x5 field, where the value of the SH field is The value is 10.
第二十一方面,本申请实施例还提供了一种网络设备,该网络设备可以包括:处理器。其中,所述处理器与存储器通信,所述存储器包括计算机可读指令,所述处理器用于执行所述计算机可读指令,使得所述网络设备执行以上第九方面至第二十方面中任意一方面或任意一方面的任意一种可能的实现方式提供的方法。In a twenty-first aspect, an embodiment of the present application further provides a network device, where the network device may include: a processor. Wherein, the processor communicates with a memory, and the memory includes computer-readable instructions, and the processor is configured to execute the computer-readable instructions, so that the network device performs any one of the ninth aspect to the twentieth aspect above A method provided by an aspect or any one possible implementation of any aspect.
第二十二方面,本申请实施例还提供了一种计算机可读存储介质,包括程序或指令,当其被处理器执行时实现以上第九方面至第二十方面中任意一方面或任意一方面的任意一种可能的实现方式提供的方法。In a twenty-second aspect, an embodiment of the present application further provides a computer-readable storage medium, including a program or an instruction, which, when executed by a processor, implements any one or any one of the above ninth to twentieth aspects A method provided by any one possible implementation of the aspect.
第二十三方面,本申请实施例还提供了一种计算机程序产品,其特征在于,包括计算 机程序,所述计算机程序被处理器执行时实现以上第九方面至第二十方面中任意一方面或任意一方面的任意一种可能的实现方式提供的方法。In a twenty-third aspect, an embodiment of the present application further provides a computer program product, characterized in that it includes a computer program, and when the computer program is executed by a processor, implements any one of the ninth aspect to the twentieth aspect above or the method provided by any possible implementation manner of any aspect.
附图说明Description of drawings
图1为本申请实施例中一种接口的结构示意图;1 is a schematic structural diagram of an interface in an embodiment of the application;
图2a为本申请实施例中一种开销帧1的格式示意图;FIG. 2a is a schematic diagram of the format of an overhead frame 1 in an embodiment of the present application;
图2b为本申请实施例中另一种开销帧1的格式示意图;FIG. 2b is a schematic diagram of the format of another overhead frame 1 in an embodiment of the present application;
图3a为本申请实施例中一种码块流1的格式示意图;3a is a schematic diagram of the format of a code block stream 1 in an embodiment of the present application;
图3b为本申请实施例中另一种码块流1的格式示意图;FIG. 3b is a schematic diagram of the format of another code block stream 1 in an embodiment of the present application;
图4为本申请实施例中一种开销帧2的格式示意图;4 is a schematic diagram of a format of an overhead frame 2 in an embodiment of the present application;
图5为本申请实施例中一种码块流2的格式示意图;FIG. 5 is a schematic diagram of the format of a code block stream 2 in an embodiment of the present application;
图6a为本申请实施例中一种码块流的格式示意图;6a is a schematic diagram of a format of a code block stream in an embodiment of the present application;
图6b为本申请实施例中另一种码块流的格式示意图;FIG. 6b is a schematic diagram of the format of another code block stream in an embodiment of the present application;
图7为本申请实施例中一种数据处理方法100的流程示意图;FIG. 7 is a schematic flowchart of a data processing method 100 in an embodiment of the present application;
图8a为本申请实施例中一种第一开销帧的格式示意图;FIG. 8a is a schematic diagram of a format of a first overhead frame in an embodiment of the present application;
图8b为本申请实施例中另一种第一开销帧的格式示意图;FIG. 8b is a schematic diagram of a format of another first overhead frame in an embodiment of the present application;
图9为本申请实施例中一种第一码块流的格式示意图;9 is a schematic diagram of a format of a first code block stream in an embodiment of the present application;
图10为本申请实施例中一种数据处理方法200的流程示意图;FIG. 10 is a schematic flowchart of a data processing method 200 in an embodiment of the present application;
图11为本申请实施例中一种数据处理方法300的流程示意图;FIG. 11 is a schematic flowchart of a data processing method 300 in an embodiment of the present application;
图12为本申请实施例中一种数据处理方法400的流程示意图;FIG. 12 is a schematic flowchart of a data processing method 400 in an embodiment of the present application;
图13a为本申请实施例中一种第一开销帧的格式示意图;13a is a schematic diagram of a format of a first overhead frame in an embodiment of the present application;
图13b为本申请实施例中另一种第一开销帧的格式示意图;FIG. 13b is a schematic diagram of the format of another first overhead frame in an embodiment of the present application;
图13c为本申请实施例中又一种第一开销帧的格式示意图;13c is a schematic diagram of a format of still another first overhead frame in an embodiment of the present application;
图13d为本申请实施例中再一种第一开销帧的格式示意图;13d is a schematic diagram of a format of still another first overhead frame in an embodiment of the present application;
图14a为本申请实施例中一种第一开销帧的格式示意图;14a is a schematic diagram of a format of a first overhead frame in an embodiment of the present application;
图14b为本申请实施例中又一种第一开销帧的格式示意图;14b is a schematic diagram of a format of still another first overhead frame in an embodiment of the present application;
图15为本申请实施例中PHY芯片级联场景的结构示意图;FIG. 15 is a schematic structural diagram of a PHY chip cascade scenario in an embodiment of the present application;
图16为本申请实施例中一种数据处理装置1600的结构示意图;FIG. 16 is a schematic structural diagram of a data processing apparatus 1600 in an embodiment of the present application;
图17为本申请实施例中一种数据处理装置1700的结构示意图;FIG. 17 is a schematic structural diagram of a data processing apparatus 1700 according to an embodiment of the present application;
图18为本申请实施例中一种数据处理装置1800的结构示意图;FIG. 18 is a schematic structural diagram of a data processing apparatus 1800 in an embodiment of the present application;
图19为本申请实施例中一种数据处理装置1900的结构示意图;FIG. 19 is a schematic structural diagram of a data processing apparatus 1900 in an embodiment of the present application;
图20为本申请实施例中一种数据处理装置2000的结构示意图;FIG. 20 is a schematic structural diagram of a data processing apparatus 2000 in an embodiment of the present application;
图21为本申请实施例中一种数据处理装置2100的结构示意图;FIG. 21 is a schematic structural diagram of a data processing apparatus 2100 in an embodiment of the present application;
图22为本申请实施例中一种网络设备2200的结构示意图;FIG. 22 is a schematic structural diagram of a network device 2200 in an embodiment of the present application;
图23为本申请实施例中一种网络设备2300的结构示意图。FIG. 23 is a schematic structural diagram of a network device 2300 in an embodiment of the present application.
具体实施方式detailed description
目前的介质无关接口MII,是电气和电子工程学会(英文:Institute of Electrical and Electronic Engineers,简称:IEEE)802.3标准定义的位于介质访问控制MAC芯片和物理 层PHY芯片之间的接口。The current medium independent interface MII is the interface between the medium access control MAC chip and the physical layer PHY chip defined by the Institute of Electrical and Electronic Engineers (English: Institute of Electrical and Electronic Engineers, referred to as: IEEE) 802.3 standard.
通常,MII可以对MAC芯片和PHY芯片之间传输的数据进行并行化处理以满足MAC芯片和PHY芯片之间的通信需求,具体通过扩展两者之间的信号传递宽度实现并行化处理,例如:MII传输速率为100兆比特/秒(英文:Mb/s)的信号时,需要分别占用MAC芯片和PHY芯片8位的数据信号宽度;MII传输速率为1千兆比特/秒(英文:Gb/s)的信号时,需要分别占用MAC芯片和PHY芯片16位的数据信号宽度;MII传输速率为10Gb/s的信号时,需要分别占用MAC芯片和PHY芯片64位的数据信号宽度。可见,通过高度并行化提高通信速率的方式,随着通信速率需求的不断提高,将大幅增加MII占用电路板的面积、并占用MAC芯片的更多管脚和PHY芯片的更多管脚。Generally, MII can parallelize the data transmitted between the MAC chip and the PHY chip to meet the communication requirements between the MAC chip and the PHY chip. Specifically, the parallelized processing can be realized by extending the signal transmission width between the two, for example: When the MII transmission rate is 100 Mbit/s (English: Mb/s), the data signal width of the MAC chip and the PHY chip needs to be 8 bits respectively; the MII transmission rate is 1 Gigabit/s (English: Gb/s) s), the data signal width of the MAC chip and PHY chip is 16 bits respectively; when the MII transmission rate is 10Gb/s, the data signal width of the MAC chip and PHY chip is 64 bits respectively. It can be seen that the method of increasing the communication rate through high parallelization will greatly increase the area of the circuit board occupied by the MII and occupy more pins of the MAC chip and more pins of the PHY chip as the demand for the communication rate continues to increase.
此外,目前还通过串行化MII实现MAC芯片和PHY芯片之间的高速率通信,即,通过每个方向对应的一条物理通道对高速率信号进行传输,不需要提供随路时钟,MAC芯片和PHY芯片可以根据时钟和数据恢复(英文:clock and data recovery,简称:CDR)技术从数据信号的交换中获取时钟,按照8B/10B的格式传输数据信号。其中,一条物理通道例如可以通过一对差分线实现,也可以通过一条双心同轴电缆(英文:twin-axial cable)实现。例如,串行化MII可以是串行千兆介质无关接口(英文:serial gigabit media independent interface,简称:SGMII)。这样,串行化MII解决了并行化处理中占用较多MAC芯片和PHY芯片的管脚的问题,无论实现多高速率的通信,对于MAC芯片和PHY芯片而言就仅需要分别提供两个管脚即可。但是,目前的串行化MII,在一个时刻仅支持MAC芯片中的一个MAC模块和PHY芯片中的一个PHY模块之间以一种速率进行的通信,无法提供支持多个MAC模块和多个PHY模块之间以不同的速率通信。而且,目前的串行化MII能够支持的总带宽有限且支持的速率均为标准以太接口速率,无法支持较大的速率或非标准以太接口速率的通信。In addition, the high-speed communication between the MAC chip and the PHY chip is currently implemented through serialized MII, that is, the high-speed signal is transmitted through a physical channel corresponding to each direction, and there is no need to provide an associated clock, the MAC chip and The PHY chip can obtain the clock from the exchange of the data signal according to the clock and data recovery (English: clock and data recovery, CDR for short) technology, and transmit the data signal according to the 8B/10B format. Wherein, a physical channel can be realized by, for example, a pair of differential lines, or can be realized by a twin-axial cable (English: twin-axial cable). For example, the serialized MII may be a serial gigabit media independent interface (English: serial gigabit media independent interface, SGMII for short). In this way, the serialized MII solves the problem of occupying more pins of the MAC chip and the PHY chip in the parallel processing. No matter how high-speed communication is realized, only two pipes need to be provided for the MAC chip and the PHY chip respectively. feet. However, the current serialized MII only supports communication at one rate between one MAC module in the MAC chip and one PHY module in the PHY chip at a time, and cannot provide support for multiple MAC modules and multiple PHYs The modules communicate at different rates. Moreover, the total bandwidth that can be supported by the current serialized MII is limited, and the supported rates are all standard Ethernet interface rates, and cannot support communications at larger rates or non-standard Ethernet interface rates.
基于此,本申请实施例提供了一种能够被PHY芯片中的多个PHY模块和MAC芯片中的多个MAC模块共享的接口(也称为灵活接口(即Flexible Interface),下文中以灵活接口进行描述),利用时隙和PHY模块之间的关系以及时隙和MAC模块之间的关系,通过每个方向对应的一条物理通道实现PHY芯片和MAC芯片之间多种不同速率的数据码流传输,不仅无需占用大量的芯片管脚和电路板面积,而且解决了现有的串行化灵活接口无法兼容多种不同速率以及无法实现多个PHY模块和多个MAC模块共享的问题,实现了PHY芯片和MAC芯片之间多种不同速率的数据码流有序传输的效果。Based on this, the embodiments of the present application provide an interface (also referred to as a flexible interface (ie Flexible Interface) that can be shared by multiple PHY modules in a PHY chip and multiple MAC modules in a MAC chip, hereinafter referred to as the flexible interface description), using the relationship between the time slot and the PHY module and the relationship between the time slot and the MAC module, through a physical channel corresponding to each direction to achieve a variety of data streams between the PHY chip and the MAC chip at different rates Transmission, not only does not need to occupy a lot of chip pins and circuit board area, but also solves the problem that the existing serialized flexible interface cannot be compatible with multiple different rates and cannot be shared by multiple PHY modules and multiple MAC modules. The effect of orderly transmission of multiple data streams of different rates between the PHY chip and the MAC chip.
本申请实施例中的灵活接口,可以是集成在发送侧设备和接收侧设备内的一对接口模块,或者,也可以是连接在发送侧设备和接收侧设备之间的独立芯片。为了方便描述,下文中以灵活接口为集成在发送侧设备和接收侧设备内的一对接口模块为例进行描述。The flexible interface in this embodiment of the present application may be a pair of interface modules integrated in the transmitting-side device and the receiving-side device, or may be an independent chip connected between the transmitting-side device and the receiving-side device. For the convenience of description, the following description takes the flexible interface as a pair of interface modules integrated in the sending-side device and the receiving-side device as an example for description.
第一种实现方式中,在发送侧设备,发送侧设备的MAC芯片中的第一灵活接口生成指示各个MAC模块对应的数据码块占用的时隙的开销帧,按照开销帧的指示在时隙周期中对应时隙的码块流中填充对应的数据码块,并将开销帧插入到码块流中发送给发送侧设备的PHY芯片,这样,发送侧设备的PHY芯片中的第二灵活接口即可按照码块流中的开销帧确定各个时隙中的数据码块对应的PHY模块,从而将码块流中的各数据码块分配到 PHY芯片中的多个PHY模块。在接收侧设备,接收侧设备的PHY芯片中的第三灵活接口生成指示各个PHY模块对应的数据码块占用的时隙的开销帧,按照开销帧的指示在时隙周期中对应时隙的码块流中填充对应的数据码块,并将开销帧插入到码块流中发送给接收侧设备的MAC芯片,这样,接收侧设备的MAC芯片中的第四灵活接口即可按照码块流中的开销帧确定各个时隙中的数据码块对应的MAC模块,从而将码块流中的各数据码块分配到MAC芯片中的多个MAC模块。其中,该实现方式中的开销帧也可以指示码块流对应时隙周期的开始位置。该实现方式中的相关概念参见下述第一个示例中相应的描述,该实现方式对应的数据处理方法参见下述方法100和方法200的相关描述。In the first implementation manner, on the sending side device, the first flexible interface in the MAC chip of the sending side device generates an overhead frame indicating the time slot occupied by the data code block corresponding to each MAC module, and according to the indication of the overhead frame, in the time slot Fill the code block stream corresponding to the time slot in the cycle with the corresponding data code block, and insert the overhead frame into the code block stream and send it to the PHY chip of the transmitting side device. In this way, the second flexible interface in the PHY chip of the transmitting side device That is, the PHY module corresponding to the data code block in each time slot can be determined according to the overhead frame in the code block stream, so that each data code block in the code block stream is allocated to multiple PHY modules in the PHY chip. On the receiving side device, the third flexible interface in the PHY chip of the receiving side device generates an overhead frame indicating the time slot occupied by the data code block corresponding to each PHY module, and the code corresponding to the time slot in the time slot cycle according to the indication of the overhead frame The block stream is filled with corresponding data code blocks, and the overhead frame is inserted into the code block stream and sent to the MAC chip of the receiving-side device. In this way, the fourth flexible interface in the MAC chip of the receiving-side device can follow the code block stream. The overhead frame determines the MAC module corresponding to the data code block in each time slot, so that each data code block in the code block stream is allocated to multiple MAC modules in the MAC chip. Wherein, the overhead frame in this implementation manner may also indicate the start position of the time slot period corresponding to the code block stream. For related concepts in this implementation manner, refer to the corresponding description in the following first example, and for the data processing method corresponding to this implementation manner, refer to the related descriptions of the following method 100 and method 200 .
第二种实现方式中,发送侧设备或接收侧设备上可以预先存储配置信息,比如可以将配置信息存储在发送侧设备或接收侧设备的MAC芯片和PHY芯片上。在一种实施例中,发送侧设备或接收侧设备也可以与预先存储有配置信息的设备或模块通信,从而获取预先存储的配置信息。MAC芯片上的配置信息用于指示MAC芯片中各MAC模块和时隙的对应关系,PHY芯片上的配置信息用于指示PHY芯片中各PHY模块和时隙的对应关系,通过配置信息可以将MAC模块和PHY模块进行一一对应。这样,发送侧设备的MAC芯片中的第一灵活接口能够按照配置信息的指示在时隙周期中对应时隙的码块流中填充到对应的数据码块,并将用于指示码块流起始位置的开销帧插入到码块流中发送给发送侧设备的PHY芯片,发送侧设备的PHY芯片中的第二灵活接口即可按照码块流中的开销帧确定码块流的开始位置,并基于本地保存的配置信息确定各个时隙中的数据码块对应的PHY模块,从而将码块流中的各数据码块分配到发送侧设备的PHY芯片中的多个PHY模块。接收侧设备的PHY芯片中的第三灵活接口能够按照配置信息的指示在时隙周期中对应时隙的码块流中填充到对应的数据码块,并将用于指示码块流起始位置的开销帧插入到码块流中发送给接收侧设备的MAC芯片,接收侧设备的MAC芯片中的第四灵活接口即可按照码块流中的开销帧确定码块流的开始位置,并基于本地保存的配置信息确定各个时隙中的数据码块对应的MAC模块,从而将码块流中的各数据码块分配到接收侧设备的MAC芯片中的多个MAC模块。该实现方式中的相关概念参见下述第二个示例对应的描述,该实现方式对应的数据处理方法参见下述方法300和方法400的相关描述。In the second implementation manner, the configuration information may be pre-stored on the sending-side device or the receiving-side device, for example, the configuration information may be stored on the MAC chip and PHY chip of the sending-side device or the receiving-side device. In an embodiment, the sending-side device or the receiving-side device may also communicate with a device or module that has pre-stored configuration information, so as to acquire the pre-stored configuration information. The configuration information on the MAC chip is used to indicate the corresponding relationship between each MAC module and time slot in the MAC chip, and the configuration information on the PHY chip is used to indicate the corresponding relationship between each PHY module and time slot in the PHY chip. There is a one-to-one correspondence between modules and PHY modules. In this way, the first flexible interface in the MAC chip of the transmitting-side device can fill the corresponding data code block in the code block stream corresponding to the time slot in the time slot cycle according to the instruction of the configuration information, and use it to indicate the start of the code block stream. The overhead frame at the starting position is inserted into the code block stream and sent to the PHY chip of the sending side device. The second flexible interface in the PHY chip of the sending side device can determine the starting position of the code block stream according to the overhead frame in the code block stream. The PHY module corresponding to the data code block in each time slot is determined based on the locally stored configuration information, so that each data code block in the code block stream is allocated to multiple PHY modules in the PHY chip of the transmitting-side device. The third flexible interface in the PHY chip of the receiving-side device can fill the corresponding data code block in the code block stream corresponding to the time slot in the time slot cycle according to the instruction of the configuration information, and will be used to indicate the starting position of the code block stream The overhead frame is inserted into the code block stream and sent to the MAC chip of the receiving side device. The fourth flexible interface in the MAC chip of the receiving side device can determine the start position of the code block stream according to the overhead frame in the code block stream, and based on The locally stored configuration information determines the MAC module corresponding to the data code block in each time slot, so that each data code block in the code block stream is allocated to multiple MAC modules in the MAC chip of the receiving-side device. For related concepts in this implementation, refer to the description corresponding to the following second example, and for the data processing method corresponding to this implementation, refer to the related descriptions of the following methods 300 and 400 .
本申请实施例提供的灵活接口能够支持的总带宽,一种情况下,可以等于PHY芯片的总带宽,即,等于PHY芯片中所有PHY模块的带宽之和;另一种情况下,也可以等于通过扩展的灵活接口级联的多个PHY芯片的带宽之和。本申请实施例以第一种情况为例进行描述,关于多个PHY芯片级联的场景,参见下述图15所示的实施例的相关说明。The total bandwidth that can be supported by the flexible interface provided by the embodiments of the present application may be equal to the total bandwidth of the PHY chip in one case, that is, equal to the sum of the bandwidths of all PHY modules in the PHY chip; in another case, it may also be equal to the total bandwidth of the PHY chip. The sum of the bandwidth of multiple PHY chips cascaded through an extended flexible interface. The embodiment of the present application is described by taking the first case as an example. For a scenario in which multiple PHY chips are cascaded, refer to the related description of the embodiment shown in FIG. 15 below.
需要说明的是,本申请实施例中灵活接口连接的MAC芯片中所有MAC模块的速率之和小于或等于该灵活接口支持的总带宽,例如,灵活接口支持的总带宽为10Gb/s,则,MAC芯片中所有MAC模块的速率之和应该小于10Gb/s。It should be noted that, in the embodiment of the present application, the sum of the rates of all MAC modules in the MAC chip connected by the flexible interface is less than or equal to the total bandwidth supported by the flexible interface. For example, if the total bandwidth supported by the flexible interface is 10 Gb/s, then, The sum of the rates of all MAC modules in the MAC chip should be less than 10Gb/s.
图1为本申请实施例提供的灵活接口的结构示意图。参见图1,MAC芯片10中包括灵活接口100以及MAC模块1~MAC模块N,PHY芯片20包括灵活接口200以及PHY模块1~PHY模块M,其中,N和M均为正整数,N等于M或N大于M或N小于M,MAC模块的数量N也可能与RS的数量L不同或相同,比如N大于或小于L。下文中以M 等于N且N等于L为例进行描述,对于N大于M的情况,涉及到多个MAC模块复用一个时隙的场景,参见图13a~13d以及图14a和图14b对应的描述。灵活接口100和灵活接口200之间通过2条物理通道300连接。FIG. 1 is a schematic structural diagram of a flexible interface provided by an embodiment of the present application. Referring to FIG. 1 , the MAC chip 10 includes a flexible interface 100 and a MAC module 1 to a MAC module N, and the PHY chip 20 includes a flexible interface 200 and a PHY module 1 to a PHY module M, where N and M are both positive integers, and N is equal to M Or N is greater than M or N is less than M, the number N of MAC modules may also be different or the same as the number L of RSs, for example, N is greater than or less than L. The following description takes M equals N and N equals L as an example. For the case where N is greater than M, it involves multiple MAC modules multiplexing a time slot. See Figures 13a to 13d and the corresponding descriptions of Figures 14a and 14b . The flexible interface 100 and the flexible interface 200 are connected through two physical channels 300 .
如果灵活接口100和灵活接口200属于发送侧网络设备,则,灵活接口100中包括开销帧控制单元110、编码单元120和分配单元130,其中,开销帧控制单元120用于生成开销帧,编码单元120用于对数据码流进行编码得到对应的数据码块,分配单元130用于按照开销帧或配置信息将数据码块分配到时隙周期中对应时隙的码块流中,生成码块流。此外,灵活接口100还可以包括串行解串器SerDes 140,该SerDes 140用于对码块流进行串行化处理。该灵活接口100还可以包括SerDes 140和扰码处理单元150,扰码处理单元150用于在串行化处理之前对码块流进行扰码,该扰码处理单元150的工作能够使得码块流中的数据码块更加随机化,数据均衡性更好。灵活接口100可以将生成的码块流发送到灵活接口200,此时,灵活接口200中的分配单元230可以用于按照配置信息或按照所接收的码块流中的开销帧确定各个时隙对应的数据码块应分配到的PHY模块,从而将码块流中的各数据码块分配到PHY芯片20中的PHY模块中。该灵活接口200也可以包括开销帧控制单元210和编码单元220,还可以包括SerDes 240和扰码处理单元250,其中,该SerDes 240可以用于对接收到的处理结果进行解串行处理,扰码处理单元250可以用于对所接收到的码块流进行解扰码。If the flexible interface 100 and the flexible interface 200 belong to network devices on the transmitting side, the flexible interface 100 includes an overhead frame control unit 110, an encoding unit 120 and an allocation unit 130, wherein the overhead frame control unit 120 is used to generate an overhead frame, and the encoding unit 120 is used to encode the data code stream to obtain the corresponding data code block, and the allocation unit 130 is used to allocate the data code block to the code block stream corresponding to the time slot in the time slot cycle according to the overhead frame or configuration information, and generate the code block stream . In addition, the flexible interface 100 may also include a serializer SerDes 140 for serializing the stream of code blocks. The flexible interface 100 may further include a SerDes 140 and a scrambling code processing unit 150. The scrambling code processing unit 150 is used to scramble the code block stream before serialization processing. The work of the scrambling code processing unit 150 can make the code block stream The data code blocks in the are more randomized, and the data balance is better. The flexible interface 100 can send the generated code block stream to the flexible interface 200. At this time, the allocation unit 230 in the flexible interface 200 can be used to determine the corresponding time slots according to the configuration information or according to the overhead frame in the received code block stream. The PHY module to which the data code block of 1 should be allocated, so that each data code block in the code block stream is allocated to the PHY module in the PHY chip 20 . The flexible interface 200 may also include an overhead frame control unit 210 and an encoding unit 220, and may also include a SerDes 240 and a scrambling code processing unit 250, wherein the SerDes 240 The code processing unit 250 may be used to descramble the received stream of code blocks.
如果灵活接口100和灵活接口200属于接收侧网络设备,则,灵活接口200中包括开销帧控制单元210、编码单元220和分配单元230,其中,开销帧控制单元220用于生成开销帧,编码单元220用于对数据码流进行编码得到对应的数据码块,分配单元230用于按照开销帧或配置信息将数据码块分配到时隙周期中对应时隙的码块流中,生成码块流。此外,灵活接口200还可以包括串行解串器SerDes 240,该SerDes 240用于对码块流进行串行化处理。该灵活接口200还可以包括SerDes 240和扰码处理单元250,扰码处理单元250用于在串行化处理之前对码块流进行扰码,该扰码处理单元250的工作能够使得码块流中的数据码块更加随机化,数据均衡性更好。灵活接口200可以将生成的码块流发送到灵活接口100,此时,灵活接口100中的分配单元130可以用于按照配置信息或按照所接收的码块流中的开销帧确定各个时隙对应的数据码块应分配到的MAC模块,从而将码块流中的各数据码块分配到MAC芯片10中的MAC模块中。该灵活接口100也可以包括开销帧控制单元110和编码单元120,还可以包括SerDes 140和扰码处理单元150,其中,该SerDes 140可以用于对接收到的处理结果进行解串行处理,扰码处理单元150可以用于对所接收到的码块流进行解扰码。If the flexible interface 100 and the flexible interface 200 belong to the network equipment on the receiving side, the flexible interface 200 includes an overhead frame control unit 210, an encoding unit 220 and an allocation unit 230, wherein the overhead frame control unit 220 is used to generate an overhead frame, and the encoding unit 220 is used to encode the data code stream to obtain the corresponding data code block, and the allocation unit 230 is used to allocate the data code block to the code block stream corresponding to the time slot in the time slot cycle according to the overhead frame or configuration information, and generate the code block stream . In addition, the flexible interface 200 may also include a serializer SerDes 240 for serializing the stream of code blocks. The flexible interface 200 may further include a SerDes 240 and a scrambling code processing unit 250. The scrambling code processing unit 250 is used to scramble the code block stream before the serialization process. The work of the scrambling code processing unit 250 can make the code block stream The data code blocks in the are more randomized, and the data balance is better. The flexible interface 200 can send the generated code block stream to the flexible interface 100. At this time, the allocation unit 130 in the flexible interface 100 can be used to determine the corresponding time slots according to the configuration information or according to the overhead frame in the received code block stream. The data code block should be allocated to the MAC module, so that each data code block in the code block stream is allocated to the MAC module in the MAC chip 10 . The flexible interface 100 may also include an overhead frame control unit 110 and an encoding unit 120, and may also include a SerDes 140 and a scrambling code processing unit 150, wherein the SerDes 140 may be used to deserialize the received processing result, and scramble the The code processing unit 150 may be configured to descramble the received stream of code blocks.
对于在MAC芯片10和PHY芯片20之间传输的码块流,可以按照时隙周期进行划分。一个时隙周期包括的时隙数量等于PHY芯片包括的PHY模块的数量的正整数倍;每个时隙可以填充的数据码块的速率(也称为时隙对应的等效带宽)为灵活接口支持的总带宽除以一个时隙周期包括的时隙个数。例如,PHY芯片200包括M=8个PHY模块,则,一个时隙周期可以包括8i个时隙(i=1,2,…),以i=1、灵活接口支持的总带宽为20Gb/s为例,每个时隙填充的数据码块的速率为(20Gb/s÷8)=2.5Gb/s。The code block stream transmitted between the MAC chip 10 and the PHY chip 20 may be divided according to the time slot period. The number of time slots included in a time slot cycle is equal to the positive integer multiple of the number of PHY modules included in the PHY chip; the rate of data code blocks that can be filled in each time slot (also called the equivalent bandwidth corresponding to a time slot) is a flexible interface The total supported bandwidth divided by the number of slots included in a slot cycle. For example, if the PHY chip 200 includes M=8 PHY modules, then, one time slot cycle may include 8i time slots (i=1, 2, . . . ), with i=1, the total bandwidth supported by the flexible interface is 20 Gb/s For example, the rate of data code blocks filled in each time slot is (20Gb/s÷8)=2.5Gb/s.
作为第一个示例,以MAC芯片10向PHY芯片20发送数据的过程为例,说明本申请实施例提供的第一种实现方式中灵活接口的工作过程和涉及的相关概念:As a first example, the process of sending data from the MAC chip 10 to the PHY chip 20 is taken as an example to illustrate the working process of the flexible interface and related concepts involved in the first implementation provided by the embodiment of the present application:
首先,MAC模块1~MAC模块N分别连接适配子层(英文:reconciliation sublayer,简称:RS)1~N,当各个MAC模块接收到MAC帧流时,该MAC模块对应的RS将MAC帧流分割为数据码流,并将数据码流通过对应的端口发送给灵活接口100。在一些实施例中,RS可以基于来自的MAC模块的速率将MAC帧流处理为数据码流,例如,MAC模块1的速率为10Gb/s时,RS 1可以将来自MAC模块1的MAC帧流1处理为32比特大小的数据码流;又例如,MAC模块N的速率为1Gb/s时,RS N可以将来自MAC模块N的MAC帧流N处理为8比特大小的数据码流。First, MAC modules 1 to MAC modules N are respectively connected to adaptation sublayers (English: reconciliation sublayer, RS for short) 1 to N. When each MAC module receives the MAC frame stream, the RS corresponding to the MAC module reconciles the MAC frame stream. It is divided into data code streams, and the data code streams are sent to the flexible interface 100 through the corresponding ports. In some embodiments, the RS can process the MAC frame stream into a data stream based on the rate from the MAC module. For example, when the rate of the MAC module 1 is 10Gb/s, the RS 1 can process the MAC frame stream from the MAC module 1. 1 is processed as a 32-bit data stream; for another example, when the rate of the MAC module N is 1Gb/s, the RS N can process the MAC frame stream N from the MAC module N into an 8-bit data stream.
灵活接口100接收到该数据码流后,一方面,编码单元120用于对各数据码流进行编码,得到对应的数据码块。如果灵活接口100支持的总带宽小于40Gb/s,编码单元120按照IEEE 802.3中第49条的方式进行66B/68B编码;如果灵活接口100支持的总带宽大于或等于40Gb/s,编码单元120按照IEEE 802.3中第82条的方式进行66B/68B编码。另一方面,开销帧控制单元110基于从多个MAC模块接收的数据码流,生成开销帧1。开销帧1用于指示各个时隙应该填充的MAC模块产生的数据码块,开销帧1可以包括至少一个开销块,一个开销块的大小为68比特。开销帧1包括的开销块的数量与一个时隙周期包括的时隙相关,假设一个时隙周期包括2个时隙,则,开销帧1可以如图2a所示,仅包括一个开销块1;假设一个时隙周期包括8个时隙,则,开销帧1可以如图2b所示,包括开销块1和开销块2。After the flexible interface 100 receives the data code stream, on the one hand, the encoding unit 120 is configured to encode each data code stream to obtain a corresponding data code block. If the total bandwidth supported by the flexible interface 100 is less than 40 Gb/s, the encoding unit 120 performs 66B/68B encoding according to the method in Clause 49 of IEEE 802.3; if the total bandwidth supported by the flexible interface 100 is greater than or equal to 40 Gb/s, the encoding unit 120 performs 66B/68B encoding is performed in the manner of Clause 82 in IEEE 802.3. On the other hand, the overhead frame control unit 110 generates the overhead frame 1 based on the data streams received from the plurality of MAC modules. The overhead frame 1 is used to indicate the data code blocks generated by the MAC module that should be filled in each time slot. The overhead frame 1 may include at least one overhead block, and the size of one overhead block is 68 bits. The number of overhead blocks included in the overhead frame 1 is related to the time slots included in a time slot cycle. Assuming that a time slot cycle includes 2 time slots, the overhead frame 1 may include only one overhead block 1 as shown in Figure 2a; Assuming that one time slot period includes 8 time slots, the overhead frame 1 may include an overhead block 1 and an overhead block 2 as shown in FIG. 2 b .
图2a中,开销帧1(即开销块1)可以包括:用于表征该帧为开销帧的指示信息字段、时隙1字段和时隙2字段。指示信息字段可以包括同步头(英文:synchronization header,简称:SH)字段、0x4B字段和0x5字段中的至少一个,其中,SH字段的取值为10,表示该开销块1为开销帧1的控制块;0x4B字段和0x5字段的位置和取值用于标识该帧为区别于数据帧的开销帧,0x4B字段的取值可以为0x4B,0x5字段取值可以为0x5,0x4B字段和0x5字段也可以通过其他取值定义数据帧为开销帧。例如,图2a中的指示信息字段包括SH字段、0x4B字段和0x5字段。时隙1字段包括需要填充到时隙1中的MAC模块1的速率1(英文:Client Rate 1)和MAC模块1的标识1(英文:Client ID 1),同理,时隙2字段包括需要填充到时隙2中的MAC模块2的速率2(英文:Client Rate 2)和MAC模块2的标识2(英文:Client ID 2)。此外,该开销帧1还可以包括时隙状态标识位Reset、远端PHY故障(英文:Remote PHY Fault,简称:RPF)指示位、本端PHY故障(英文:Local PHY Fault,简称:LPF)指示位、PHY芯片速率指示字段(英文:PHY Rate)和循环冗余码校验(英文:cyclic redundancy check,简称:CRC)字段,其中,Reset用于表征时隙状态为默认状态或协商状态;RPF和LPF用于指示PHY芯片是否发生故障,PHY Rate用于指示该PHY芯片支持的最大速率(即灵活接口支持的总带宽),CRC用于对开销帧1进行校验。此外,如果开销帧1包括的内容不足一个开销块1的大小要求,则该开销帧1还可以包括若干比特的预留(英文:Reserved)字段。In FIG. 2a, overhead frame 1 (ie, overhead block 1) may include: an indication information field for characterizing the frame as an overhead frame, a time slot 1 field, and a time slot 2 field. The indication information field may include at least one of a synchronization header (English: synchronization header, SH for short) field, a 0x4B field and a 0x5 field, where the value of the SH field is 10, indicating that the overhead block 1 is the control of the overhead frame 1 Block; the position and value of the 0x4B field and the 0x5 field are used to identify the frame as an overhead frame that is different from the data frame. The value of the 0x4B field can be 0x4B, the value of the 0x5 field can be 0x5, and the value of the 0x4B field and the 0x5 field can also be Define the data frame as an overhead frame by other values. For example, the indication information fields in FIG. 2a include the SH field, the 0x4B field and the 0x5 field. The time slot 1 field includes the rate 1 (English: Client Rate 1) of the MAC module 1 (English: Client Rate 1) and the identification 1 (English: Client ID 1) of the MAC module 1 that need to be filled into the time slot 1. Similarly, the time slot 2 field includes the required The rate 2 (English: Client Rate 2) of the MAC module 2 and the identification 2 (English: Client ID 2) of the MAC module 2 are filled into the time slot 2. In addition, the overhead frame 1 may also include a time slot status identification bit Reset, a remote PHY fault (English: Remote PHY Fault, abbreviated: RPF) indication bit, a local PHY fault (English: Local PHY Fault, abbreviated: LPF) indication Bit, PHY chip rate indication field (English: PHY Rate) and cyclic redundancy check (English: cyclic redundancy check, abbreviated: CRC) field, where Reset is used to characterize the time slot state as the default state or negotiation state; RPF and LPF are used to indicate whether the PHY chip is faulty, PHY Rate is used to indicate the maximum rate supported by the PHY chip (that is, the total bandwidth supported by the flexible interface), and CRC is used to check the overhead frame 1. In addition, if the content included in the overhead frame 1 is less than the size requirement of one overhead block 1, the overhead frame 1 may further include a reserved (English: Reserved) field of several bits.
图2b中,由于一个时隙字段占8比特,所以对于一个时隙周期包括8个时隙的情况, 一个开销块不能承载所有的时隙字段,所以,开销帧1包括开销块1和开销块2。其中,开销块1可以包括:指示信息字段1、时隙1字段、时隙2字段和时隙3字段,开销块2可以包括指示信息字段2、时隙4字段、时隙5字段、时隙6字段、时隙7字段和时隙8字段。指示信息字段1可以包括SH字段=10、0x4B字段和0x5字段,该开销块1还可以包括R、RPF、LPF、PHY Rate和Reserved等字段。指示信息字段2可以包括SH字段=01,用于表征该开销块2为开销帧1的数据块,该开销块2还可以包括Reserved和CRC等字段,CRC的取值例如可以是8比特的CRC(简称:CRC-8)。In Fig. 2b, since one slot field occupies 8 bits, for the case where one slot cycle includes 8 slots, one overhead block cannot carry all slot fields, so overhead frame 1 includes overhead block 1 and overhead block 2. Wherein, overhead block 1 may include: indication information field 1, timeslot 1 field, timeslot 2 field, and timeslot 3 field, and overhead block 2 may include indication information field 2, timeslot 4 field, timeslot 5 field, timeslot 6 field, slot 7 field and slot 8 field. The indication information field 1 may include the SH field=10, the 0x4B field, and the 0x5 field, and the overhead block 1 may also include fields such as R, RPF, LPF, PHY Rate, and Reserved. The indication information field 2 may include the SH field=01, which is used to represent that the overhead block 2 is the data block of the overhead frame 1, and the overhead block 2 may also include fields such as Reserved and CRC, and the value of the CRC may be, for example, an 8-bit CRC (abbreviation: CRC-8).
需要说明的是,PHY Rate可以通过不同的取值指示不同的带宽。例如,PHY Rate的长度为3比特,那么,预设的PHY Rate的取值和带宽的对应关系可以参见下表1所示:It should be noted that PHY Rate can indicate different bandwidths through different values. For example, if the length of the PHY Rate is 3 bits, then the corresponding relationship between the preset PHY Rate value and the bandwidth can be seen in Table 1 below:
表1 PHY Rate的取值和带宽的对应关系Table 1 Correspondence between the value of PHY Rate and the bandwidth
PHY Rate的取值The value of PHY Rate PHY芯片支持的总带宽Total bandwidth supported by the PHY chip
000000 ReservedReserved
001001 2.5Gb/s2.5Gb/s
010010 5Gb/s5Gb/s
011011 10Gb/s10Gb/s
100100 20Gb/s20Gb/s
101-111101-111 ReservedReserved
其中,假设PHY芯片20的总带宽为20Gb/s时,开销帧控制单元110生成的开销帧1中的PHY Rate的取值可以是100。需要说明的是,该灵活接口支持的总带宽不再限定为标准的以太接口速率,可以通过定义上述预留的PHY Rate取值或者扩展PHY Rate占用的比特位长度,使得灵活接口支持任意的带宽。Wherein, assuming that the total bandwidth of the PHY chip 20 is 20 Gb/s, the value of the PHY Rate in the overhead frame 1 generated by the overhead frame control unit 110 may be 100. It should be noted that the total bandwidth supported by the flexible interface is no longer limited to the standard Ethernet interface rate. The flexible interface can support any bandwidth by defining the value of the reserved PHY Rate or expanding the bit length occupied by the PHY Rate. .
Client Rate也可以通过不同的取值指示MAC模块的速率。例如,Client Rate的长度为4比特,那么,预设的Client Rate的取值和对应MAC模块的速率的对应关系可以参见下表2所示。Client Rate can also indicate the rate of the MAC module through different values. For example, if the length of the Client Rate is 4 bits, then the corresponding relationship between the value of the preset Client Rate and the rate of the corresponding MAC module can be seen in Table 2 below.
其中,假设MAC模块1的速率为1.25Gb/s时,开销帧控制单元110生成的开销帧1中的时隙1对应该MAC模块1,那么,时隙1字段中包括的Client Rate 1=0x4。需要说明的是,通过在开销帧中各个时隙字段指示该时隙对应MAC模块的速率,使得灵活接口支持多个MAC模块以不同的速率和PHY芯片中的多个PHY模块的通信。Among them, assuming that the rate of the MAC module 1 is 1.25Gb/s, the time slot 1 in the overhead frame 1 generated by the overhead frame control unit 110 corresponds to the MAC module 1, then the Client Rate 1 included in the time slot 1 field = 0x4 . It should be noted that each time slot field in the overhead frame indicates the rate of the MAC module corresponding to the time slot, so that the flexible interface supports communication between multiple MAC modules and multiple PHY modules in the PHY chip at different rates.
接着,分配单元130可以根据开销帧1将数据码块分配到时隙周期中对应时隙的码块流中,生成码块流1,如果该码块流1为MAC芯片10和PHY芯片20之间的首次数据通信,则,该码块流1中携带开销帧1和填充了数据码块的若干个时隙周期。其中,每个MAC模块对应的数据码块在码块流中的填充频率根据该MAC模块的速率和每个时隙对应的等效带宽确定。例如,每个时隙填充的数据码块的速率为2.5Gb/s,MAC模块1的速率为1.25Gb/s,那么,每2个时隙周期的一个时隙中填充MAC模块1。而MAC模块中的数据码块具体填充到一个时隙周期的哪个时隙字段中,可以根据需要进行灵活设计,在本申请实施例中不作具体限定。例如,为了节约资源,开销帧控制单元120可以根据MAC模块对应RS中生成的数据码流的顺序确定各个时隙对应的MAC模块。Next, the allocating unit 130 can allocate the data code blocks to the code block stream corresponding to the time slot in the time slot cycle according to the overhead frame 1, and generate the code block stream 1, if the code block stream 1 is between the MAC chip 10 and the PHY chip 20 For the first data communication between, the code block stream 1 carries the overhead frame 1 and several timeslot periods filled with data code blocks. Wherein, the filling frequency of the data code block corresponding to each MAC module in the code block stream is determined according to the rate of the MAC module and the equivalent bandwidth corresponding to each time slot. For example, the rate of the data block filled in each time slot is 2.5 Gb/s, and the rate of the MAC module 1 is 1.25 Gb/s, then, the MAC module 1 is filled in one time slot of every two time slot periods. The specific time slot field in a time slot cycle that the data code block in the MAC module is filled into can be flexibly designed according to needs, which is not specifically limited in this embodiment of the present application. For example, in order to save resources, the overhead frame control unit 120 may determine the MAC module corresponding to each time slot according to the sequence of the data stream generated in the RS corresponding to the MAC module.
表2 Client Rate的取值和MAC模块的速率的对应关系Table 2 The corresponding relationship between the value of Client Rate and the rate of the MAC module
Client Rate的取值The value of Client Rate MAC模块的速率The rate of the MAC module
0x00x0 ReservedReserved
0x10x1 10Mb/s10Mb/s
0x20x2 100Mb/s100Mb/s
0x30x3 1Gb/s1Gb/s
0x40x4 1.25Gb/s1.25Gb/s
0x50x5 2.5Gb/s2.5Gb/s
0x60x6 5Gb/s5Gb/s
0x70x7 10Gb/s10Gb/s
0x80x8 20Gb/s20Gb/s
0x9~0xF0x9~0xF ReservedReserved
例如,灵活接口支持的带宽为20Gb/s,PHY芯片20包括8个PHY模块,MAC芯片10中包括MAC模块1~MAC模块4,速率分别为1.25Gb/s、1Gb/s、2.5Gb/s和5Gb/s。参见图3a,为一种码块流1的格式示意图,一个时隙周期包括8个时隙,每个时隙的等效带宽为2.5Gb/s,根据RS生成数据码块的顺序确定MAC模块1对应时隙7、MAC模块2对应时隙2、MAC模块3对应时隙5、MAC模块4对应时隙1和时隙3。由于MAC模块1的速率为1.25Gb/s,所以,每两个时隙周期中在一个时隙7中填充一次MAC模块1对应的数据码块,即,每隔(2*8-1=15)个时隙填充一次MAC模块1对应的数据码块。同理,由于MAC模块2的速率为1Gb/s,所以,每五个时隙周期在两个时隙周期的时隙2中填充MAC模块2对应的数据码块。由于MAC模块3的速率为2.5Gb/s,所以,每个时隙周期的时隙5中填充MAC模块3对应的数据码块。由于MAC模块4的速率为5Gb/s,所以,每个时隙周期的时隙1和时隙3中都填充MAC模块4对应的数据码块。需要说明的是,一个时隙周期中的每个时隙和MAC模块的对应关系是固定不变的,以上述MAC模块1为例,在时隙7不需要填充数据码块的时隙周期中,该时隙7可以填入特殊码块(例如:空闲控制码块(英文:idle control block)或错误控制码块(英文:error control block),图中以X表示)。参见图3b,为另一种码块流1的格式示意图,一个时隙周期包括16个时隙,每个时隙的等效带宽为1.25Gb/s,根据RS生成数据码块的顺序确定MAC模块1对应时隙14、MAC模块2对应时隙5、MAC模块3对应时隙9和时隙10、MAC模块4对应时隙1、时隙2、时隙3、时隙7和时隙8。由于MAC模块1的速率为1.25Gb/s,所以,每个时隙周期中在一个时隙14中填充一次MAC模块1对应的数据码块。同理,由于MAC模块2的速率为1Gb/s,所以,每五个时隙周期在四个时隙周期的时隙5中填充MAC模块2对应的数据码块。由于MAC模块3的速率为2.5Gb/s,所以,每个时隙周期的时隙9和时隙10中填充MAC模块3对应的数据码块。由于MAC模块4的速率为5Gb/s,所以,每个时隙周期的时隙1、时隙2、时隙3、时隙7和时隙8中都填充MAC模块4对应的数据码块。图中,时隙中填入的数字可以视作MAC模块的标识,如时隙1中的数字4表示MAC模块4的标识,用于表征该时隙中填充的是MAC模块4对应的数据码块。For example, the bandwidth supported by the flexible interface is 20Gb/s, the PHY chip 20 includes 8 PHY modules, the MAC chip 10 includes MAC module 1 to MAC module 4, and the rates are 1.25Gb/s, 1Gb/s, and 2.5Gb/s respectively. and 5Gb/s. Referring to Fig. 3a, it is a schematic diagram of the format of a code block stream 1. One time slot cycle includes 8 time slots, and the equivalent bandwidth of each time slot is 2.5Gb/s. The MAC module is determined according to the sequence in which the RS generates data code blocks. 1 corresponds to time slot 7, MAC module 2 corresponds to time slot 2, MAC module 3 corresponds to time slot 5, and MAC module 4 corresponds to time slot 1 and time slot 3. Since the rate of the MAC module 1 is 1.25Gb/s, the data code block corresponding to the MAC module 1 is filled in one slot 7 in every two slot cycles, that is, every (2*8-1=15 ) timeslots fill the data code block corresponding to MAC module 1 once. Similarly, since the rate of the MAC module 2 is 1 Gb/s, the data code blocks corresponding to the MAC module 2 are filled in the timeslot 2 of two timeslot periods every five timeslot periods. Since the rate of the MAC module 3 is 2.5 Gb/s, the data code blocks corresponding to the MAC module 3 are filled in the time slot 5 of each time slot cycle. Since the rate of the MAC module 4 is 5Gb/s, the data code blocks corresponding to the MAC module 4 are filled in the time slot 1 and the time slot 3 of each time slot cycle. It should be noted that the correspondence between each time slot in a time slot cycle and the MAC module is fixed. Taking the above MAC module 1 as an example, in the time slot cycle in which the data code block does not need to be filled in time slot 7 , the time slot 7 can be filled with a special code block (for example: an idle control code block (English: idle control block) or an error control code block (English: error control block), represented by X in the figure). Referring to Fig. 3b, it is a schematic diagram of the format of another code block stream 1. One time slot cycle includes 16 time slots, and the equivalent bandwidth of each time slot is 1.25 Gb/s. The MAC is determined according to the sequence in which the RS generates data code blocks. Module 1 corresponds to slot 14, MAC module 2 corresponds to slot 5, MAC module 3 corresponds to slot 9 and slot 10, and MAC module 4 corresponds to slot 1, slot 2, slot 3, slot 7 and slot 8 . Since the rate of the MAC module 1 is 1.25 Gb/s, the data code block corresponding to the MAC module 1 is filled once in one time slot 14 in each time slot cycle. Similarly, since the rate of the MAC module 2 is 1 Gb/s, the data code blocks corresponding to the MAC module 2 are filled in the timeslot 5 of the four timeslot periods every five timeslot periods. Since the rate of the MAC module 3 is 2.5 Gb/s, the data code blocks corresponding to the MAC module 3 are filled in the time slot 9 and the time slot 10 of each time slot cycle. Since the rate of the MAC module 4 is 5Gb/s, the data code blocks corresponding to the MAC module 4 are filled in time slot 1, time slot 2, time slot 3, time slot 7 and time slot 8 of each time slot cycle. In the figure, the number filled in the time slot can be regarded as the identification of the MAC module. For example, the number 4 in the time slot 1 represents the identification of the MAC module 4, which is used to indicate that the data code corresponding to the MAC module 4 is filled in the time slot. Piece.
可选的,灵活接口100还可以利用SerDes 140对码块流1进行串行化处理,得到处理结果1,并将处理结果1通过物理通道300中对应方向的一条物理通道发送到PHY芯片20上,具体发送到PHY芯片20中的灵活接口200上。Optionally, the flexible interface 100 can also use the SerDes 140 to serialize the code block stream 1 to obtain the processing result 1, and send the processing result 1 to the PHY chip 20 through a physical channel in the corresponding direction in the physical channel 300. , and is specifically sent to the flexible interface 200 in the PHY chip 20 .
可选的,灵活接口100为了使得发送给PHY芯片20的数据更加均衡,还可以在串行化处理之前,利用扰码处理单元150对码块流1进行扰码处理,得到码块流1’,再利用SerDes 140对码块流1’进行串行化处理,得到处理结果1’,并将处理结果1’通过物理通道300中对应方向的一条物理通道发送到PHY芯片20。例如,扰码处理单元150可以使用IEEE 802.3 Clause 49.2.6定义的扰码器实现。Optionally, in order to make the data sent to the PHY chip 20 more balanced, the flexible interface 100 can also use the scrambling processing unit 150 to perform scramble processing on the code block stream 1 before the serialization processing, so as to obtain the code block stream 1'. , and then use the SerDes 140 to serialize the code block stream 1' to obtain a processing result 1', and send the processing result 1' to the PHY chip 20 through a physical channel in the corresponding direction in the physical channel 300. For example, the scrambling processing unit 150 may be implemented using a scrambler defined by IEEE 802.3 Clause 49.2.6.
可选的,该灵活接口100还可以包括前向纠错FEC子层,该FEC子层用于对码块流进行FEC编码。例如,灵活接口100中,扰码处理单元150对码块流1进行扰码,得到码块流1’;接着,该FEC子层用于对码块流1’进行FEC编码得到码块流1”;然后,SerDes140对码块流1”进行串行化处理,得到处理结果1”,并将处理结果1”通过物理通信300中对应方向的一条物理通道发送到PHY芯片20。Optionally, the flexible interface 100 may further include a forward error correction FEC sublayer, where the FEC sublayer is used to perform FEC encoding on the code block stream. For example, in the flexible interface 100, the scrambling processing unit 150 scrambles the code block stream 1 to obtain the code block stream 1'; then, the FEC sublayer is used to perform FEC encoding on the code block stream 1' to obtain the code block stream 1 ”; then, the SerDes 140 serializes the code block stream 1” to obtain the processing result 1”, and sends the processing result 1” to the PHY chip 20 through a physical channel in the corresponding direction in the physical communication 300.
最后,在PHY芯片20侧,灵活接口200在接收到通过物理通道300中对应方向的一条物理通道传输来的数据时,分配单元230可以基于开销帧1将各数据码块分配到对应的PHY模块上。可选的,如果该数据为经过SerDes 140对码块流1进行串行化处理得到的处理结果1,则,灵活接口200中可以先由SerDes 240还可以对处理结果1进行解串行处理,得到码块流1,再由分配单元230基于码块流1中的开销帧1将各数据码块分配到对应的PHY模块上。可选的,如果数据为经过扰码处理单元150和SerDes 140进行处理得到的处理结果1’,则,灵活接口200中可以由SerDes 240还可以对处理结果1’进行解串行处理,得到码块流1’,由扰码处理单元250对码块流1’进行解扰码,得到码块流1,再由分配单元230基于码块流1中的开销帧1将各数据码块分配到对应的PHY模块上。需要说明的是,上述灵活接口200中对于接收到的数据进行解串行和解扰码的操作的执行顺序仅是示例性的,在本申请实施例不作具体限定。例如,扰码处理单元250可以使用IEEE 802.3 Clause 49.2.6定义的扰码器实现。Finally, on the side of the PHY chip 20, when the flexible interface 200 receives data transmitted through a physical channel in the corresponding direction in the physical channel 300, the allocation unit 230 can allocate each data code block to the corresponding PHY module based on the overhead frame 1 superior. Optionally, if the data is the processing result 1 obtained by serializing the code block stream 1 by the SerDes 140, then, in the flexible interface 200, the SerDes 240 may firstly perform the deserializing processing on the processing result 1, The code block stream 1 is obtained, and then the allocation unit 230 allocates each data code block to the corresponding PHY module based on the overhead frame 1 in the code block stream 1. Optionally, if the data is the processing result 1' obtained by processing by the scrambling processing unit 150 and the SerDes 140, then, in the flexible interface 200, the SerDes 240 can also perform deserialization processing on the processing result 1' to obtain the code. Block stream 1', the code block stream 1' is descrambled by the scrambling processing unit 250 to obtain code block stream 1, and then the allocation unit 230 allocates each data code block to the block stream 1 based on the overhead frame 1 in the code block stream 1. on the corresponding PHY module. It should be noted that the execution sequence of the operations of deserializing and descrambling the received data in the flexible interface 200 is merely exemplary, and is not specifically limited in the embodiments of the present application. For example, the scrambling processing unit 250 may be implemented using a scrambler defined by IEEE 802.3 Clause 49.2.6.
具体实现时,一种情况下,灵活接口200中可以包括MAC模块和PHY模块的映射关系1,那么,分配单元230可以基于开销帧1确定各个时隙中的数据码块来自哪个MAC模块,再综合考虑该映射关系1和开销帧1的指示,将各时隙中的数据码块准确的分配到对应的PHY模块。另一种情况下,灵活接口200中也可以包括各个时隙和PHY模块的映射关系2,那么,分配单元230即可基于该映射关系2的指示,将各时隙中的数据码块准确的分配到对应的PHY模块。In specific implementation, in one case, the flexible interface 200 may include the mapping relationship 1 between the MAC module and the PHY module, then the allocation unit 230 may determine which MAC module the data code blocks in each time slot come from based on the overhead frame 1, and then Considering the mapping relationship 1 and the indication of the overhead frame 1 comprehensively, the data code blocks in each time slot are accurately allocated to the corresponding PHY modules. In another case, the flexible interface 200 may also include the mapping relationship 2 between each time slot and the PHY module. Then, the allocation unit 230 can accurately assign the data code blocks in each time slot to the data code block based on the indication of the mapping relationship 2. assigned to the corresponding PHY module.
可见,通过该示例提供的灵活接口,能够实现MAC芯片10中的多个MAC模块和PHY芯片20中的多个PHY模块之间以不同速率进行数据交互的效果,使得多个PHY模块和多个MAC模块共享灵活接口成为可能。It can be seen that through the flexible interface provided by this example, the effect of data interaction between multiple MAC modules in the MAC chip 10 and multiple PHY modules in the PHY chip 20 at different rates can be realized, so that the multiple PHY modules and the multiple PHY modules can interact with each other at different rates. It is possible for MAC modules to share flexible interfaces.
作为第二个示例,以PHY芯片20向MAC芯片10发送数据的过程为例,说明本申请实施例提供的第二种实现方式中灵活接口的工作过程和涉及的相关概念:As a second example, taking the process of sending data from the PHY chip 20 to the MAC chip 10 as an example, the working process of the flexible interface and related concepts involved in the second implementation manner provided by the embodiment of the present application are described:
该示例中的PHY模块和MAC模块之间可以是一一对应的关系,各MAC模块支持的 速率均相同,各PHY模块支持的速率均相同,MAC模块和PHY模块的速率相同。PHY芯片20和MAC芯片10上预先保存配置信息,其中,PHY芯片20上的配置信息1用于指示PHY模块和时隙的对应关系,MAC芯片10上的配置信息2用于指示MAC模块和时隙的对应关系。其中,每个PHY模块或MAC模块在配置信息中出现的次数可以根据PHY模块或MAC模块支持的速率和每个时隙对应的等效带宽确定,例如,每个时隙的等效带宽为2.5Gb/s,每个MAC模块支持的速率也为2.5Gb/s,则配置信息2中一个时隙周期内每个MAC模块对应一个时隙;又例如,每个时隙的等效带宽为2.5Gb/s,每个MAC模块支持的速率也为5Gb/s,则配置信息2中一个时隙周期内每个MAC模块对应两个时隙,与同一MAC模块对应的两个时隙可以是时隙周期内相邻的时隙,也可以是时隙周期内不相邻的时隙。In this example, there may be a one-to-one correspondence between the PHY modules and the MAC modules, each MAC module supports the same rate, each PHY module supports the same rate, and the MAC module and the PHY module have the same rate. Configuration information is pre-stored on the PHY chip 20 and the MAC chip 10, wherein the configuration information 1 on the PHY chip 20 is used to indicate the corresponding relationship between the PHY module and the time slot, and the configuration information 2 on the MAC chip 10 is used to indicate the MAC module and the time slot. gap correspondence. The number of times each PHY module or MAC module appears in the configuration information can be determined according to the rate supported by the PHY module or MAC module and the equivalent bandwidth corresponding to each time slot. For example, the equivalent bandwidth of each time slot is 2.5 Gb/s, the rate supported by each MAC module is also 2.5Gb/s, then in the configuration information 2, each MAC module corresponds to a time slot in a time slot period; for another example, the equivalent bandwidth of each time slot is 2.5 Gb/s, the rate supported by each MAC module is also 5Gb/s, then in the configuration information 2, each MAC module corresponds to two time slots in a time slot cycle, and the two time slots corresponding to the same MAC module can be time slots. The adjacent time slots in the slot period may also be non-adjacent time slots in the time slot period.
例如,如果PHY芯片20包括8个PHY模块,一个时隙周期包括8个时隙,则,PHY芯片20上的配置信息1可以如下表3所示:For example, if the PHY chip 20 includes 8 PHY modules, and one time slot cycle includes 8 time slots, the configuration information 1 on the PHY chip 20 may be as shown in Table 3 below:
表3配置信息1Table 3 Configuration Information 1
Figure PCTCN2021087110-appb-000001
Figure PCTCN2021087110-appb-000001
又例如,如果PHY芯片20包括4个PHY模块,一个时隙周期包括8个时隙,则,PHY芯片20上的配置信息1可以如下表4所示:For another example, if the PHY chip 20 includes 4 PHY modules, and one time slot cycle includes 8 time slots, the configuration information 1 on the PHY chip 20 may be as shown in Table 4 below:
表4配置信息1Table 4 Configuration Information 1
Figure PCTCN2021087110-appb-000002
Figure PCTCN2021087110-appb-000002
例如,如果MAC芯片10包括8个MAC模块,一个时隙周期包括8个时隙,则,MAC芯片10上的配置信息2可以如下表5所示:For example, if the MAC chip 10 includes 8 MAC modules, and one time slot cycle includes 8 time slots, the configuration information 2 on the MAC chip 10 may be as shown in Table 5 below:
表5配置信息2Table 5 Configuration Information 2
Figure PCTCN2021087110-appb-000003
Figure PCTCN2021087110-appb-000003
又例如,如果MAC芯片10包括2个MAC模块,一个时隙周期包括8个时隙,则,MAC芯片10上的配置信息2可以如下表6所示:For another example, if the MAC chip 10 includes 2 MAC modules, and one time slot cycle includes 8 time slots, the configuration information 2 on the MAC chip 10 may be as shown in Table 6 below:
表6配置信息2Table 6 Configuration Information 2
Figure PCTCN2021087110-appb-000004
Figure PCTCN2021087110-appb-000004
首先,PHY模块1~PHY模块N将数据码流通过对应的端口发送给灵活接口200。First, the PHY module 1 to the PHY module N send the data stream to the flexible interface 200 through the corresponding port.
然后,灵活接口200接收到该数据码流后,一方面,编码单元220用于对各数据码流进行编码,得到对应的数据码块。编码单元220的编码方式在本申请实施例不作具体限 定,例如:如果灵活接口200支持的总带宽小于40Gb/s,编码单元220按照IEEE 802.3中第49条的方式进行66B/68B编码,如果灵活接口200支持的总带宽大于或等于40Gb/s,编码单元220按照IEEE 802.3中第82条的方式进行66B/68B编码;又例如,不以灵活接口200支持的总带宽区分编码方式,编码单元220按照IEEE 802.3中第49条的方式进行66B/68B编码。另一方面,开销帧控制单元110生成开销帧2。开销帧2用于指示灵活接口200传输的码块流的开始位置,开销帧2可以包括至少一个68比特的开销块,该开销帧2可以包括用于表征该帧为开销帧的指示信息字段。指示信息字段可以包括SH字段、0x4B字段和0x5字段中的至少一个,其中,SH字段的取值为10,表示该开销块为开销帧2的控制块。例如,图4中的指示信息字段包括SH字段、0x4B字段和0x5字段,此外,该开销帧2还可以包括R、RPF、LPF、PHY Rate和CRC等字段。此外,如果开销帧2包括的内容不足68比特,则该开销帧2还可以包括若干比特的Reserved字段。Then, after the flexible interface 200 receives the data code stream, on the one hand, the encoding unit 220 is configured to encode each data code stream to obtain a corresponding data code block. The encoding mode of the encoding unit 220 is not specifically limited in the embodiment of the present application. For example, if the total bandwidth supported by the flexible interface 200 is less than 40Gb/s, the encoding unit 220 performs 66B/68B encoding according to the method of Article 49 in IEEE 802.3. The total bandwidth supported by the interface 200 is greater than or equal to 40 Gb/s, and the encoding unit 220 performs 66B/68B encoding according to the IEEE 802.3 clause 82; for another example, the encoding method is not distinguished by the total bandwidth supported by the flexible interface 200, the encoding unit 220 66B/68B encoding is performed according to Clause 49 in IEEE 802.3. On the other hand, the overhead frame control unit 110 generates the overhead frame 2 . The overhead frame 2 is used to indicate the starting position of the code block stream transmitted by the flexible interface 200. The overhead frame 2 may include at least one 68-bit overhead block, and the overhead frame 2 may include an indication information field for characterizing the frame as an overhead frame. The indication information field may include at least one of the SH field, the 0x4B field, and the 0x5 field, where the value of the SH field is 10, indicating that the overhead block is the control block of the overhead frame 2 . For example, the indication information field in FIG. 4 includes the SH field, the 0x4B field, and the 0x5 field. In addition, the overhead frame 2 may also include fields such as R, RPF, LPF, PHY Rate, and CRC. In addition, if the content included in the overhead frame 2 is less than 68 bits, the overhead frame 2 may further include a Reserved field of several bits.
接着,分配单元230可以根据配置信息1将数据码块分配到对应的时隙,生成码块流2,如果该码块流2为MAC芯片10和PHY芯片20之间的首次数据通信,则,该码块流2中的开始位置填充开销帧2,用于指示码块流2中数据码块的开始位置。Next, the allocation unit 230 can allocate the data code blocks to the corresponding time slots according to the configuration information 1, and generate a code block stream 2. If the code block stream 2 is the first data communication between the MAC chip 10 and the PHY chip 20, then, The start position in the code block stream 2 fills the overhead frame 2 to indicate the start position of the data code block in the code block stream 2 .
例如,如果PHY芯片20包括4个PHY模块,每个PHY模块支持的速率为2.5Gb/s,一个时隙周期包括8个时隙,PHY芯片20上的配置信息1参见上述表4所示,则,生成的码块流2可以参见图5所示。参见图5,该码块流2可以包括开销帧2、PHY模块1对应的时隙1、PHY模块2对应的时隙2、PHY模块3对应的时隙3、PHY模块4对应的时隙4、PHY模块1对应的时隙5、PHY模块2对应的时隙6、PHY模块3对应的时隙7、PHY模块4对应的时隙8、PHY模块1对应的时隙1、PHY模块2对应的时隙2、……。图中,时隙中填入的数字可以视作PHY模块的标识,如时隙1中的数字1表示PHY模块1的标识,用于表征该时隙中填充的是PHY模块1对应的数据码块。For example, if the PHY chip 20 includes 4 PHY modules, the rate supported by each PHY module is 2.5 Gb/s, and one time slot cycle includes 8 time slots, the configuration information 1 on the PHY chip 20 is shown in Table 4 above, Then, the generated code block stream 2 can be referred to as shown in FIG. 5 . Referring to FIG. 5 , the code block stream 2 may include overhead frame 2, time slot 1 corresponding to PHY module 1, time slot 2 corresponding to PHY module 2, time slot 3 corresponding to PHY module 3, and time slot 4 corresponding to PHY module 4 , Time slot 5 corresponding to PHY module 1, time slot 6 corresponding to PHY module 2, time slot 7 corresponding to PHY module 3, time slot 8 corresponding to PHY module 4, time slot 1 corresponding to PHY module 1, corresponding to PHY module 2 time slot 2, . . . In the figure, the number filled in the time slot can be regarded as the identity of the PHY module. For example, the number 1 in the time slot 1 represents the identity of the PHY module 1, which is used to indicate that the data code corresponding to the PHY module 1 is filled in the time slot. Piece.
可选的,灵活接口200还可以利用SerDes 240对码块流2进行串行化处理,得到处理结果2,并将处理结果2通过物理通道300中对应方向的一条物理通道发送到MAC芯片10上,具体发送到MAC芯片10中的灵活接口100上。Optionally, the flexible interface 200 can also use the SerDes 240 to serialize the code block stream 2 to obtain a processing result 2, and send the processing result 2 to the MAC chip 10 through a physical channel in the corresponding direction in the physical channel 300. , which is specifically sent to the flexible interface 100 in the MAC chip 10 .
可选的,灵活接口200为了使得发送给MAC芯片10的数据更加均衡,还可以在串行化处理之前,利用扰码处理单元250对码块流2进行扰码得到码块流2’,其中,码块流2和码块流2’的长度相同,再利用SerDes 240对码块流2’进行串行化处理,得到处理结果2’,并将处理结果2’通过物理通道300中对应方向的一条物理通道发送到MAC芯片10。Optionally, in order to make the data sent to the MAC chip 10 more balanced, the flexible interface 200 can also use the scrambling processing unit 250 to scramble the code block stream 2 before the serialization process to obtain the code block stream 2', wherein , the lengths of the code block stream 2 and the code block stream 2' are the same, and then use the SerDes 240 to serialize the code block stream 2' to obtain the processing result 2', and pass the processing result 2' through the corresponding direction in the physical channel 300. is sent to the MAC chip 10 on a physical channel.
最后,在MAC芯片10侧,灵活接口100在接收到通过物理通道300中对应方向的一条物理通道传输来的数据时,分配单元130可以基于开销帧2确定码块流2的开始位置,从而基于配置信息2将各数据码块分配到对应的PHY模块上。例如,如果PHY芯片20上的配置信息1如表4所示,则,MAC芯片10上的配置信息2可以参见下述表7所示:Finally, on the side of the MAC chip 10, when the flexible interface 100 receives the data transmitted through a physical channel in the corresponding direction in the physical channel 300, the allocation unit 130 can determine the starting position of the code block stream 2 based on the overhead frame 2, so as to be based on Configuration information 2 allocates each data code block to the corresponding PHY module. For example, if the configuration information 1 on the PHY chip 20 is shown in Table 4, the configuration information 2 on the MAC chip 10 can be shown in Table 7 below:
表7配置信息2Table 7 Configuration Information 2
时隙1 slot 1 时隙2 slot 2 时隙3 slot 3 时隙4 slot 4 时隙5slot 5 时隙6 slot 6 时隙7 slot 7 时隙8slot 8
MAC模MAC mode MAC模MAC mode MAC模MAC mode MAC模MAC mode MAC模MAC mode MAC模MAC mode MAC模MAC mode MAC模MAC mode
块1 block 1 块2 block 2 块3 block 3 块4 block 4 块1 block 1 块2 block 2 块3 block 3 块4 block 4
可选的,如果该数据为经过SerDes 240对码块流2进行串行化处理得到的处理结果2,则,灵活接口100中可以先由SerDes 140还可以对处理结果2进行解串行处理,得到码块流2,再由分配单元130基于配置信息2将各数据码块分配到对应的MAC模块上。Optionally, if the data is the processing result 2 obtained by serializing the code block stream 2 through the SerDes 240, then, in the flexible interface 100, the SerDes 140 may first perform deserialization processing on the processing result 2, The code block stream 2 is obtained, and then the allocation unit 130 allocates each data code block to the corresponding MAC module based on the configuration information 2 .
可选的,如果数据为经过扰码处理单元250和SerDes 240进行处理得到的处理结果2’,则,灵活接口100中可以由SerDes 140还可以对处理结果2’进行解串行处理,得到码块流2’,由扰码处理单元150对码块流2’进行解扰码得到码块流2,再由分配单元130基于配置信息2将各数据码块分配到对应的MAC模块上。需要说明的是,上述灵活接口100中对于接收到的数据进行解串行和解扰码的操作的执行顺序仅是示例性的,在本申请实施例不作具体限定。Optionally, if the data is the processing result 2' obtained through processing by the scrambling code processing unit 250 and the SerDes 240, then, in the flexible interface 100, the SerDes 140 can also perform deserialization processing on the processing result 2' to obtain the code. For block stream 2', the scrambling processing unit 150 descrambles the code block stream 2' to obtain code block stream 2, and then the allocation unit 130 allocates each data code block to the corresponding MAC module based on the configuration information 2. It should be noted that, the execution sequence of the operations of deserializing and descrambling the received data in the flexible interface 100 is only exemplary, and is not specifically limited in this embodiment of the present application.
可见,通过该示例提供的灵活接口,能够实现MAC芯片10中的多个MAC模块和PHY芯片20中的多个PHY模块之间进行数据交互的效果,使得多个PHY模块和多个MAC模块共享灵活接口成为可能。It can be seen that, through the flexible interface provided by this example, the effect of data interaction between multiple MAC modules in the MAC chip 10 and multiple PHY modules in the PHY chip 20 can be achieved, so that multiple PHY modules and multiple MAC modules share Flexible interfaces are possible.
对于本申请实施例提供的两种可能的实现方式,在码块流中插入开销帧的频率以及插入时机,均可以根据时机需求进行灵活设置。例如,可以在码块流中周期性的插入开销帧,插入开销帧的周期可以是预设个数(如20000个)的时隙周期,这样,能够有效避免分配单元在将各个时隙的数据码块分配到各个模块的过程中发生错误,一定程度上保证了分配的有序和准确的进行。又例如,也可以基于触发事件在码块流中插入开销帧,其中,触发事件可以是时隙分配有修改或链路出现故障等事件,此时,插入的开销帧为基于触发事件而生成的新的开销帧,这样,确保发生触发事件后,仍然能够保证分配的准确进行。For the two possible implementation manners provided by the embodiments of the present application, the frequency of inserting overhead frames into the code block stream and the insertion timing can be flexibly set according to timing requirements. For example, overhead frames can be periodically inserted into the code block stream, and the period for inserting overhead frames can be a preset number (eg, 20,000) timeslot periods. Errors occur in the process of allocating code blocks to various modules, which ensures the orderly and accurate allocation to a certain extent. For another example, an overhead frame may also be inserted into the code block stream based on a trigger event, where the trigger event may be an event such as a time slot allocation modification or a link failure. In this case, the inserted overhead frame is generated based on the trigger event. A new overhead frame, in this way, ensures that after a trigger event occurs, the allocation can still be guaranteed to be accurate.
在一些实施例中,如果开销帧包括至少两个开销块,则,一种情况下,该至少两个开销块可以同时插入到码块流中,这样,接收到码块流中灵活接口即可从该码块流快速的获取到开销帧,从而直接可以基于开销帧对各个时隙中的数据码块进行分配,提高了灵活接口的处理效率。另一种情况下,为了避免一次插入较多的开销块导致较为严重的抖动,从而影响数据的传输,也可以将至少两个开销帧分别在不同的位置插入码块流中,但是,码块流中插入开销块的位置通常是两个时隙周期之间的位置,而不选择在时隙周期内部插入开销块。对于将至少两个开销块分别插入码块流的不同位置,接收到码块流的灵活接口需要先从该码块流的不同位置获取到开销帧的所有开销块,获取到最后一个开销块之前的所有数据码块需要被缓存,再基于所有开销块确定的开销帧对各个时隙中的数据码块进行分配。该情况下能够有效的减少插入开销帧对码块流的影响。该情况下开销块可以是周期性插入的,插入周期包括的码块数量可以是一个时隙周期包括时隙总数的整数倍。In some embodiments, if the overhead frame includes at least two overhead blocks, in one case, the at least two overhead blocks can be inserted into the code block stream at the same time, so that the flexible interface in the code block stream can be received. The overhead frame is quickly acquired from the code block stream, so that the data code blocks in each time slot can be directly allocated based on the overhead frame, which improves the processing efficiency of the flexible interface. In another case, in order to avoid more serious jitter caused by inserting more overhead blocks at a time, thus affecting data transmission, at least two overhead frames can also be inserted into the code block stream at different positions. However, the code block The position in the stream where the overhead block is inserted is usually the position between two slot periods, instead of choosing to insert the overhead block inside a slot period. For inserting at least two overhead blocks into different positions of the code block stream, the flexible interface that receives the code block stream needs to obtain all the overhead blocks of the overhead frame from different positions of the code block stream first, before obtaining the last overhead block. All the data code blocks of the time slot need to be buffered, and then the data code blocks in each time slot are allocated based on the overhead frame determined by all the overhead blocks. In this case, the impact of inserting overhead frames on the code block stream can be effectively reduced. In this case, the overhead blocks may be inserted periodically, and the number of code blocks included in the insertion period may be an integer multiple of the total number of time slots included in one slot cycle.
例如,一个开销帧包括两个开销块,周期性插入开销帧,且插入开销帧的周期为2500个时隙周期,一种情况下,如果两个开销块同时插入码块流,则,码块流的格式可以参见图6a所示,该码块流中依次包括:开销帧、2500个时隙周期、开销帧、2500个时隙周期、……;另一种情况下,如果两个开销块1和2分别插入码块流,且相隔2个时隙周期,则,码块流的格式可以参见图6b所示,该码块流中依次包括:开销块1、2个时隙周期、开销块2、2498个时隙周期、开销块1、2个时隙周期、开销块2、2498个时隙周 期、……。For example, an overhead frame includes two overhead blocks, and the overhead frame is inserted periodically, and the period for inserting the overhead frame is 2500 time slot periods. In one case, if two overhead blocks are inserted into the code block stream at the same time, then the code block The format of the stream can be seen in Figure 6a. The code block stream includes: overhead frame, 2500 timeslot periods, overhead frames, 2500 timeslot periods, ...; in another case, if two overhead blocks 1 and 2 are inserted into the code block stream respectively, and are separated by 2 timeslot periods, then the format of the code block stream can be seen in Figure 6b. The code block stream sequentially includes: overhead block 1, 2 timeslot periods, overhead Block 2, 2498 slot periods, overhead block 1, 2 slot periods, overhead block 2, 2498 slot periods, . . .
对于发送开销帧的过程,例如可以是在发送数据码块之前,先连续的发送开销块,直到开销帧包括的所有开销块都被接收和识别,接着,从下一个非开销帧(下一个非开销帧为与最后一个开销块相邻的数据码块,如,可以通过开销块识别字段被识别)开始作为发送数据码块的起点,开始发送包括数据码块的码块流给对端。再例如也可以周期性的发送开销块,即,相邻的两个开销块之间间隔固定个数的数据码块,如,相邻的两个开销块之间相隔10个数据码块,当对端确定开销帧包括的开销块都被接收和识别到时,可以通过开销帧反馈一个确认(acknowledge)信号,触发发送端不再发送开销块。需要说明的是,以上两种举例的方式中,如果存在运行中失锁或者需要修改配置的操作,需要重新启动开销帧发送的整个流程。For the process of sending overhead frames, for example, before sending data code blocks, the overhead blocks are continuously sent until all the overhead blocks included in the overhead frame are received and identified, and then, from the next non-overhead frame (the next non-overhead frame) The overhead frame is the data code block adjacent to the last overhead block, for example, can be identified by the overhead block identification field) as the starting point of sending the data code block, and starts to send the code block stream including the data code block to the opposite end. For another example, overhead blocks can also be sent periodically, that is, a fixed number of data code blocks are spaced between two adjacent overhead blocks, for example, 10 data code blocks are spaced between two adjacent overhead blocks. When the opposite end determines that all the overhead blocks included in the overhead frame are received and recognized, it may feed back an acknowledgement signal through the overhead frame to trigger the sending end to no longer send the overhead blocks. It should be noted that, in the above two examples, if there is an operation of losing the lock during operation or the configuration needs to be modified, the entire process of sending the overhead frame needs to be restarted.
上述第一个示例是本申请实施例提供的第一种可能的实现方式中的一个举例,该实现方式中对应的数据处理方法可以参见下述方法100和方法200中的相关描述;同样的,上述第二个示例是本申请实施例提供的第二种可能的实现方式中的一个举例,该实现方式中对应的数据处理方法可以参见下述方法300和方法400中的相关描述。The above-mentioned first example is an example of the first possible implementation manner provided by the embodiment of the present application. For the corresponding data processing method in this implementation manner, reference may be made to the related descriptions in the following method 100 and method 200; similarly, The above second example is an example of the second possible implementation manner provided by the embodiment of the present application. For the corresponding data processing method in this implementation manner, reference may be made to the related descriptions in the following method 300 and method 400 .
下面结合附图,通过实施例来详细说明本申请实施例中一种数据处理方法的具体实现方式。The specific implementation of a data processing method in the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
本申请实施例提供的一种数据处理方法,由MAC芯片和PHY芯片中的灵活接口对数据进行处理,实现MAC芯片和PHY芯片之间多种不同速率的数据码流有序传输的效果。例如,该方法可以在图1所示的场景中实施,MAC芯片为图1中的MAC芯片10,PHY芯片为PHY芯片20,灵活接口对应MAC芯片10内的灵活接口100和PHY芯片20内的灵活接口200。In a data processing method provided by an embodiment of the present application, data is processed by a flexible interface in a MAC chip and a PHY chip, so as to achieve the effect of orderly transmission of multiple data streams of different rates between the MAC chip and the PHY chip. For example, the method can be implemented in the scenario shown in FIG. 1 , where the MAC chip is the MAC chip 10 in FIG. 1 , the PHY chip is the PHY chip 20 , and the flexible interface corresponds to the flexible interface 100 in the MAC chip 10 and the interface in the PHY chip 20 . Flexible interface 200.
下述方法100和方法200对应于第一种可能的实现方式,其中,方法100以MAC芯片10向PHY芯片20发送数据的过程为例介绍灵活接口执行的数据处理过程;方法200以PHY芯片20向MAC芯片10发送数据的过程为例介绍MII执行的数据处理过程。下述方法300和方法400对应于第二种可能的实现方式,其中,方法300以MAC芯片10向PHY芯片20发送数据的过程为例介绍灵活接口执行的数据处理过程;方法400以PHY芯片20向MAC芯片10发送数据的过程为例介绍灵活接口执行的数据处理过程。The following method 100 and method 200 correspond to the first possible implementation manner, wherein the method 100 takes the process of sending data from the MAC chip 10 to the PHY chip 20 as an example to introduce the data processing process performed by the flexible interface; The process of sending data to the MAC chip 10 is taken as an example to introduce the data processing process performed by the MII. The following methods 300 and 400 correspond to the second possible implementation manner, wherein the method 300 takes the process of sending data from the MAC chip 10 to the PHY chip 20 as an example to introduce the data processing process performed by the flexible interface; The process of sending data to the MAC chip 10 is taken as an example to introduce the data processing process performed by the flexible interface.
下述方法100~方法400中,编码单元对数据码流进行编码得到数据码块的过程中均考虑灵活接口支持的总带宽。如果灵活接口100支持的总带宽小于40Gb/s,编码单元120按照IEEE 802.3中第49条的方式进行66B/68B编码;如果灵活接口100支持的总带宽大于或等于40Gb/s,编码单元120按照IEEE 802.3中第82条的方式进行66B/68B编码。In the following methods 100 to 400, the total bandwidth supported by the flexible interface is considered in the process that the encoding unit encodes the data code stream to obtain the data code block. If the total bandwidth supported by the flexible interface 100 is less than 40 Gb/s, the encoding unit 120 performs 66B/68B encoding according to the method in Clause 49 of IEEE 802.3; if the total bandwidth supported by the flexible interface 100 is greater than or equal to 40 Gb/s, the encoding unit 120 performs 66B/68B encoding is performed in the manner of Clause 82 in IEEE 802.3.
图7为本申请实施例中一种数据处理方法100的流程示意图。该方法100中的S101~S105由MAC芯片10中的灵活接口100执行,S106~S107由PHY芯片20中的灵活接口200执行。参见图7,该方法100例如可以包括:FIG. 7 is a schematic flowchart of a data processing method 100 in an embodiment of the present application. S101 to S105 in the method 100 are performed by the flexible interface 100 in the MAC chip 10 , and S106 to S107 are performed by the flexible interface 200 in the PHY chip 20 . Referring to FIG. 7, the method 100 may include, for example:
S101,MII 100中的开销帧控制单元110根据来自各MAC模块的数据码流,生成第一开销帧,该第一开销帧用于指示各数据码流对应的时隙。S101, the overhead frame control unit 110 in the MII 100 generates a first overhead frame according to the data stream from each MAC module, where the first overhead frame is used to indicate the time slot corresponding to each data stream.
需要说明的是,灵活接口100接收到个MAC模块对应的数据码流之前,各MAC模块 将待发送给PHY芯片20的MAC帧流,通过各MAC模块分别连接对应的RS进行处理,得到数据码流,并将数据码流通过对应的端口发送给灵活接口100。需要说明的是,RS对MAC帧流的处理例如可以是基于MAC帧流来自的MAC模块所支持的速率分割MAC帧流,得到数据码流,如果MAC模块1的速率为10Gb/s时,与MAC模块1连接的RS 1可以将来自MAC模块1的MAC帧流1分割为32比特大小的数据码流;如果MAC模块N的速率为1Gb/s时,与MAC模块N连接的RS N可以将来自MAC模块N的MAC帧流N分割为8比特大小的数据码流。It should be noted that, before the flexible interface 100 receives the data code stream corresponding to each MAC module, each MAC module will process the MAC frame stream to be sent to the PHY chip 20 by connecting the corresponding RS to each MAC module to obtain the data code. stream, and send the data stream to the flexible interface 100 through the corresponding port. It should be noted that, the processing of the MAC frame stream by the RS may be, for example, by dividing the MAC frame stream based on the rate supported by the MAC module from which the MAC frame stream comes to obtain a data stream. If the rate of the MAC module 1 is 10Gb/s, the same The RS 1 connected to the MAC module 1 can divide the MAC frame stream 1 from the MAC module 1 into 32-bit data streams; if the rate of the MAC module N is 1Gb/s, the RS N connected to the MAC module N can The MAC frame stream N from the MAC module N is divided into 8-bit data streams.
灵活接口100接收到数据码流之后,可以基于数据码流生成第一开销帧,该第一开销帧的相关描述可以参见上述第一个示例中关于开销帧1的相关描述,具体格式可以参见图2a和图2b以及相关说明。After receiving the data stream, the flexible interface 100 may generate a first overhead frame based on the data stream. For a description of the first overhead frame, please refer to the description of the overhead frame 1 in the first example above, and the specific format may refer to FIG. 2a and 2b and related descriptions.
S102,灵活接口100中的编码单元120对来自各MAC模块的数据码流进行编码,得到各MAC模块对应的数据码块。S102, the encoding unit 120 in the flexible interface 100 encodes the data code stream from each MAC module to obtain a data code block corresponding to each MAC module.
其中,灵活接口100支持的总带宽取决于PHY芯片20的总带宽,PHY芯片20的总带宽可以是PHY芯片20中各个PHY模块支持的速率之和。The total bandwidth supported by the flexible interface 100 depends on the total bandwidth of the PHY chip 20 , and the total bandwidth of the PHY chip 20 may be the sum of the rates supported by each PHY module in the PHY chip 20 .
需要说明的是,S101和S102的执行没有先后顺序的限定,可以先执行S101再执行S102,也可以先执行S102再执行S101,还可以同时执行S101和S102,在本实施例中不作具体限定。It should be noted that the execution of S101 and S102 is not limited in order. S101 may be executed first and then S102 may be executed, or S102 may be executed first and then S101, or S101 and S102 may be executed simultaneously, which is not specifically limited in this embodiment.
S103,灵活接口100中的分配单元130基于第一开销帧,将各数据码块插入对应的时隙,生成第一码块流,该第一码块流包括第一开销帧、以及插入数据码块的时隙。S103, the allocation unit 130 in the flexible interface 100 inserts each data code block into the corresponding time slot based on the first overhead frame, and generates a first code block stream, where the first code block stream includes the first overhead frame and the inserted data code block slot.
其中,将各数据码块插入对应的时隙,可以是指将各个数据码块插入时隙周期对应的时隙在码块流中对应的位置,得到待发送的第一码块流。Wherein, inserting each data code block into the corresponding time slot may refer to inserting each data code block into the corresponding position of the time slot corresponding to the time slot period in the code block stream to obtain the first code block stream to be sent.
例如,如果灵活接口100支持的总带宽为20Gb/s,一个时隙周期包括8个时隙,第一开销帧中每个时隙字段的低4比特指示Client Rate,高4比特指示Client ID。MAC模块1支持的速率为1.25GB/s,MAC模块2支持的速率为1Gb/s,MAC模块3支持的速率为2.5Gb/s,MAC模块4支持的速率为5Gb/s。第一开销帧如图8a所示,时隙1字段中Client Rate=0x06,Client ID指示MAC模块4;时隙2字段中Client Rate=0x3,Client ID指示MAC模块2;时隙3字段中Client Rate=0x6,Client ID指示MAC模块4;时隙4字段为空;时隙5字段中Client Rate=0x5,Client ID指示MAC模块3;时隙6字段为空;时隙7字段中Client Rate=0x4,Client ID指示MAC模块1,时隙8为空。该场景下,经过S103之后,生成的第一码块流的格式例如可以参见图3a。For example, if the total bandwidth supported by the flexible interface 100 is 20Gb/s, and one slot cycle includes 8 slots, the lower 4 bits of each slot field in the first overhead frame indicate the Client Rate, and the upper 4 bits indicate the Client ID. The rate supported by MAC module 1 is 1.25GB/s, the rate supported by MAC module 2 is 1Gb/s, the rate supported by MAC module 3 is 2.5Gb/s, and the rate supported by MAC module 4 is 5Gb/s. The first overhead frame is shown in Figure 8a. In the field of time slot 1, Client Rate=0x06, and the Client ID indicates MAC module 4; in the field of time slot 2, Client Rate=0x3, and the Client ID indicates MAC module 2; in the field of time slot 3, the Client Rate=0x6, Client ID indicates MAC module 4; slot 4 field is empty; Client Rate=0x5 in slot 5 field, Client ID indicates MAC module 3; slot 6 field is empty; in slot 7 field Client Rate= 0x4, Client ID indicates MAC module 1, slot 8 is empty. In this scenario, after S103, the format of the generated first code block stream can be referred to, for example, FIG. 3a.
又例如,如果灵活接口100支持的总带宽为10Gb/s,一个时隙周期包括10个时隙,第一开销帧中每个时隙字段的低4比特指示Client Rate,高4比特指示Client ID。MAC模块1支持的速率为100MB/s,MAC模块2支持的速率为1Gb/s,MAC模块3支持的速率为5Gb/s,MAC模块4支持的速率为1Gb/s。第一开销帧如图8b所示,时隙1字段~时隙5字段中Client Rate=0x6,Client ID指示MAC模块3;时隙6字段中Client Rate=0x3,Client ID指示MAC模块2;时隙7字段中Client Rate=0x3,Client ID指示MAC模块4;时隙8字段中Client Rate=0x2,Client ID指示MAC模块1;时隙9字段和时隙10字段为空。该 场景下,经过S103之后,生成的第一码块流的格式例如可以参见图9所示,每个时隙周期中,MAC模块3对应的数据码块占用时隙1~时隙5,MAC模块2和MAC模块4对应的数据码块分别占用时隙6和时隙7,在每10个时隙周期中插入一次MAC模块1对应的数据码块,该MAC模块1对应的数据码块占用时隙8,在不插入MAC模块1对应的数据码块的时隙周期中,采用特殊码块(如空闲控制码块或错误控制码块)占用时隙8。For another example, if the total bandwidth supported by the flexible interface 100 is 10 Gb/s, and one slot cycle includes 10 slots, the lower 4 bits of each slot field in the first overhead frame indicate the Client Rate, and the upper 4 bits indicate the Client ID. . The rate supported by the MAC module 1 is 100MB/s, the rate supported by the MAC module 2 is 1Gb/s, the rate supported by the MAC module 3 is 5Gb/s, and the rate supported by the MAC module 4 is 1Gb/s. The first overhead frame is shown in Figure 8b. In the fields of time slot 1 to time slot 5, Client Rate=0x6, and Client ID indicates MAC module 3; in the time slot 6 field, Client Rate=0x3, and Client ID indicates MAC module 2; Client Rate=0x3 in slot 7 field, Client ID indicates MAC module 4; Client Rate=0x2 in slot 8 field, Client ID indicates MAC module 1; slot 9 field and slot 10 field are empty. In this scenario, after S103, the format of the generated first code block stream can be seen, for example, as shown in FIG. 9. In each time slot cycle, the data code block corresponding to the MAC module 3 occupies time slot 1 to time slot 5, and the MAC The data code blocks corresponding to the module 2 and the MAC module 4 occupy time slot 6 and time slot 7 respectively, and the data code block corresponding to the MAC module 1 is inserted in every 10 time slot cycles, and the data code block corresponding to the MAC module 1 occupies In the time slot 8, in the time slot period in which the data code block corresponding to the MAC module 1 is not inserted, a special code block (such as an idle control code block or an error control code block) is used to occupy the time slot 8.
需要说明的是,上述举例中仅示出了在第一码块流的开始位置插入第一开销帧的情况,未考虑多次在第一码块流中插入开销帧的情况,多次插入开销帧的情况以及相关解释可以参见上述图6a和图6b以及对应的说明。It should be noted that the above example only shows the case of inserting the first overhead frame at the beginning of the first code block stream, and does not consider the case of inserting the overhead frame into the first code block stream multiple times, inserting the overhead multiple times. The frame situation and related explanations can be referred to the above-mentioned Fig. 6a and Fig. 6b and the corresponding description.
S104,灵活接口100中的SerDes 140对第一码块流进行串行化处理,得到第一处理结果。S104, the SerDes 140 in the flexible interface 100 performs serialization processing on the first code block stream to obtain a first processing result.
需要说明的是,S104为可选的步骤。It should be noted that, S104 is an optional step.
对第一码块流进行串行化处理,能够确保通过物理通道300有序的传输该第一码块流。Serializing the first code block stream can ensure orderly transmission of the first code block stream through the physical channel 300 .
作为一个示例,灵活接口100中还可以包括扰码处理单元150,用于对分配单元130获得第一码块流进行扰码,得到更新后的第一码块流;接着,灵活接口100中的SerDes140对更新后的第一码块流进行串行化处理,得到第一处理结果。这样,通过对第一码块流的扰码,能够使得发送给PHY芯片20的数据更加均衡。As an example, the flexible interface 100 may further include a scrambling code processing unit 150 for scrambling the first code block stream obtained by the allocation unit 130 to obtain an updated first code block stream; then, the The SerDes 140 performs serialization processing on the updated first code block stream to obtain a first processing result. In this way, by scrambling the first code block stream, the data sent to the PHY chip 20 can be more balanced.
S105,灵活接口100通过物理通道300将第一处理结果发送给MII 200。S105, the flexible interface 100 sends the first processing result to the MII 200 through the physical channel 300.
通过本申请实施例提供的灵活接口以及数据处理方式,MAC芯片10和PHY芯片20之间仅通过一对物理通道即可完成多个MAC模块和多个PHY模块之间的有效通信。With the flexible interfaces and data processing methods provided by the embodiments of the present application, effective communication between multiple MAC modules and multiple PHY modules can be completed only through a pair of physical channels between the MAC chip 10 and the PHY chip 20 .
S106,灵活接口200中的SerDes 240对第一处理结果进行解串行处理,得到第一码块流。S106, the SerDes 240 in the flexible interface 200 deserializes the first processing result to obtain a first code block stream.
需要说明的是,S106为可选的步骤。It should be noted that, S106 is an optional step.
如果第一处理结果为灵活接口100中的SerDes 140对第一码块流进行串行化处理的结果,则,灵活接口200也需要通过SerDes 240对接收到的第一处理结果进行解串行处理,以得到第一码块流。其中,SerDes 140执行的串行化处理和SerDes 240执行的解串行处理是逆过程,即,对A进行串行化处理得到B,对B进行解串行处理得到的是A。If the first processing result is the result of serializing the first code block stream by the SerDes 140 in the flexible interface 100, then the flexible interface 200 also needs to perform deserializing processing on the received first processing result through the SerDes 240 , to get the first code block stream. The serialization process performed by the SerDes 140 and the deserialization process performed by the SerDes 240 are inverse processes, that is, B is obtained by serializing A, and A is obtained by deserializing B.
作为一个示例,如果灵活接口100中还对第一码块流进行了扰码,那么,灵活接口200中也包括扰码处理单元250,用于对解串行后的码块流进行解扰码,得到第一码块流。需要说明的是,上述灵活接口200中对于接收到的数据进行解串行和解扰码的操作的执行顺序仅是示例性的,也可以先对接收到的第一处理结果进行解扰码处理,再对解扰码的结果进行解串行处理,得到第一码块流。As an example, if the first code block stream is also scrambled in the flexible interface 100, the flexible interface 200 also includes a scrambling code processing unit 250, configured to descramble the deserialized code block stream , get the first code block stream. It should be noted that the execution sequence of the operations of deserializing and descrambling the received data in the above flexible interface 200 is only exemplary, and the first processing result received may also be descrambled first. Then, deserialize the result of descrambling to obtain the first code block stream.
S107,灵活接口200中的分配单元230基于第一码块流中的第一开销帧,将第一码块流中的各数据码块分配到PHY芯片20中的各PHY模块。S107 , the allocation unit 230 in the flexible interface 200 allocates each data code block in the first code block stream to each PHY module in the PHY chip 20 based on the first overhead frame in the first code block stream.
作为一个示例,灵活接口200中可以包括MAC模块和PHY模块的映射关系1,那么,分配单元230可以基于第一开销帧确定各个时隙中的数据码块来自的MAC模块,再综合考虑该映射关系1和第一开销帧的指示,将各时隙中的数据码块准确的分配到对应的PHY 模块。As an example, the flexible interface 200 may include a mapping relationship 1 between the MAC module and the PHY module. Then, the allocation unit 230 may determine the MAC module from which the data code blocks in each time slot come from based on the first overhead frame, and then comprehensively consider the mapping According to the relationship 1 and the indication of the first overhead frame, the data code blocks in each time slot are accurately allocated to the corresponding PHY modules.
作为另一个示例,灵活接口200中也可以包括各个时隙和PHY模块的映射关系2,那么,分配单元230即可基于该映射关系2的指示,将各时隙中的数据码块准确的分配到对应的PHY模块。As another example, the flexible interface 200 may also include the mapping relationship 2 between each time slot and the PHY module, then the allocation unit 230 can accurately allocate the data code blocks in each time slot based on the indication of the mapping relationship 2 to the corresponding PHY module.
需要说明的是,在PHY模块接收到对应的数据码块后,即可对数据码块进行标准的处理,例如,经过物理编码子层(英文:physical coding sublayer,简称:PCS)处理、物理介质接入(英文:physical medium attachment,简称:PMA)处理或前向纠错(英文:forward error correction,简称:FEC)处理等。It should be noted that after the PHY module receives the corresponding data code block, it can perform standard processing on the data code block. Access (English: physical medium attachment, referred to as: PMA) processing or forward error correction (English: forward error correction, referred to as: FEC) processing and so on.
可见,通过本申请实施例提供的方法100,MAC芯片中的灵活接口生成开销帧,该开销帧能够指示各个MAC模块对应的数据码块占用的时隙,这样,灵活接口即可按照开销帧的指示在码块流的时隙中准确的填充对应的数据码块,并将开销帧插入到码块流中发送给PHY芯片,PHY芯片中的灵活接口同样能够按照码块流中的开销帧确定各个时隙中的数据码块对应的PHY模块,从而将码块流中的各数据码块分配到PHY芯片中的多个PHY模块,实现PHY芯片和MAC芯片之间多种不同速率的数据码流有序传输的效果,满足了对PHY芯片和MAC芯片之间更好的通信需求。It can be seen that, through the method 100 provided in the embodiment of the present application, the flexible interface in the MAC chip generates an overhead frame, and the overhead frame can indicate the time slot occupied by the data code block corresponding to each MAC module. In this way, the flexible interface can follow the overhead frame. Instructs to accurately fill the corresponding data code block in the time slot of the code block stream, and insert the overhead frame into the code block stream and send it to the PHY chip. The flexible interface in the PHY chip can also be determined according to the overhead frame in the code block stream. The PHY module corresponding to the data code block in each time slot, so that each data code block in the code block stream is allocated to multiple PHY modules in the PHY chip, so as to realize various data codes of different rates between the PHY chip and the MAC chip The effect of orderly transmission of streams satisfies the demand for better communication between the PHY chip and the MAC chip.
图10为本申请实施例中一种数据处理方法200的流程示意图。该方法200中的S201~S205由PHY芯片20中的灵活接口200执行,S206~S207由MAC芯片10中的灵活接口100执行。参见图10,该方法200例如可以包括:FIG. 10 is a schematic flowchart of a data processing method 200 in an embodiment of the present application. S201 - S205 in the method 200 are performed by the flexible interface 200 in the PHY chip 20 , and S206 - S207 are performed by the flexible interface 100 in the MAC chip 10 . Referring to FIG. 10, the method 200 may include, for example:
S201,灵活接口200中的开销帧控制单元210根据来自各PHY模块的数据码流,生成第二开销帧,该第二开销帧用于指示各数据码流对应的时隙。S201 , the overhead frame control unit 210 in the flexible interface 200 generates a second overhead frame according to the data stream from each PHY module, where the second overhead frame is used to indicate the time slot corresponding to each data stream.
灵活接口200接收到数据码流之后,可以基于数据码流生成第二开销帧,该第二开销帧的相关描述可以参见上述第一个示例中关于开销帧1的相关描述,具体格式可以参见图2a和图2b以及相关说明,区别在于,该第二开销帧中的时隙字段中,包括该时隙对应的PHY模块支持的速率和PHY模块的标识。After receiving the data code stream, the flexible interface 200 may generate a second overhead frame based on the data code stream. For the relevant description of the second overhead frame, please refer to the relevant description of the overhead frame 1 in the first example above, and the specific format may refer to FIG. 2a and FIG. 2b and related descriptions, the difference is that the time slot field in the second overhead frame includes the rate supported by the PHY module corresponding to the time slot and the identifier of the PHY module.
S202,灵活接口200中的编码单元220对来自各PHY模块的数据码流进行编码,得到各PHY模块对应的数据码块。S202, the encoding unit 220 in the flexible interface 200 encodes the data code stream from each PHY module to obtain a data code block corresponding to each PHY module.
需要说明的是,S201和S202的执行没有先后顺序的限定,可以先执行S201再执行S202,也可以先执行S202再执行S201,还可以同时执行S201和S202,在本实施例中不作具体限定。It should be noted that the execution of S201 and S202 is not limited in sequence. S201 may be executed first and then S202 may be executed, or S202 may be executed first and then S201 may be executed, or S201 and S202 may be executed simultaneously, which is not specifically limited in this embodiment.
S203,灵活接口200中的分配单元230基于第二开销帧,将各数据码块插入对应的时隙,生成第二码块流,该第二码块流包括第二开销帧以及插入数据码块的时隙。S203, the allocation unit 230 in the flexible interface 200 inserts each data code block into the corresponding time slot based on the second overhead frame, and generates a second code block stream, where the second code block stream includes the second overhead frame and the inserted data code block time slot.
其中,将各数据码块插入对应的时隙,可以是指将各个数据码块插入时隙周期对应的时隙在码块流中对应的位置,得到待发送的第二码块流。Wherein, inserting each data code block into the corresponding time slot may refer to inserting each data code block into the corresponding position of the time slot corresponding to the time slot period in the code block stream to obtain the second code block stream to be sent.
S204,灵活接口200中的SerDes 240对第二码块流进行串行化处理,得到第二处理结果。S204, the SerDes 240 in the flexible interface 200 performs serialization processing on the second code block stream to obtain a second processing result.
需要说明的是,S204为可选的步骤。It should be noted that S204 is an optional step.
作为一个示例,灵活接口200中还可以包括扰码处理单元250,用于对分配单元230 获得第二码块流进行扰码,得到更新后的第二码块流;接着,灵活接口200中的SerDes240对更新后的第二码块流进行串行化处理,得到第二处理结果。这样,通过对第二码块流的扰码处理,能够使得发送给MAC芯片10的数据更加均衡。As an example, the flexible interface 200 may further include a scrambling code processing unit 250, configured to scramble the second code block stream obtained by the allocation unit 230 to obtain an updated second code block stream; then, the SerDes 240 serializes the updated second code block stream to obtain a second processing result. In this way, the data sent to the MAC chip 10 can be more balanced by scrambling the second code block stream.
S205,灵活接口200通过物理通道300将第二处理结果发送给灵活接口100。S205 , the flexible interface 200 sends the second processing result to the flexible interface 100 through the physical channel 300 .
S206,灵活接口100中的SerDes 140对第二处理结果进行解串行处理,得到第二码块流。S206, the SerDes 140 in the flexible interface 100 deserializes the second processing result to obtain a second code block stream.
需要说明的是,S206为可选的步骤。It should be noted that S206 is an optional step.
如果第二处理结果为灵活接口200中的SerDes 240对第二码块流进行串行化处理的结果,则,灵活接口100也需要通过SerDes 140对接收到的第二处理结果进行解串行处理,以得到第二码块流。If the second processing result is the result of serializing the second code block stream by the SerDes 240 in the flexible interface 200, the flexible interface 100 also needs to perform deserializing processing on the received second processing result through the SerDes 140 , to obtain the second code block stream.
作为一个示例,如果灵活接口200中还对第二码块流进行了扰码,那么,灵活接口100中也包括扰码处理单元150,用于对解串行后的码块流进行解扰码,得到第二码块流。As an example, if the second code block stream is also scrambled in the flexible interface 200, the flexible interface 100 also includes a scrambling code processing unit 150, configured to descramble the deserialized code block stream , to obtain the second code block stream.
S207,灵活接口100中的分配单元130基于第二码块流中的第二开销帧,将第二码块流中的各数据码块分配到MAC芯片10中的各MAC模块。S207 , the allocation unit 130 in the flexible interface 100 allocates each data code block in the second code block stream to each MAC module in the MAC chip 10 based on the second overhead frame in the second code block stream.
作为一个示例,灵活接口100中可以包括MAC模块和PHY模块的映射关系1,那么,分配单元130可以基于第二开销帧确定各个时隙中的数据码块来自的PHY模块,再综合考虑该映射关系1和第二开销帧的指示,将各时隙中的数据码块准确的分配到对应的MAC模块。As an example, the flexible interface 100 may include a mapping relationship 1 between the MAC module and the PHY module. Then, the allocation unit 130 may determine, based on the second overhead frame, the PHY module from which the data code blocks in each time slot come from, and then comprehensively consider the mapping According to the indication of relation 1 and the second overhead frame, the data code blocks in each time slot are accurately allocated to the corresponding MAC module.
作为另一个示例,灵活接口100中也可以包括各个时隙和MAC模块的映射关系3,那么,分配单元130即可基于该映射关系3的指示,将各时隙中的数据码块准确的分配到对应的PHY模块。As another example, the flexible interface 100 may also include the mapping relationship 3 between each time slot and the MAC module, then the allocation unit 130 can accurately allocate the data code blocks in each time slot based on the indication of the mapping relationship 3 to the corresponding PHY module.
需要说明的是,S207具体可以是指:灵活接口100通过多个端口将数据码块分别发送到各MAC模块对应的RS上,由RS进行相应的处理后发送给MAC模块。It should be noted that, S207 may specifically refer to: the flexible interface 100 sends the data code blocks to the RS corresponding to each MAC module through a plurality of ports, and the RS performs corresponding processing and sends the data block to the MAC module.
可见,通过本申请实施例提供的方法200,PHY芯片中的灵活接口生成开销帧,该开销帧能够指示各个PHY模块对应的数据码块占用的时隙,这样,灵活接口即可按照开销帧的指示在码块流的时隙中准确的填充对应的数据码块,并将开销帧插入到码块流中发送给MAC芯片,MAC芯片中的灵活接口同样能够按照码块流中的开销帧确定各个时隙中的数据码块对应的MAC模块,从而将码块流中的各数据码块分配到MAC芯片中的多个MAC模块,实现PHY芯片和MAC芯片之间多种不同速率的数据码流有序传输的效果,满足了对PHY芯片和MAC芯片之间更好的通信需求。It can be seen that, through the method 200 provided by the embodiment of the present application, the flexible interface in the PHY chip generates an overhead frame, and the overhead frame can indicate the time slot occupied by the data code block corresponding to each PHY module. In this way, the flexible interface can follow the overhead frame. Instructs to accurately fill the corresponding data code block in the time slot of the code block stream, and insert the overhead frame into the code block stream and send it to the MAC chip. The flexible interface in the MAC chip can also be determined according to the overhead frame in the code block stream. The MAC module corresponding to the data code block in each time slot, so that each data code block in the code block stream is allocated to multiple MAC modules in the MAC chip, so as to realize various data codes of different rates between the PHY chip and the MAC chip The effect of orderly transmission of streams satisfies the demand for better communication between the PHY chip and the MAC chip.
需要说明的是,下述方法300和方法400中,需要MAC芯片10和PHY芯片20中均保存有配置信息,为了安全性和可靠性,该配置信息可以是通过硬件固化在芯片上的、不可修改的内容。此外,该MAC芯片10和PHY芯片20的寄存器里均保存有运行模式,运行模式和配置信息对应,灵活接口读这个运行模式之后,就能够自动按照该运行模式对应的配置信息处理数据。It should be noted that, in the following methods 300 and 400, configuration information needs to be stored in both the MAC chip 10 and the PHY chip 20. For security and reliability, the configuration information may be hardened on the chip by hardware and cannot be Modified content. In addition, the registers of the MAC chip 10 and the PHY chip 20 both store the operation mode, and the operation mode corresponds to the configuration information. After the flexible interface reads the operation mode, it can automatically process data according to the configuration information corresponding to the operation mode.
在一些实施例中,方法300和方法400中,PHY模块和MAC模块之间可以是一一对应的关系,各MAC模块支持的速率均相同或不同,各PHY模块支持的速率均相同或不同,MAC模块和PHY模块的速率相同或不同。PHY芯片20上的第一配置信息用于指示PHY模块和时隙的对应关系,MAC芯片10上的第二配置信息用于指示MAC模块和时隙的对应关系。其中,每个PHY模块或MAC模块在配置信息中出现的次数可以根据PHY模块或MAC模块支持的速率和每个时隙对应的等效带宽确定,例如,每个时隙的等效带宽为2.5Gb/s,每个MAC模块支持的速率也为2.5Gb/s,则第二配置信息中一个时隙周期内每个MAC模块对应一个时隙;又例如,每个时隙的等效带宽为2.5Gb/s,每个MAC模块支持的速率也为5Gb/s,则第二配置信息中一个时隙周期内每个MAC模块对应两个时隙,与同一MAC模块对应的两个时隙可以是时隙周期内相邻的时隙,也可以是时隙周期内不相邻的时隙。配置信息的具体内容可以参见上述表3~表7以及相关描述。In some embodiments, in the method 300 and the method 400, there may be a one-to-one correspondence between the PHY module and the MAC module, the rates supported by each MAC module are the same or different, and the rates supported by each PHY module are the same or different, The rates of the MAC block and the PHY block are the same or different. The first configuration information on the PHY chip 20 is used to indicate the corresponding relationship between the PHY module and the time slot, and the second configuration information on the MAC chip 10 is used to indicate the corresponding relationship between the MAC module and the time slot. The number of times each PHY module or MAC module appears in the configuration information can be determined according to the rate supported by the PHY module or MAC module and the equivalent bandwidth corresponding to each time slot. For example, the equivalent bandwidth of each time slot is 2.5 Gb/s, the rate supported by each MAC module is also 2.5Gb/s, then in the second configuration information, each MAC module corresponds to a time slot in a time slot period; for another example, the equivalent bandwidth of each time slot is 2.5Gb/s, and the rate supported by each MAC module is also 5Gb/s. In the second configuration information, each MAC module corresponds to two time slots in one time slot period, and the two time slots corresponding to the same MAC module can be It is an adjacent time slot in the time slot period, or it can be a non-adjacent time slot in the time slot period. For the specific content of the configuration information, see Table 3 to Table 7 and related descriptions above.
图11为本申请实施例中一种数据处理方法300的流程示意图。该方法300中的S301~S305由MAC芯片10中的灵活接口100执行,S306~S307由PHY芯片20中的灵活接口200执行。参见图11,该方法300例如可以包括:FIG. 11 is a schematic flowchart of a data processing method 300 in an embodiment of the present application. S301 to S305 in the method 300 are performed by the flexible interface 100 in the MAC chip 10 , and S306 to S307 are performed by the flexible interface 200 in the PHY chip 20 . Referring to FIG. 11 , the method 300 may include, for example:
S301,灵活接口100中的开销帧控制单元110生成第三开销帧,该第三开销帧用于指示待传输码块流的起始位置。S301 , the overhead frame control unit 110 in the flexible interface 100 generates a third overhead frame, where the third overhead frame is used to indicate the starting position of the stream of code blocks to be transmitted.
灵活接口100接收到数据码流之后,可以基于数据码流生成第三开销帧,该第三开销帧的相关描述可以参见上述第二个示例中关于开销帧2的相关描述,具体格式可以参见图4以及相关说明。After receiving the data code stream, the flexible interface 100 may generate a third overhead frame based on the data code stream. For the relevant description of the third overhead frame, please refer to the relevant description of the overhead frame 2 in the second example above, and the specific format may refer to FIG. 4 and related instructions.
S302,灵活接口100中的编码单元120对来自各MAC模块的数据码流进行编码,得到各MAC模块对应的数据码块。S302, the encoding unit 120 in the flexible interface 100 encodes the data code stream from each MAC module to obtain a data code block corresponding to each MAC module.
需要说明的是,S301和S302的执行没有先后顺序的限定,可以先执行S301再执行S302,也可以先执行S302再执行S301,还可以同时执行S301和S302,在本实施例中不作具体限定。It should be noted that the execution of S301 and S302 is not limited in order. S301 may be executed first and then S302 may be executed, or S302 may be executed first and then S301 may be executed, or S301 and S302 may be executed simultaneously, which is not specifically limited in this embodiment.
S303,灵活接口100中的分配单元130根据第二配置信息,将各数据码块插入对应的时隙,生成第三码块流,该第三码块流包括第三开销帧以及插入数据码块的时隙。S303, the allocation unit 130 in the flexible interface 100 inserts each data code block into the corresponding time slot according to the second configuration information, and generates a third code block stream, where the third code block stream includes a third overhead frame and an inserted data code block time slot.
其中,将各数据码块插入对应的时隙,可以是指将各个数据码块插入时隙周期对应的时隙在码块流中对应的位置,得到待发送的第三码块流。Wherein, inserting each data code block into the corresponding time slot may refer to inserting each data code block into the corresponding position of the time slot corresponding to the time slot period in the code block stream to obtain the third code block stream to be sent.
例如,如果第二配置信息为上述表6所示,则生成的第三码块流可以包括:第三开销帧、MAC模块1对应的时隙1、MAC模块2对应的时隙2、MAC模块3对应的时隙1、MAC模块4对应的时隙2、MAC模块5对应的时隙1、MAC模块6对应的时隙2、MAC模块7对应的时隙1、MAC模块8对应的时隙2、MAC模块1对应的时隙1、MAC模块2对应的时隙2、……。For example, if the second configuration information is shown in Table 6 above, the generated third code block stream may include: the third overhead frame, the time slot 1 corresponding to the MAC module 1, the time slot 2 corresponding to the MAC module 2, and the MAC module Time slot 1 corresponding to 3, time slot 2 corresponding to MAC module 4, time slot 1 corresponding to MAC module 5, time slot 2 corresponding to MAC module 6, time slot 1 corresponding to MAC module 7, time slot corresponding to MAC module 8 2. Time slot 1 corresponding to MAC module 1, time slot 2 corresponding to MAC module 2, . . .
又例如,如果第二配置信息为上述表5所示,则生成的第三码块流可以包括:第三开销帧、MAC模块1对应的时隙1、MAC模块2对应的时隙2、MAC模块3对应的时隙3、MAC模块4对应的时隙4、MAC模块5对应的时隙5、MAC模块6对应的时隙6、MAC模块7对应的时隙7、MAC模块8对应的时隙8、MAC模块1对应的时隙1、MAC模块2 对应的时隙2、……。For another example, if the second configuration information is shown in Table 5 above, the generated third code block stream may include: the third overhead frame, the time slot 1 corresponding to the MAC module 1, the time slot 2 corresponding to the MAC module 2, and the MAC Time slot 3 corresponding to module 3, time slot 4 corresponding to MAC module 4, time slot 5 corresponding to MAC module 5, time slot 6 corresponding to MAC module 6, time slot 7 corresponding to MAC module 7, time slot corresponding to MAC module 8 Slot 8, time slot 1 corresponding to MAC module 1, time slot 2 corresponding to MAC module 2, . . .
需要说明的是,上述举例中仅示出了在第三码块流的开始位置插入第三开销帧的情况,未考虑多次在第三码块流中插入开销帧的情况,多次插入开销帧的情况以及相关解释可以参见上述图6a和图6b以及对应的说明。It should be noted that the above example only shows the case where the third overhead frame is inserted at the beginning of the third code block stream, and does not consider the case where the overhead frame is inserted into the third code block stream multiple times, and the overhead is inserted multiple times. The frame situation and related explanations can refer to the above-mentioned Fig. 6a and Fig. 6b and the corresponding description.
S304,灵活接口100中的SerDes 140对第三码块流进行串行化处理,得到第三处理结果。S304, the SerDes 140 in the flexible interface 100 performs serialization processing on the third code block stream to obtain a third processing result.
需要说明的是,S304为可选的步骤。It should be noted that S304 is an optional step.
作为一个示例,灵活接口100中还可以包括扰码处理单元150,用于对分配单元130获得第三码块流进行扰码,得到更新后的第三码块流;接着,灵活接口100中的SerDes140对更新后的第三码块流进行串行化处理,得到第三处理结果。这样,通过对第三码块流的扰码处理,能够使得发送给PHY芯片20的数据更加均衡。As an example, the flexible interface 100 may further include a scrambling code processing unit 150, configured to scramble the third code block stream obtained by the allocation unit 130 to obtain an updated third code block stream; then, in the flexible interface 100 The SerDes 140 serializes the updated third code block stream to obtain a third processing result. In this way, the data sent to the PHY chip 20 can be more balanced by scrambling the third code block stream.
S305,灵活接口100通过物理通道300将第三处理结果发送给灵活接口200。S305 , the flexible interface 100 sends the third processing result to the flexible interface 200 through the physical channel 300 .
S306,灵活接口200中的SerDes 240对第三处理结果进行解串行处理,得到第三码块流。S306, the SerDes 240 in the flexible interface 200 deserializes the third processing result to obtain a third code block stream.
需要说明的是,S306为可选的步骤。It should be noted that S306 is an optional step.
如果第三处理结果为灵活接口100中的SerDes 140对第三码块流进行串行化处理的结果,则,灵活接口200也需要通过SerDes 240对接收到的第三处理结果进行解串行处理,以得到第三码块流。If the third processing result is the result of serializing the third code block stream by the SerDes 140 in the flexible interface 100, then the flexible interface 200 also needs to use the SerDes 240 to deserialize the received third processing result. , to obtain the third code block stream.
作为一个示例,如果灵活接口100中还对第三码块流进行了扰码,那么,灵活接口200中也包括扰码处理单元250,用于对解串行后的码块流进行解扰码,得到第三码块流。As an example, if the third code block stream is also scrambled in the flexible interface 100, the flexible interface 200 also includes a scrambling code processing unit 250, configured to descramble the deserialized code block stream , get the third code block stream.
S307,灵活接口200中的分配单元230基于第一配置信息和第三开销帧,将第三码块流中的各数据码块分配到PHY芯片20中的各PHY模块。S307 , the allocation unit 230 in the flexible interface 200 allocates each data code block in the third code block stream to each PHY module in the PHY chip 20 based on the first configuration information and the third overhead frame.
例如,如果MAC芯片10上的第二配置信息如上表5所示,那么,PHY芯片20上保存的第一配置信息可以如上表3所示。For example, if the second configuration information on the MAC chip 10 is as shown in Table 5 above, then the first configuration information stored on the PHY chip 20 may be as shown in Table 3 above.
需要说明的是,在PHY模块接收到对应的数据码块后,即可对数据码块进行标准的处理,例如,经过PCS处理、PMA处理或FEC处理等。It should be noted that, after the PHY module receives the corresponding data code block, it can perform standard processing on the data code block, for example, through PCS processing, PMA processing, or FEC processing.
可见,通过本申请实施例提供的方法300,MAC芯片中的灵活接口生成开销帧,该开销帧能够指示待传输码块流的开始位置,而且MAC芯片上包括用于指示MAC模块和时隙之间对应关系的配置信息,这样,灵活接口即可按照配置信息的指示在码块流的时隙中准确的填充对应的数据码块,并将开销帧插入到码块流中发送给PHY芯片,PHY芯片中的灵活接口同样能够按照码块流中的开销帧确定码块流的起始位置,并基于PHY芯片中保存的用于指示PHY模块和时隙之间对应关系的配置信息确定各个时隙中的数据码块对应的PHY模块,从而将码块流中的各数据码块分配到PHY芯片中的多个PHY模块,实现PHY芯片和MAC芯片之间数据码流有序传输的效果,满足了对PHY芯片和MAC芯片之间更好的通信需求。It can be seen that, through the method 300 provided in this embodiment of the present application, the flexible interface in the MAC chip generates an overhead frame, and the overhead frame can indicate the starting position of the stream of code blocks to be transmitted, and the MAC chip includes an overhead frame for indicating the difference between the MAC module and the time slot. In this way, the flexible interface can accurately fill the corresponding data block in the time slot of the code block stream according to the instructions of the configuration information, and insert the overhead frame into the code block stream and send it to the PHY chip. The flexible interface in the PHY chip can also determine the starting position of the code block stream according to the overhead frame in the code block stream, and determine each time based on the configuration information stored in the PHY chip to indicate the correspondence between the PHY module and the time slot. The PHY module corresponding to the data code block in the slot, so that each data code block in the code block stream is allocated to multiple PHY modules in the PHY chip, and the effect of orderly transmission of the data code stream between the PHY chip and the MAC chip is realized. It meets the demand for better communication between the PHY chip and the MAC chip.
图12为本申请实施例中一种数据处理方法400的流程示意图。该方法400中的 S401~S405由PHY芯片20中的灵活接口200执行,S406~S407由MAC芯片10中的灵活接口100执行。参见图12,该方法400例如可以包括:FIG. 12 is a schematic flowchart of a data processing method 400 in an embodiment of the present application. S401 to S405 in the method 400 are performed by the flexible interface 200 in the PHY chip 20 , and S406 to S407 are performed by the flexible interface 100 in the MAC chip 10 . Referring to Figure 12, the method 400 may include, for example:
S401,灵活接口200中的开销帧控制单元210生成第四开销帧,该第四开销帧用于指示待传输码块流的起始位置。S401 , the overhead frame control unit 210 in the flexible interface 200 generates a fourth overhead frame, where the fourth overhead frame is used to indicate the starting position of the stream of code blocks to be transmitted.
灵活接口200接收到数据码流之后,可以基于数据码流生成第四开销帧,该第四开销帧的相关描述可以参见上述第二个示例中关于开销帧2的相关描述,具体格式可以参见图4以及相关说明。After receiving the data code stream, the flexible interface 200 may generate a fourth overhead frame based on the data code stream. For the relevant description of the fourth overhead frame, please refer to the relevant description of the overhead frame 2 in the second example above, and the specific format can be referred to in FIG. 4 and related instructions.
S402,灵活接口200中的编码单元220对来自各PHY模块的数据码流进行编码,得到各MAC模块对应的数据码块。S402, the encoding unit 220 in the flexible interface 200 encodes the data code stream from each PHY module to obtain a data code block corresponding to each MAC module.
需要说明的是,S401和S402的执行没有先后顺序的限定,可以先执行S401再执行S402,也可以先执行S402再执行S401,还可以同时执行S401和S402,在本实施例中不作具体限定。It should be noted that the execution of S401 and S402 is not limited in sequence. S401 may be executed first and then S402 may be executed, or S402 may be executed first and then S401 may be executed, or S401 and S402 may be executed simultaneously, which is not specifically limited in this embodiment.
S403,灵活接口200中的分配单元230基于第一配置信息,将各数据码块插入对应的时隙,生成第四码块流,该第四码块流包括第四开销帧以及插入数据码块的时隙。S403, the allocation unit 230 in the flexible interface 200 inserts each data code block into the corresponding time slot based on the first configuration information, and generates a fourth code block stream, where the fourth code block stream includes a fourth overhead frame and an inserted data code block time slot.
其中,将各数据码块插入对应的时隙,可以是指将各个数据码块插入时隙周期对应的时隙在码块流中对应的位置,得到待发送的第四码块流。Inserting each data code block into the corresponding time slot may refer to inserting each data code block into the corresponding position of the time slot corresponding to the time slot period in the code block stream to obtain the fourth code block stream to be sent.
S404,灵活接口200中的SerDes 240对第四码块流进行串行化处理,得到第四处理结果。S404, the SerDes 240 in the flexible interface 200 serializes the fourth code block stream to obtain a fourth processing result.
需要说明的是,S404为可选的步骤。It should be noted that S404 is an optional step.
作为一个示例,灵活接口200中还可以包括扰码处理单元250,用于对分配单元230获得第四码块流进行扰码,得到更新后的第四码块流;接着,灵活接口200中的SerDes240对更新后的第四码块流进行串行化处理,得到第四处理结果。这样,通过对第四码块流进行扰码处理,能够使得发送给MAC芯片10的数据更加均衡。As an example, the flexible interface 200 may further include a scrambling code processing unit 250, configured to scramble the fourth code block stream obtained by the allocation unit 230 to obtain an updated fourth code block stream; then, in the flexible interface 200 SerDes 240 serializes the updated fourth code block stream to obtain a fourth processing result. In this way, by performing scrambling processing on the fourth code block stream, the data sent to the MAC chip 10 can be more balanced.
S405,灵活接口200通过物理通道300将第四处理结果发送给灵活接口100。S405 , the flexible interface 200 sends the fourth processing result to the flexible interface 100 through the physical channel 300 .
S406,灵活接口100中的SerDes 140对第四处理结果进行解串行处理,得到第四码块流。S406, the SerDes 140 in the flexible interface 100 deserializes the fourth processing result to obtain a fourth code block stream.
需要说明的是,S406为可选的步骤。It should be noted that S406 is an optional step.
如果第四处理结果为灵活接口200中的SerDes 240对第四码块流进行串行化处理的结果,则,灵活接口100也需要通过SerDes 140对接收到的第四处理结果进行解串行处理,以得到第四码块流。If the fourth processing result is the result of serializing the fourth code block stream by the SerDes 240 in the flexible interface 200, then the flexible interface 100 also needs to perform deserializing processing on the received fourth processing result through the SerDes 140 , to obtain the fourth code block stream.
作为一个示例,如果灵活接口200中还对第四码块流中进行了扰码,那么,灵活接口100中也包括扰码处理单元150,用于对解串行后的码块流进行解扰码,得到第四码块流。As an example, if the fourth code block stream is also scrambled in the flexible interface 200, then the flexible interface 100 also includes a scrambling code processing unit 150, configured to descramble the deserialized code block stream code to obtain the fourth code block stream.
S407,灵活接口100中的分配单元130基于第二配置信息和第四开销帧,将第四码块流中的各数据码块分配到MAC芯片10中的各MAC模块。S407 , the allocation unit 130 in the flexible interface 100 allocates each data code block in the fourth code block stream to each MAC module in the MAC chip 10 based on the second configuration information and the fourth overhead frame.
例如,如果PHY芯片20上保存的第一配置信息如上表3所示,那么,MAC芯片10上的第二配置信息可以如上表5所示。For example, if the first configuration information stored on the PHY chip 20 is as shown in Table 3 above, then the second configuration information on the MAC chip 10 may be as shown in Table 5 above.
需要说明的是,S407具体可以是指:灵活接口100通过多个端口将数据码块分别发送到各MAC模块对应的RS上,由RS进行相应的处理后发送给MAC模块。It should be noted that S407 may specifically refer to: the flexible interface 100 sends the data code blocks to the RS corresponding to each MAC module respectively through multiple ports, and the RS performs corresponding processing and sends the data block to the MAC module.
可见,通过本申请实施例提供的方法400,PHY芯片中的灵活接口生成开销帧,该开销帧能够指示待传输码块流的开始位置,而且PHY芯片上包括用于指示PHY模块和时隙之间对应关系的配置信息,这样,灵活接口即可按照配置信息的指示在码块流的时隙中准确的填充对应的数据码块,并将开销帧插入到码块流中发送给MAC芯片,MAC芯片中的灵活接口同样能够按照码块流中的开销帧确定码块流的起始位置,并基于MAC芯片中保存的用于指示MAC模块和时隙之间对应关系的配置信息确定各个时隙中的数据码块对应的MAC模块,从而将码块流中的各数据码块分配到MAC芯片中的多个MAC模块,实现PHY芯片和MAC芯片之间数据码流有序传输的效果,满足了对PHY芯片和MAC芯片之间更好的通信需求。It can be seen that, through the method 400 provided in this embodiment of the present application, the flexible interface in the PHY chip generates an overhead frame, where the overhead frame can indicate the starting position of the stream of code blocks to be transmitted, and the PHY chip includes an overhead frame for indicating the difference between the PHY module and the time slot. In this way, the flexible interface can accurately fill the corresponding data code block in the time slot of the code block stream according to the instructions of the configuration information, and insert the overhead frame into the code block stream and send it to the MAC chip. The flexible interface in the MAC chip can also determine the starting position of the code block stream according to the overhead frame in the code block stream, and determine each time based on the configuration information stored in the MAC chip to indicate the correspondence between the MAC module and the time slot. The MAC module corresponding to the data code block in the slot, so that each data code block in the code block stream is allocated to multiple MAC modules in the MAC chip, and the effect of orderly transmission of the data code stream between the PHY chip and the MAC chip is realized. It meets the demand for better communication between the PHY chip and the MAC chip.
需要说明的是,上述方法100和方法200中,每个时隙仅与一个MAC模块对应。但是,各MAC模块支持的速率可以不同,较小速率的MAC模块和较大速率的MAC模块各自占用的时隙的带宽相同,这样,支持较小速率的MAC模块就会浪费时隙上的带宽资源。例如,每个时隙的等效带宽为2.5Gb/s,但是,某个MAC模块支持的速率为100Mb/s,那么,该MAC模块占用各个时隙周期中的该时隙,对该时隙的带宽资源造成浪费。基于此,本申请实施例还提供了一种支持一个时隙被至少两个MAC模块复用的机制,即,多个MAC模块对应的数据码块分别占用不同的时隙周期中的同一个时隙,以提高资源利用率。It should be noted that, in the above method 100 and method 200, each time slot corresponds to only one MAC module. However, the rates supported by each MAC module may be different, and the MAC module with a smaller rate and the MAC module with a larger rate occupy the same time slot bandwidth. In this way, the MAC module supporting the smaller rate will waste the bandwidth on the time slot. resource. For example, the equivalent bandwidth of each time slot is 2.5Gb/s, but the rate supported by a certain MAC module is 100Mb/s, then the MAC module occupies the time slot in each time slot cycle, and the time slot waste of bandwidth resources. Based on this, the embodiments of the present application also provide a mechanism to support multiplexing of a time slot by at least two MAC modules, that is, data code blocks corresponding to multiple MAC modules occupy the same time slot in different time slot periods respectively. gaps to improve resource utilization.
以方法100中的第一开销帧为例,该第一开销帧还可以包括复用指示信息,用于指示某个时隙被多个MAC模块复用。Taking the first overhead frame in method 100 as an example, the first overhead frame may further include multiplexing indication information, which is used to indicate that a certain time slot is multiplexed by multiple MAC modules.
作为一个示例,该复用指示信息可以通过该被复用的时隙对应的时隙字段承载,该被复用的时隙对应的时隙字段的取值为特定值(例如时隙字段的各个比特位的取值均为1,又例如时隙字段的各个比特位的取值均为0),用于标识该时隙字段对应的时隙被多个MAC模块复用。As an example, the multiplexing indication information may be carried by the time slot field corresponding to the multiplexed time slot, and the value of the time slot field corresponding to the multiplexed time slot is a specific value (for example, each of the time slot fields The value of each bit is 1, for example, the value of each bit in the time slot field is 0), which is used to identify that the time slot corresponding to the time slot field is multiplexed by multiple MAC modules.
一种情况下,第一开销帧可以通过扩展开销块,利用扩展开销块指示该被复用的时隙对应的至少两个MAC模块的标识(英文:Client ID)和MAC模块支持的速率(英文:Client Rate)。这样,仅需要在第一码块流的第一个时隙周期之前插入该第一开销帧,后续无需每个时隙周期之前都插入第一开销帧,也可以按照该第一开销帧有序的完成各MAC模块对应的数据码块的准确插入生成第一码块流。In one case, the first overhead frame can use the extended overhead block to indicate at least two MAC module identifiers (English: Client ID) and the rate supported by the MAC module (English: Client ID) corresponding to the multiplexed time slot. : Client Rate). In this way, the first overhead frame only needs to be inserted before the first slot cycle of the first code block stream, and the first overhead frame does not need to be inserted before each slot cycle in the future, and the first overhead frame can also be ordered according to the first overhead frame. The accurate insertion of the data code blocks corresponding to each MAC module is completed to generate the first code block stream.
例如,假设时隙1被MAC模块1和MAC模块2复用,那么,第一开销帧可以在图2b所示的开销帧1的基础上增加扩展开销块3,如图13a所示。其中,开销块1中的时隙1字段的取值为8’hFF(即8个比特位均为1),扩展开销块3中可以包括:SH字段=01、被复用时隙0的标识、时隙0子字段1和时隙0子字段2,其中,时隙0子字段1用于承载MAC模块1的标识(英文:Client ID 1)和MAC模块1支持的速率(英文:Client Rate1),时隙0子字段2用于承载MAC模块2的标识(英文:Client ID 2)和MAC模块2支 持的速率(英文:Client Rate 2)。此外,该扩展开销块3还可以包括Reserved和CRC等字段。For example, assuming that the time slot 1 is multiplexed by the MAC module 1 and the MAC module 2, the first overhead frame may add an extended overhead block 3 based on the overhead frame 1 shown in FIG. 2b, as shown in FIG. 13a. The value of the time slot 1 field in the overhead block 1 is 8'hFF (that is, all 8 bits are 1), and the extended overhead block 3 may include: SH field=01, the identifier of the multiplexed time slot 0 , time slot 0 subfield 1 and time slot 0 subfield 2, wherein, time slot 0 subfield 1 is used to carry the identification of MAC module 1 (English: Client ID 1) and the rate supported by MAC module 1 (English: Client Rate1 ), the subfield 2 of the slot 0 is used to carry the identification of the MAC module 2 (English: Client ID 2) and the rate supported by the MAC module 2 (English: Client Rate 2). In addition, the extended overhead block 3 may also include fields such as Reserved and CRC.
又例如,假设时隙1被MAC模块1和MAC模块2复用,时隙3被MAC模块4、MAC模块5和MAC模块6复用。一种方式下,第一开销帧可以在如图13a所示的开销帧1的基础上增加扩展开销块4,如图13b所示。其中,开销块1中的时隙1字段和时隙3字段的取值均为8’hFF,扩展开销块3中如图13a所示,扩展开销块4中可以包括:SH字段=01,被复用时隙3的标识、时隙3子字段、时隙3子字段2和时隙3子字段3,其中,时隙3子字段1用于承载MAC模块4的标识(英文:Client ID 4)和MAC模块4支持的速率(英文:Client Rate 4),时隙3子字段2用于承载MAC模块5的标识(英文:Client ID5)和MAC模块5支持的速率(英文:Client Rate 5),时隙3子字段3用于承载MAC模块6的标识(英文:Client ID 6)和MAC模块6支持的速率(英文:Client Rate 6)。此外,该扩展开销块4还可以包括Reserved和CRC等字段。另一种方式下,第一开销帧可以在如图13a所示的开销帧1的扩展开销块3中,增加时隙3被复用的相关信息,如图13c所示。其中,开销块1中的时隙1字段和时隙3字段的取值均为8’hFF,扩展开销块3中可以包括:SH字段=01、被复用时隙0的标识、时隙0子字段1、时隙0子字段2、被复用时隙3的标识、时隙3子字段1、时隙3子字段2和时隙3子字段3。此外,该扩展开销块3还可以包括Reserved和CRC等字段。For another example, it is assumed that time slot 1 is multiplexed by MAC module 1 and MAC module 2 , and time slot 3 is multiplexed by MAC module 4 , MAC module 5 and MAC module 6 . In one way, the first overhead frame may add an extended overhead block 4 on the basis of the overhead frame 1 shown in FIG. 13a, as shown in FIG. 13b. Among them, the value of the time slot 1 field and the time slot 3 field in the overhead block 1 are both 8'hFF. As shown in Figure 13a in the extended overhead block 3, the extended overhead block 4 may include: SH field=01, which is The identifier of the multiplexed time slot 3, the time slot 3 subfield, the time slot 3 subfield 2 and the time slot 3 subfield 3, wherein, the time slot 3 subfield 1 is used to carry the identification of the MAC module 4 (English: Client ID 4 ) and the rate supported by the MAC module 4 (English: Client Rate 4), the time slot 3 subfield 2 is used to carry the identification of the MAC module 5 (English: Client ID5) and the rate supported by the MAC module 5 (English: Client Rate 5) , the subfield 3 of the time slot 3 is used to carry the identification of the MAC module 6 (English: Client ID 6) and the rate supported by the MAC module 6 (English: Client Rate 6). In addition, the extended overhead block 4 may also include fields such as Reserved and CRC. In another way, the first overhead frame may add information about multiplexing of timeslot 3 in the extended overhead block 3 of the overhead frame 1 shown in FIG. 13a, as shown in FIG. 13c. The value of the time slot 1 field and the time slot 3 field in the overhead block 1 are both 8'hFF, and the extended overhead block 3 may include: SH field=01, the identifier of the multiplexed time slot 0, and the time slot 0 Subfield 1, subfield 2 of slot 0, identification of multiplexed slot 3, subfield 1 of slot 3, subfield 2 of slot 3, and subfield 3 of slot 3. In addition, the extended overhead block 3 may also include fields such as Reserved and CRC.
另一种情况下,第一开销帧可以通过Reserved字段指示该被复用的时隙对应的至少两个MAC模块的标识(英文:Client ID)和MAC模块支持的速率(英文:Client Rate)。这样,无需增加第一开销块的长度,即可完成时隙复用场景下对数据码块插入时隙的指导。In another case, the first overhead frame may indicate, through the Reserved field, the identifiers (English: Client ID) of at least two MAC modules corresponding to the multiplexed time slot and the rate (English: Client Rate) supported by the MAC modules. In this way, without increasing the length of the first overhead block, the guidance for inserting the data code block into the time slot in the time slot multiplexing scenario can be completed.
例如,仍然以时隙1被MAC模块1和MAC模块2复用为例,第一开销帧可以在图2b所示的开销帧1的基础上,在时隙8字段之后的Reserved字段中,携带被复用时隙0的标识、时隙0子字段1和时隙0子字段2,具体参见图13d所示。For example, still taking the multiplexing of time slot 1 by MAC module 1 and MAC module 2 as an example, the first overhead frame can be based on the overhead frame 1 shown in FIG. 2b, in the Reserved field after the time slot 8 field, carrying The identifier of the multiplexed time slot 0, the time slot 0 subfield 1 and the time slot 0 subfield 2 are shown in FIG. 13d for details.
需要说明的是,该情况下,如果被复用时隙较少且复用时隙的MAC模块数量较少,被复用时隙以及该时隙对应的MAC模块的相关信息均能够被承载在Reserved字段中,则,无需在每个时隙周期之前插入包括该时隙周期下被复用时隙对应的MAC模块的相关信息的第一开销帧。如果被复用时隙以及该时隙对应的MAC模块的相关信息无法都被承载在Reserved字段中,则,可以在每个时隙周期之前插入第一开销帧,该第一开销帧的Reserved字段中包括该时隙周期下被复用时隙对应的MAC模块的相关信息。It should be noted that in this case, if there are fewer multiplexed time slots and the number of MAC modules multiplexing the time slot is small, the multiplexed time slot and the relevant information of the MAC module corresponding to the time slot can be carried in the In the Reserved field, there is no need to insert the first overhead frame including the relevant information of the MAC module corresponding to the multiplexed timeslot under the timeslot period before each timeslot period. If the multiplexed time slot and the relevant information of the MAC module corresponding to the time slot cannot all be carried in the Reserved field, a first overhead frame can be inserted before each time slot period, and the Reserved field of the first overhead frame can be inserted It includes the relevant information of the MAC module corresponding to the multiplexed timeslot under the timeslot period.
作为另一个示例,该复用指示信息也可以通过Reserved字段中一个时隙周期所包括的时隙个数个比特位(也称为复用使能标识字段)承载,例如,该复用使能标识字段中各个比特位对应一个时隙,当该比特位的取值为1,表示该比特位对应的时隙被复用,当该比特位的取值为0,表示该比特位对应的时隙未被复用。该示例中,一旦复用使能标识字段中指示有被复用的时隙,就需要在每个时隙周期之前插入一个第一开销帧,该第一开销帧中被复用的时隙对应的时隙字段中,携带当前时隙周期下占用该时隙的MAC模块的标识和速率。As another example, the multiplexing indication information may also be borne by several bits of the time slots included in a time slot period in the Reserved field (also referred to as the multiplexing enable identification field). For example, the multiplexing enable Each bit in the identification field corresponds to a time slot. When the value of this bit is 1, it means that the time slot corresponding to this bit is multiplexed. When the value of this bit is 0, it means that the corresponding time slot of this bit is Slots are not multiplexed. In this example, once a multiplexed time slot is indicated in the multiplexing enable flag field, a first overhead frame needs to be inserted before each time slot period, and the multiplexed time slot in the first overhead frame corresponds to In the slot field of , it carries the identifier and rate of the MAC module occupying the slot in the current slot cycle.
例如,仍然以时隙1被MAC模块1和MAC模块2复用为例,那么,第一开销帧可以在图2b所示的开销帧1的基础上,在时隙8字段之后增加8比特的复用使能标识字段,如图14a所示,在第一个时隙周期之前,生成并插入的第一开销帧中,复用使能标识字段的第0个比特位为1,该时隙1字段中承载MAC模块1的标识(英文:Client ID 1)和MAC模块1支持的速率(英文:Client Rate 1);如图14b,在第二个时隙周期之前,生成并插入的第一开销帧中,复用使能标识字段的第0个比特位为1,时隙1字段用于承载MAC模块2的标识(英文:Client ID 2)和MAC模块2支持的速率(英文:Client Rate 2);在第三个时隙周期之前,生成并插入的第一开销帧如图14a所示;在第四个时隙周期之前,生成并插入的第一开销帧如图14b所示;如此往复,实现对被复用时隙和MAC模块之间的对应关系的指示。For example, still taking the multiplexing of time slot 1 by MAC module 1 and MAC module 2 as an example, then, the first overhead frame can be based on the overhead frame 1 shown in FIG. The multiplexing enable flag field, as shown in Figure 14a, in the first overhead frame generated and inserted before the first time slot period, the 0th bit of the multiplexing enable flag field is 1, and the time slot The 1 field carries the identification of MAC module 1 (English: Client ID 1) and the rate supported by MAC module 1 (English: Client Rate 1); as shown in Figure 14b, before the second slot cycle, the first generated and inserted In the overhead frame, the 0th bit of the multiplexing enable identification field is 1, and the time slot 1 field is used to carry the identification of the MAC module 2 (English: Client ID 2) and the rate supported by the MAC module 2 (English: Client Rate 2); Before the third time slot cycle, the first overhead frame generated and inserted is shown in Figure 14a; before the fourth time slot cycle, the first overhead frame generated and inserted is shown in Figure 14b; like this Reciprocating, realizing the indication of the correspondence between the multiplexed time slot and the MAC module.
需要说明的是,该示例中可以通过增加扩展开销块的方式,在第一开销帧中携带被复用时隙和MAC模块之间的对应关系,这样,无需在每个时隙周期之前插入对应的第一开销帧,从而减少了第一开销帧占用第一码块流的资源,也能够减少插入第一开销帧对MAC芯片10和PHY芯片20之间传输数据产生的影响。It should be noted that in this example, the corresponding relationship between the multiplexed time slot and the MAC module can be carried in the first overhead frame by adding an extended overhead block, so that there is no need to insert the corresponding relationship before each time slot period. Therefore, the resources of the first code block stream occupied by the first overhead frame are reduced, and the impact of inserting the first overhead frame on data transmission between the MAC chip 10 and the PHY chip 20 can also be reduced.
为了增大灵活接口支持的总端口数,充分利用灵活接口支持的总带宽,以满足更高的通信需求,本申请实施例还提供了一种扩展灵活接口,该扩展灵活接口用于级联PHY芯片。如图15所示,以PHY芯片20和PHY芯片30通过扩展灵活接口级联为例,介绍PHY芯片级联的场景。参见图15所示,该场景中,PHY芯片20中包括:灵活接口200、PHY模块1、PHY模块2、……、PHY模块M和扩展灵活接口210,PHY芯片30中可以包括:扩展灵活接口310、PHY模块(M+1)、PHY模块(M+2)、……、PHY模块(M+K),其中,K为大于1的整数。其中,扩展灵活接口210和扩展灵活接口310之间也可以通过一对物理通道400连接。In order to increase the total number of ports supported by the flexible interface and make full use of the total bandwidth supported by the flexible interface to meet higher communication requirements, the embodiment of the present application also provides an extended flexible interface, which is used for cascading PHYs chip. As shown in FIG. 15 , taking the PHY chip 20 and the PHY chip 30 for cascading through an extended flexible interface as an example, the scenario of PHY chip cascading is introduced. Referring to FIG. 15, in this scenario, the PHY chip 20 includes: a flexible interface 200, a PHY module 1, a PHY module 2, . . . , a PHY module M, and an extended flexible interface 210, and the PHY chip 30 may include: an extended flexible interface 310. PHY module (M+1), PHY module (M+2), . . . , PHY module (M+K), wherein K is an integer greater than 1. The extended flexible interface 210 and the extended flexible interface 310 may also be connected through a pair of physical channels 400 .
假设PHY芯片20的带宽为10Gb/s,PHY芯片30的带宽为20Gb/s,那么,PHY芯片20和MAC芯片10之间的灵活接口支持的总带宽为(10Gb/s+20Gb/s)=30Gb/s。该场景下,MAC芯片10中MAC模块的个数大于或等于两个PHY芯片所包括的PHY模块的总数(M+K)。Assuming that the bandwidth of the PHY chip 20 is 10Gb/s and the bandwidth of the PHY chip 30 is 20Gb/s, then the total bandwidth supported by the flexible interface between the PHY chip 20 and the MAC chip 10 is (10Gb/s+20Gb/s)= 30Gb/s. In this scenario, the number of MAC modules in the MAC chip 10 is greater than or equal to the total number (M+K) of PHY modules included in the two PHY chips.
在PHY芯片级联场景下,对于本申请实施例提供的第一种可能的实现方式,灵活接口100执行的相关操作不变。与方法100对应,灵活接口200对接收到的第一码块流中的数据码块,可以按照第一开销帧分配到PHY模块1、PHY模块2、……、PHY模块M,以及通过扩展灵活接口210和扩展灵活接口310分配到PHY模块(M+1)、PHY模块(M+2)、……、PHY模块(M+K)。与方法200对应,灵活接口200可以通过扩展灵活接口210和扩展灵活接口310分配到PHY模块(M+1)、PHY模块(M+2)、……、PHY模块(M+K)分别接收数据码流,以及,从PHY模块1、PHY模块2、……、PHY模块M接收数据码流,从而基于所有接收的数据码流生成第二开销帧,基于第二开销块生成第二码块流,并向MAC芯片10发送该第二码块流。In the scenario of cascading PHY chips, for the first possible implementation manner provided by the embodiment of the present application, the related operations performed by the flexible interface 100 remain unchanged. Corresponding to the method 100, the flexible interface 200 can allocate the received data code blocks in the first code block stream to the PHY module 1, PHY module 2, . . . , and PHY module M according to the first overhead frame. The interface 210 and the extended flexible interface 310 are assigned to PHY module (M+1), PHY module (M+2), . . . , PHY module (M+K). Corresponding to the method 200, the flexible interface 200 can be allocated to the PHY module (M+1), the PHY module (M+2), . code streams, and, receiving data code streams from PHY module 1, PHY module 2, ..., PHY module M, thereby generating a second overhead frame based on all received data code streams, and generating a second code block stream based on the second overhead blocks , and send the second code block stream to the MAC chip 10 .
对于本申请实施例提供的第二种可能的实现方式,MAC芯片10和PHY芯片20上的 配置信息可以不变,在PHY芯片20基于配置信息对发送和接收到的数据进行处理即可,扩展灵活接口210和扩展灵活接口310仅仅视作传输的介质,不对数据进行处理。或者,也可以将PHY芯片20上的配置信息中,与PHY芯片30中的PHY模块对应的部分标识为扩展灵活接口210,而在PHY芯片30上保存另外的配置信息,指示该PHY芯片30中的各PHY模块对应的时隙,这样,也能够实现数据的有效传输。For the second possible implementation manner provided by the embodiment of the present application, the configuration information on the MAC chip 10 and the PHY chip 20 may remain unchanged, and the PHY chip 20 can process the sent and received data based on the configuration information, and the extended The flexible interface 210 and the extended flexible interface 310 are only regarded as transmission media, and do not process data. Alternatively, in the configuration information on the PHY chip 20 , the part corresponding to the PHY module in the PHY chip 30 may be identified as the extended flexible interface 210 , and other configuration information may be stored on the PHY chip 30 , indicating that the PHY chip 30 The corresponding time slot of each PHY module, in this way, the effective transmission of data can also be realized.
图16为本申请实施例提供的一种数据处理装置1600的结构示意图,所述数据处理装置1600位于灵活接口处或与灵活接口通信,该装置1600包括第一生成单元1601、编码单元1602和第二生成单元1603。该装置1600中,接口连接介质访问控制MAC芯片,所述MAC芯片包括第一MAC模块和第二MAC模块。其中,第一生成单元1601,用于根据来自所述第一MAC模块的第一数据码流和来自所述第二MAC模块的第二数据码流,生成第一开销帧,所述第一开销帧用于指示所述第一数据码流和所述第二数据码流对应的时隙;编码单元1602,用于对所述第一数据码流和所述第二数据码流分别进行编码,得到第一数据码块和第二数据码块;第二生成单元1603,用于基于所述第一开销帧,将所述第一数据码块插入第一时隙,将所述第二数据码块插入第二时隙,生成第一码块流,所述第一码块流包括第一开销帧、所述第一时隙中插入的所述第一数据码块,所述第二时隙中插入的所述第二数据码块。FIG. 16 is a schematic structural diagram of a data processing apparatus 1600 according to an embodiment of the application. The data processing apparatus 1600 is located at or communicates with a flexible interface. The apparatus 1600 includes a first generating unit 1601, an encoding unit 1602, and a first generating unit 1601. Second generation unit 1603. In the device 1600, the interface is connected to a medium access control MAC chip, and the MAC chip includes a first MAC module and a second MAC module. The first generating unit 1601 is configured to generate a first overhead frame according to the first data code stream from the first MAC module and the second data code stream from the second MAC module, the first overhead frame The frame is used to indicate the time slot corresponding to the first data code stream and the second data code stream; the encoding unit 1602 is used to encode the first data code stream and the second data code stream respectively, obtaining the first data code block and the second data code block; the second generating unit 1603 is configured to insert the first data code block into the first time slot based on the first overhead frame, and generate the second data code block block into a second time slot to generate a first code block stream, the first code block stream including a first overhead frame, the first data code block inserted in the first time slot, the second time slot the second data code block inserted in .
在一些实现方式中,该装置1600还可以包括串行化单元和发送单元。其中,串行化单元,用于采用串行解串器SerDes对所述第一码块流进行串行化处理,获得第一处理结果;发送单元,用于将所述第一处理结果发送给第一物理层PHY芯片。In some implementations, the apparatus 1600 may further include a serializing unit and a transmitting unit. The serialization unit is used for serializing the first code block stream by using a serializer SerDes to obtain a first processing result; the sending unit is used for sending the first processing result to The first physical layer PHY chip.
作为一个示例,该装置1600还可以包括:接收单元、解串行单元和分配单元。其中,接收单元,用于从所述第一PHY芯片接收第二处理结果;解串行单元,用于采用所述SerDes对所述第二处理结果进行解串行处理,获得的第二码块流;分配单元,用于根据所述第二码块流中的第二开销帧,将所述第二码块流中的数据码块分配到所述MAC芯片对应的多个MAC模块。As an example, the apparatus 1600 may further include: a receiving unit, a deserializing unit, and an allocating unit. The receiving unit is configured to receive the second processing result from the first PHY chip; the deserializing unit is configured to use the SerDes to deserialize the second processing result to obtain a second code block. a flow; an allocation unit configured to allocate data code blocks in the second code block flow to multiple MAC modules corresponding to the MAC chip according to the second overhead frame in the second code block flow.
在一些实现方式中,该装置1600还可以包括扰码单元、串行化单元和发送单元。其中,扰码单元,用于采用扰码处理单元对所述第一码块流进行扰码,得到更新后的第一码块流;串行化单元,用于采用串行解串器SerDes对所述更新后的第一码块流进行串行化处理,获得第三处理结果;发送单元,用于将所述第三处理结果发送给第一物理层PHY芯片。In some implementations, the apparatus 1600 may further include a scrambling unit, a serializing unit, and a transmitting unit. Wherein, the scrambling unit is used for scrambling the first code block stream by using the scrambling code processing unit to obtain the updated first code block stream; the serialization unit is used for using the serializer SerDes to scramble the code block stream. The updated first code block stream is serialized to obtain a third processing result; the sending unit is configured to send the third processing result to the first physical layer PHY chip.
在一些实现方式中,MAC芯片还包括多个端口,多个端口中的每个端口通过对应的适配子层RS和对应的MAC模块进行通信,该装置还可以包括处理单元。该处理单元,用于采用RS将对应的MAC模块发送的MAC帧流处理为数据码流;或者,该处理单元,用于采用RS将所述接口接收的数据码流处理为MAC帧流发送给对应的MAC模块。In some implementation manners, the MAC chip further includes a plurality of ports, and each port in the plurality of ports communicates with a corresponding MAC module through a corresponding adaptation sublayer RS, and the apparatus may further include a processing unit. The processing unit is configured to use the RS to process the MAC frame stream sent by the corresponding MAC module into a data stream; or, the processing unit is configured to use the RS to process the data stream received by the interface into a MAC frame stream and send it to Corresponding MAC module.
可以理解的是,图16所示的装置1600的各种具体实施例方式,可以参见图7所示的方法100中各实施例的介绍,本实施例不再赘述。It can be understood that, for various specific embodiments of the apparatus 1600 shown in FIG. 16 , reference may be made to the introduction of each embodiment in the method 100 shown in FIG. 7 , and details are not repeated in this embodiment.
图17为本申请实施例提供的一种数据处理装置1700的结构示意图,所述数据处理装 置1700位于灵活接口处或与灵活接口通信,该装置1700包括:第一生成单元1701、编码单元1702和第二生成单元1703。该装置1700中,接口连接第一物理层PHY模块和第二PHY模块。其中,第一生成单元1701,用于根据来自所述第一PHY模块的第一数据码流和来自所述第二PHY模块的第二数据码流,生成第一开销帧,所述第一开销帧用于指示所述第一数据码流和所述第二数据码流对应的时隙;编码单元1702,用于对所述第一数据码流和所述第二数据码流分别进行编码,得到第一数据码块和第二数据码块;第二生成单元1703,用于基于所述第一开销帧,将所述第一数据码块插入第一时隙,将所述第二数据码块插入第二时隙,生成第一码块流,所述第一码块流包括第一开销帧、所述第一时隙中插入的所述第一数据码块,所述第二时隙中插入的所述第二数据码块。FIG. 17 is a schematic structural diagram of a data processing apparatus 1700 provided by an embodiment of the present application. The data processing apparatus 1700 is located at or communicates with a flexible interface. The apparatus 1700 includes: a first generating unit 1701, an encoding unit 1702 and The second generation unit 1703 . In the apparatus 1700, the interface connects the first physical layer PHY module and the second PHY module. The first generating unit 1701 is configured to generate a first overhead frame according to the first data code stream from the first PHY module and the second data code stream from the second PHY module, the first overhead frame The frame is used to indicate the time slot corresponding to the first data code stream and the second data code stream; the encoding unit 1702 is used to encode the first data code stream and the second data code stream respectively, obtaining the first data code block and the second data code block; the second generating unit 1703 is configured to insert the first data code block into the first time slot based on the first overhead frame, and generate the second data code block block into a second time slot to generate a first code block stream, the first code block stream including a first overhead frame, the first data code block inserted in the first time slot, the second time slot the second data code block inserted in .
在一些实现方式中,该装置1700还可以包括串行化单元和发送单元。其中,串行化单元,用于采用串行解串器SerDes对所述第一码块流进行串行化处理,获得第一处理结果;发送单元,用于将所述第一处理结果发送给介质访问控制MAC芯片。In some implementations, the apparatus 1700 may further include a serializing unit and a transmitting unit. The serialization unit is used for serializing the first code block stream by using a serializer SerDes to obtain a first processing result; the sending unit is used for sending the first processing result to Media Access Control MAC chip.
作为一个示例,该装置1700还可以包括:接收单元、解串行单元和分配单元。其中,接收单元,用于从所述MAC芯片接收第二处理结果;解串行单元,用于采用所述SerDes对所述第二处理结果进行解串行处理,获得的第二码块流,所述第二码块流包括第二开销帧、第三数据码块和第四数据码块;分配单元,用于根据所述第二开销帧,将所述第三数据码块和所述第四数据码块分别分配到所述第一PHY模块和第二PHY模块。As an example, the apparatus 1700 may further include: a receiving unit, a deserializing unit, and an allocating unit. The receiving unit is configured to receive the second processing result from the MAC chip; the deserializing unit is configured to perform deserialization processing on the second processing result by using the SerDes, and the obtained second code block stream is The second code block stream includes a second overhead frame, a third data code block, and a fourth data code block; an allocation unit is configured to divide the third data code block and the first data code block according to the second overhead frame. Four data code blocks are allocated to the first PHY module and the second PHY module, respectively.
在一些实现方式中,该装置1700还可以包括扰码单元、串行化单元和发送单元。其中,扰码单元,用于采用扰码处理单元对所述第一码块流进行扰码,得到更新后的第一码块流;串行化单元,用于采用串行解串器SerDes对所述更新后的第一码块流进行串行化处理,获得第三处理结果;发送单元,用于将所述第三处理结果发送给介质访问控制MAC芯片。In some implementations, the apparatus 1700 may further include a scrambling unit, a serializing unit, and a transmitting unit. Wherein, the scrambling unit is used for scrambling the first code block stream by using the scrambling code processing unit to obtain the updated first code block stream; the serialization unit is used for using the serializer SerDes to scramble the code block stream. The updated first code block stream is serialized to obtain a third processing result; a sending unit is configured to send the third processing result to the medium access control MAC chip.
在一些实现方式中,第一PHY模块和第二PHY模块可以属于第一PHY芯片;或者,第一PHY模块属于第一PHY芯片,第二PHY模块属于第二PHY芯片,第一PHY芯片和第二PHY芯片通过扩展的接口连接。In some implementations, the first PHY module and the second PHY module may belong to the first PHY chip; or, the first PHY module belongs to the first PHY chip, the second PHY module belongs to the second PHY chip, and the first PHY chip and the first PHY chip belong to the first PHY chip. Two PHY chips are connected through an extended interface.
可以理解的是,图17所示的装置1700的各种具体实施例方式,可以参见图10所示的方法200中各实施例的介绍,本实施例不再赘述。It can be understood that, for various specific embodiments of the apparatus 1700 shown in FIG. 17 , reference may be made to the introduction of each embodiment in the method 200 shown in FIG. 10 , and details are not repeated in this embodiment.
图18为本申请实施例提供的一种数据处理装置1800的结构示意图,所述数据处理装置1800位于灵活接口处或与灵活接口通信,该装置1800包括:第一生成单元1801、编码单元1802和第二生成单元1803。该装置1800中,接口连接介质访问控制MAC芯片,所述MAC芯片包括第一MAC模块和第二MAC模块。其中,第一生成单元1801,用于生成第一开销帧,所述第一开销帧用于指示码块流的起始位置;编码单元1802,用于对来自所述第一MAC模块的第一数据码流和来自所述第二MAC模块的第二数据码流分别进行编码,得到第一数据码块和第二数据码块;第二生成单元1803,用于基于所述第一开销帧和配置信息,将所述第一数据码块插入第一时隙,将所述第二数据码块插入第二时隙,生成第一码块流,所述第一码块流包括第一开销帧、所述第一时隙中插入的所述第一数据码块和所述第二时隙中插入的所述第二数据码块,所述配置信息用于指示所述MAC芯片中的 MAC模块和时隙的对应关系。FIG. 18 is a schematic structural diagram of a data processing apparatus 1800 provided by an embodiment of the present application. The data processing apparatus 1800 is located at or communicates with a flexible interface. The apparatus 1800 includes: a first generating unit 1801, an encoding unit 1802 and The second generation unit 1803 . In the device 1800, the interface is connected to a medium access control MAC chip, and the MAC chip includes a first MAC module and a second MAC module. Wherein, the first generating unit 1801 is used to generate a first overhead frame, the first overhead frame is used to indicate the starting position of the code block stream; the encoding unit 1802 is used to generate the first overhead frame from the first MAC module. The data code stream and the second data code stream from the second MAC module are encoded respectively to obtain a first data code block and a second data code block; the second generation unit 1803 is configured to be based on the first overhead frame and the second data code block. configuration information, insert the first data code block into the first time slot, insert the second data code block into the second time slot, and generate a first code block stream, where the first code block stream includes a first overhead frame , the first data code block inserted in the first time slot and the second data code block inserted in the second time slot, the configuration information is used to indicate the MAC module in the MAC chip corresponding to the time slot.
可以理解的是,图18所示的装置1800的各种具体实施例方式,可以参见图11所示的方法300中S301~S303对应各种实现方式的介绍,本实施例不再赘述。It can be understood that, for various specific implementation manners of the apparatus 1800 shown in FIG. 18 , reference may be made to the introduction of various implementation manners corresponding to S301 to S303 in the method 300 shown in FIG. 11 , and details are not repeated in this embodiment.
图19为本申请实施例提供的一种数据处理装置1900的结构示意图,所述数据处理装置1900位于灵活接口处或与灵活接口通信,该装置1900包括:获取单元1901、确定单元1902和分配单元1903。该装置1900中,接口连接介质访问控制MAC芯片,所述MAC芯片包括第一MAC模块和第二MAC模块。其中,获取单元1901,用于从物理层PHY芯片获得第一码块流,所述第一码块流包括第一开销帧、第一时隙中插入的第一数据码块和第二时隙中插入的第二数据码块;确定单元1902,用于根据所述第一开销帧,确定所述第一码块流中的数据码块的起始位置;分配单元1903,用于根据配置信息,将所述第一码块流中的所述第一数据码块和所述第二数据码块分别分配到所述第一MAC模块和所述第二MAC模块,所述配置信息用于指示所述MAC芯片中的MAC模块和时隙的对应关系。FIG. 19 is a schematic structural diagram of a data processing apparatus 1900 provided by an embodiment of the application. The data processing apparatus 1900 is located at or communicates with a flexible interface. The apparatus 1900 includes: an acquisition unit 1901, a determination unit 1902, and an allocation unit 1903. In the device 1900, an interface is connected to a medium access control MAC chip, and the MAC chip includes a first MAC module and a second MAC module. The obtaining unit 1901 is configured to obtain a first code block stream from a physical layer PHY chip, where the first code block stream includes a first overhead frame, a first data code block inserted in a first time slot, and a second time slot The determining unit 1902 is used to determine the starting position of the data code block in the first code block stream according to the first overhead frame; the allocation unit 1903 is used to determine the starting position of the data code block according to the configuration information , assigning the first data code block and the second data code block in the first code block stream to the first MAC module and the second MAC module respectively, and the configuration information is used to indicate Correspondence between MAC modules in the MAC chip and time slots.
可以理解的是,图19所示的装置1900的各种具体实施例方式,可以参见图12所示的方法400中S407对应各种实现方式的介绍,本实施例不再赘述。It can be understood that, for various specific implementation manners of the apparatus 1900 shown in FIG. 19 , reference may be made to the introduction of various implementation manners corresponding to S407 in the method 400 shown in FIG. 12 , and details are not repeated in this embodiment.
图20为本申请实施例提供的一种数据处理装置2000的结构示意图,所述数据处理装置2000位于灵活接口处或与灵活接口通信,所述装置2000包括:第一生成单元2001、编码单元2002和第二生成单元2003。该装置2000中,接口连接物理层PHY芯片,所述PHY芯片包括第一PHY模块和第二PHY模块。其中,第一生成单元2001,用于生成第一开销帧,所述第一开销帧用于指示码块流的起始位置;编码单元2002,用于对来自所述第一PHY模块的第一数据码流和来自所述第二PHY模块的第二数据码流分别进行编码,得到第一数据码块和第二数据码块;第二生成单元2003,用于基于所述第一开销帧和配置信息,将所述第一数据码块插入第一时隙,将所述第二数据码块插入第二时隙,生成第一码块流,所述第一码块流包括第一开销帧、所述第一时隙中插入的所述第一数据码块和所述第二时隙中插入的所述第二数据码块,所述配置信息用于指示所述PHY芯片中的PHY模块和时隙的对应关系。FIG. 20 is a schematic structural diagram of a data processing apparatus 2000 according to an embodiment of the present application. The data processing apparatus 2000 is located at or communicates with a flexible interface. The apparatus 2000 includes: a first generating unit 2001 and an encoding unit 2002 and the second generation unit 2003. In the apparatus 2000, the interface is connected to a physical layer PHY chip, and the PHY chip includes a first PHY module and a second PHY module. The first generating unit 2001 is configured to generate a first overhead frame, where the first overhead frame is used to indicate the starting position of the code block stream; the encoding unit 2002 is configured to generate a first overhead frame from the first PHY module. The data code stream and the second data code stream from the second PHY module are encoded respectively to obtain a first data code block and a second data code block; the second generation unit 2003 is configured to be based on the first overhead frame and configuration information, insert the first data code block into the first time slot, insert the second data code block into the second time slot, and generate a first code block stream, where the first code block stream includes a first overhead frame , the first data code block inserted in the first time slot and the second data code block inserted in the second time slot, the configuration information is used to indicate the PHY module in the PHY chip corresponding to the time slot.
可以理解的是,图20所示的装置2000的各种具体实施例方式,可以参见图12所示的方法400中S401~S403对应各种实现方式的介绍,本实施例不再赘述。It can be understood that, for various specific implementation manners of the apparatus 2000 shown in FIG. 20 , reference may be made to the introduction of various implementation manners corresponding to S401 to S403 in the method 400 shown in FIG. 12 , and details are not repeated in this embodiment.
图21为本申请实施例提供的一种数据处理装置2100的结构示意图,所述数据处理装置2100位于灵活接口处或与灵活接口通信,所述装置2100包括:获取单元2101、确定单元2102和分配单元2103。该装置2100中,接口连接物理层PHY芯片,所述PHY芯片包括第一PHY模块和第二PHY模块。其中,获取单元2101,用于从介质访问控制MAC芯片获得第一码块流,所述第一码块流包括第一开销帧、第一时隙中插入的第一数据码块和第二时隙中插入的第二数据码块;确定单元2102,用于根据所述第一开销帧,确定所述第一码块流中的数据码块的起始位置;分配单元2103,用于根据配置信息,将所述第一码块流中的所述第一数据码块和所述第二数据码块分别分配到所述第一PHY模块和所述第二PHY模块,所述配置信息用于指示所述PHY芯片中的PHY模块和时隙的对应关系。FIG. 21 is a schematic structural diagram of a data processing apparatus 2100 provided by an embodiment of the application. The data processing apparatus 2100 is located at or communicates with a flexible interface. The apparatus 2100 includes: an acquisition unit 2101, a determination unit 2102, and an allocation unit Unit 2103. In the device 2100, the interface is connected to a physical layer PHY chip, and the PHY chip includes a first PHY module and a second PHY module. The obtaining unit 2101 is configured to obtain a first code block stream from a medium access control MAC chip, where the first code block stream includes a first overhead frame, a first data code block inserted in a first time slot, and a second time code block. the second data code block inserted in the slot; the determining unit 2102 is used to determine the starting position of the data code block in the first code block stream according to the first overhead frame; the allocation unit 2103 is used to determine the starting position of the data code block according to the configuration information, respectively assigning the first data code block and the second data code block in the first code block stream to the first PHY module and the second PHY module, and the configuration information is used for Indicates the correspondence between the PHY module and the time slot in the PHY chip.
可以理解的是,图21所示的装置2100的各种具体实施例方式,可以参见图11所示的 方法300中S307对应各种实现方式的介绍,本实施例不再赘述。It can be understood that, for various specific implementation manners of the apparatus 2100 shown in FIG. 21 , reference may be made to the introduction of the various implementation manners corresponding to S307 in the method 300 shown in FIG. 11 , and details are not repeated in this embodiment.
上述装置1800、装置1900、装置2000以及装置2100中任意一种实现方式中,通过接口连接的MAC芯片和PHY芯片中,MAC模块和PHY模块可以是一一对应的。第一开销帧可以包括用于表征该帧为开销帧的指示信息,该指示信息可以为下述信息中的一个或多个:同步头SH字段、0x4B字段和0x5字段,其中,SH字段的取值为10。In any implementation manner of the foregoing apparatus 1800 , apparatus 1900 , apparatus 2000 and apparatus 2100 , in the MAC chip and the PHY chip connected through the interface, the MAC module and the PHY module may be in one-to-one correspondence. The first overhead frame may include indication information for characterizing the frame as an overhead frame, and the indication information may be one or more of the following information: a synchronization header SH field, a 0x4B field, and a 0x5 field, where the value of the SH field is The value is 10.
此外,本申请实施例还提供了一种网络设备2200,参见图22所示。该网络设备2200包括第一通信接口2201、第二通信接口2202和处理器2203。其中,第一通信接口2201用于执行前述各实施例中网络设备执行的接收操作;第二通信接口2201用于执行前述各实施例中网络设备执行的发送操作;处理器2203用于执行上述各实施例中网络设备执行的除了接收操作和发送操作以外的其他操作。In addition, an embodiment of the present application further provides a network device 2200, as shown in FIG. 22 . The network device 2200 includes a first communication interface 2201 , a second communication interface 2202 and a processor 2203 . Wherein, the first communication interface 2201 is used for performing the receiving operation performed by the network device in the foregoing embodiments; the second communication interface 2201 is used for performing the sending operation performed by the network device in the foregoing embodiments; the processor 2203 is used for performing the foregoing various Other operations other than the receiving operation and the sending operation performed by the network device in the embodiment.
此外,本申请实施例还提供了一种网络设备2300,参见图23所示。该网络设备2300包括与存储器2301通信的处理器2302。其中,存储器2301包括计算机可读指令;处理器2302用于执行所述计算机可读指令,使得该网络设备2300执行以上图7、图10、图11或图12所示实施例中的方法。In addition, an embodiment of the present application further provides a network device 2300, as shown in FIG. 23 . The network device 2300 includes a processor 2302 in communication with memory 2301 . The memory 2301 includes computer-readable instructions; the processor 2302 is configured to execute the computer-readable instructions, so that the network device 2300 executes the method in the embodiment shown in FIG. 7 , FIG. 10 , FIG. 11 or FIG. 12 .
上述实施例中,处理器可以是中央处理器(英文:central processing unit,缩写:CPU),网络处理器(英文:network processor,缩写:NP)或者CPU和NP的组合。处理器还可以是专用集成电路(英文:application-specific integrated circuit,缩写:ASIC),可编程逻辑器件(英文:programmable logic device,缩写:PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(英文:complex programmable logic device,缩写:CPLD),现场可编程逻辑门阵列(英文:field-programmable gate array,缩写:FPGA),通用阵列逻辑(英文:generic array logic,缩写:GAL)或其任意组合。处理器可以是指一个处理器,也可以包括多个处理器。存储器可以包括易失性存储器(英文:volatile memory),例如随机存取存储器(英文:random-access memory,缩写:RAM);存储器也可以包括非易失性存储器(英文:non-volatile memory),例如只读存储器(英文:read-only memory,缩写:ROM),快闪存储器(英文:flash memory),硬盘(英文:hard disk drive,缩写:HDD)或固态硬盘(英文:solid-state drive,缩写:SSD);存储器还可以包括上述种类的存储器的组合。存储器可以是指一个存储器,也可以包括多个存储器。在一个具体实施方式中,存储器中存储有计算机程序或指令,所述计算机程序或指令包括多个软件模块,例如发送模块,处理模块和接收模块。处理器执行各个软件模块后可以按照各个软件模块的指示进行相应的操作。在本实施例中,一个软件模块所执行的操作实际上是指处理器根据所述软件模块的指示而执行的操作。处理器执行存储器中的计算机程序或指令后,可以按照所述计算机程序或指令的指示,执行数据处理方法中的全部操作。In the above embodiment, the processor may be a central processing unit (English: central processing unit, abbreviation: CPU), a network processor (English: network processor, abbreviation: NP), or a combination of CPU and NP. The processor may also be an application-specific integrated circuit (English: application-specific integrated circuit, abbreviation: ASIC), a programmable logic device (English: programmable logic device, abbreviation: PLD) or a combination thereof. The above-mentioned PLD can be a complex programmable logic device (English: complex programmable logic device, abbreviation: CPLD), field programmable logic gate array (English: field-programmable gate array, abbreviation: FPGA), general array logic (English: generic array logic, abbreviation: GAL) or any combination thereof. The processor may refer to one processor, or may include multiple processors. The memory may include volatile memory (English: volatile memory), such as random-access memory (English: random-access memory, abbreviation: RAM); the memory may also include non-volatile memory (English: non-volatile memory), For example, read-only memory (English: read-only memory, abbreviation: ROM), flash memory (English: flash memory), hard disk (English: hard disk drive, abbreviation: HDD) or solid-state hard disk (English: solid-state drive, Abbreviation: SSD); the memory may also comprise a combination of the above-mentioned kinds of memory. The memory may refer to one memory, or may include multiple memories. In a specific embodiment, a computer program or instruction is stored in the memory, and the computer program or instruction includes a plurality of software modules, such as a sending module, a processing module and a receiving module. After executing each software module, the processor can perform corresponding operations according to the instructions of each software module. In this embodiment, the operation performed by a software module actually refers to the operation performed by the processor according to the instruction of the software module. After the processor executes the computer program or instructions in the memory, it can execute all operations in the data processing method according to the instructions of the computer program or instructions.
此外,本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序或指令,当其在计算机上运行时,使得所述计算机执行以上图7、图10、图11或图12所示实施例中的所述方法。In addition, an embodiment of the present application also provides a computer-readable storage medium, where a computer program or instruction is stored in the computer-readable storage medium, and when it is run on a computer, the computer is made to execute the above FIG. 7 and FIG. 10 . , the method in the embodiment shown in FIG. 11 or FIG. 12 .
此外,本申请实施例还提供了计算机程序产品,包括计算机程序或计算机可读指令,当所述计算机程序或所述计算机可读指令在计算机上运行时,使得计算机执行前述图7、 图10、图11或图12所示实施例中的所述方法。In addition, the embodiments of the present application also provide a computer program product, including a computer program or computer-readable instructions, when the computer program or the computer-readable instructions are run on a computer, the computer is caused to execute the aforementioned FIG. 7 , FIG. 10 , The method in the embodiment shown in FIG. 11 or FIG. 12 .
申请实施例中提到的“第一PHY芯片”、“第一MAC模块”等名称中的“第一”只是用来做名字标识,并不代表顺序上的第一。该规则同样适用于“第二”等。The "first" in the names such as the "first PHY chip" and the "first MAC module" mentioned in the application examples is only used for name identification, and does not represent the first in order. The same rule applies to "second" etc.
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到上述实施例方法中的全部或部分步骤可借助软件加通用硬件平台的方式来实现。基于这样的理解,本申请的技术方案可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如只读存储器(英文:read-only memory,ROM)/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者诸如路由器等网络通信设备)执行本申请各个实施例或者实施例的某些部分所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that all or part of the steps in the methods of the above embodiments can be implemented by means of software plus a general hardware platform. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, and the computer software product can be stored in a storage medium, such as read-only memory (English: read-only memory, ROM)/RAM, magnetic disk, An optical disc, etc., includes several instructions for causing a computer device (which may be a personal computer, a server, or a network communication device such as a router) to execute the methods described in various embodiments or some parts of the embodiments of the present application.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例和设备实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的设备及系统实施例仅仅是示意性的,其中作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiments and device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for related parts. The device and system embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in One place, or it can be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.
以上所述仅是本申请的优选实施方式,并非用于限定本申请的保护范围。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. It should be pointed out that for those of ordinary skill in the art, without departing from the present application, several improvements and modifications can also be made, and these improvements and modifications should also be regarded as the protection scope of the present application.

Claims (57)

  1. 一种接口,其特征在于,包括编码单元、分配单元和开销帧控制单元,其中:An interface, characterized in that it comprises a coding unit, an allocation unit and an overhead frame control unit, wherein:
    所述开销帧控制单元,用于基于从介质访问控制MAC芯片中对应的多个MAC模块接收的数据码流,生成第一开销帧;the overhead frame control unit, configured to generate a first overhead frame based on data streams received from multiple MAC modules corresponding to the medium access control MAC chip;
    所述编码单元,用于将所述数据码流编码为对应的数据码块;the encoding unit, configured to encode the data code stream into a corresponding data code block;
    所述分配单元,用于根据所述第一开销帧,将所述数据码块分配到对应的时隙,生成第一码块流,所述第一码块流包括所述第一开销帧和多个数据码块。The assigning unit is configured to assign the data code blocks to corresponding time slots according to the first overhead frame, and generate a first code block stream, where the first code block stream includes the first overhead frame and Multiple data code blocks.
  2. 根据权利要求1所述的接口,其特征在于,所述第一开销帧包括一个时隙周期内各个时隙对应的MAC模块的速率和MAC模块的标识。The interface according to claim 1, wherein the first overhead frame includes the rate of the MAC module and the identifier of the MAC module corresponding to each time slot in a time slot period.
  3. 根据权利要求2所述的接口,其特征在于,所述分配单元,具体用于:The interface according to claim 2, wherein the distribution unit is specifically used for:
    根据所述第一开销帧中携带的各个时隙对应的MAC模块的标识,将每个MAC模块对应的数据码块填充到该MAC模块的标识对应的时隙;According to the identifier of the MAC module corresponding to each time slot carried in the first overhead frame, the data code block corresponding to each MAC module is filled into the time slot corresponding to the identifier of the MAC module;
    根据填充完成的多个数据码块和所述第一开销帧,生成所述第一码块流。The first code block stream is generated according to the padded multiple data code blocks and the first overhead frame.
  4. 根据权利要求1-3任一项所述的接口,其特征在于,当第一时隙对应第一MAC模块和第二MAC模块时,所述第一开销帧还包括第一指示信息,所述第一指示信息用于指示所述第一时隙被多个MAC模块复用。The interface according to any one of claims 1-3, wherein when the first time slot corresponds to the first MAC module and the second MAC module, the first overhead frame further includes first indication information, and the The first indication information is used to indicate that the first time slot is multiplexed by multiple MAC modules.
  5. 根据权利要求4所述的接口,其特征在于,所述第一开销帧还包括扩展开销块,所述扩展开销块中包括所述第一时隙的标识、所述第一MAC模块的速率、所述第一MAC模块的标识、所述第二MAC模块的速率和所述第二MAC模块的标识。The interface according to claim 4, wherein the first overhead frame further includes an extension overhead block, wherein the extension overhead block includes an identifier of the first time slot, a rate of the first MAC module, The identity of the first MAC module, the rate of the second MAC module, and the identity of the second MAC module.
  6. 根据权利要求4所述的接口,其特征在于,所述第一开销帧中所述第一时隙对应的字段,在第一时隙周期内携带所述第一MAC模块的速率和所述第一MAC模块的标识,在第二时隙周期内携带所述第二MAC模块的速率和所述第二MAC模块的标识,在第三时隙周期内携带所述第一MAC模块的速率和所述第一MAC模块的标识,在第四时隙周期内携带所述第二MAC模块的速率和所述第二MAC模块的标识,所述第一时隙周期和所述第二时隙周期相邻,所述第二时隙周期和所述第三时隙周期相邻,所述第三时隙周期和所述第四时隙周期相邻。The interface according to claim 4, wherein the field corresponding to the first time slot in the first overhead frame carries the rate of the first MAC module and the first time slot period in the first time slot period. An identifier of a MAC module, carrying the rate of the second MAC module and the identifier of the second MAC module in the second time slot period, and carrying the rate and all the data of the first MAC module in the third time slot period The identifier of the first MAC module carries the rate of the second MAC module and the identifier of the second MAC module in the fourth timeslot period, and the first timeslot period is the same as the second timeslot period. Neighboringly, the second time slot period is adjacent to the third time slot period, and the third time slot period is adjacent to the fourth time slot period.
  7. 一种接口,其特征在于,包括分配单元,其中:An interface, characterized by comprising a distribution unit, wherein:
    所述分配单元,用于根据第一码块流中的第一开销帧,将所述第一码块流中的数据码块分配到对应的介质访问控制MAC模块,所述第一码块流为所述接口从物理层PHY芯片接收的。The assigning unit is configured to assign, according to the first overhead frame in the first code block stream, a data code block in the first code block stream to a corresponding medium access control MAC module, the first code block stream received from the physical layer PHY chip for the interface.
  8. 根据权利要求7所述的接口,其特征在于,每个MAC模块对应的数据码块在所述第一码块流中的填充频率根据该MAC模块的速率和每个时隙对应的等效带宽确定。The interface according to claim 7, wherein the filling frequency of the data code block corresponding to each MAC module in the first code block stream is based on the rate of the MAC module and the equivalent bandwidth corresponding to each time slot Sure.
  9. 一种接口,其特征在于,包括编码单元、分配单元和开销帧控制单元,其中:An interface, characterized in that it comprises a coding unit, an allocation unit and an overhead frame control unit, wherein:
    所述开销帧控制单元,用于基于从物理层PHY芯片中对应的多个PHY模块接收的数据码流,生成第一开销帧;the overhead frame control unit, configured to generate a first overhead frame based on data code streams received from multiple PHY modules corresponding to the physical layer PHY chip;
    所述编码单元,用于将所述数据码流编码为对应的数据码块;the encoding unit, configured to encode the data code stream into a corresponding data code block;
    所述分配单元,用于根据所述第一开销帧,将所述数据码块分配到对应的时隙,生成 第一码块流,所述第一码块流包括所述第一开销帧和多个数据码块。The assigning unit is configured to assign the data code blocks to corresponding time slots according to the first overhead frame, and generate a first code block stream, where the first code block stream includes the first overhead frame and Multiple data code blocks.
  10. 根据权利要求9所述的接口,其特征在于,所述第一开销帧包括一个时隙周期内各个时隙对应的PHY模块的速率和PHY模块的标识。The interface according to claim 9, wherein the first overhead frame includes a rate of a PHY module and an identifier of the PHY module corresponding to each time slot in a time slot period.
  11. 根据权利要求10所述的接口,其特征在于,所述分配单元,具体用于:The interface according to claim 10, wherein the distribution unit is specifically used for:
    根据所述第一开销帧中携带的各个时隙对应的PHY模块的标识,将每个PHY模块对应的数据码块填充到该PHY模块的标识对应的时隙;According to the identifier of the PHY module corresponding to each time slot carried in the first overhead frame, the data code block corresponding to each PHY module is filled into the time slot corresponding to the identifier of the PHY module;
    根据填充完成的多个数据码块和所述第一开销帧,生成所述第一码块流。The first code block stream is generated according to the padded multiple data code blocks and the first overhead frame.
  12. 根据权利要求9-11任一项所述的接口,其特征在于,所述接口支持的总带宽等于所述PHY芯片的总带宽。The interface according to any one of claims 9-11, wherein the total bandwidth supported by the interface is equal to the total bandwidth of the PHY chip.
  13. 一种接口,其特征在于,包括分配单元,其中:An interface, characterized by comprising a distribution unit, wherein:
    所述分配单元,用于根据第一码块流中的第一开销帧,将所述第一码块流中的数据码块分配到第一物理层PHY芯片对应的PHY模块,所述第一码块流为所述接口从介质访问控制MAC芯片接收到的。The assigning unit is configured to assign, according to the first overhead frame in the first code block stream, the data code blocks in the first code block stream to the PHY module corresponding to the first physical layer PHY chip, the first code block stream The code block stream is received by the interface from the medium access control MAC chip.
  14. 根据权利要求13所述的接口,其特征在于,所述第一PHY芯片还包括第一扩展的接口,所述第一扩展的接口,用于和第二PHY芯片的第二扩展的接口通信,所述第二PHY芯片包括多个PHY模块。The interface according to claim 13, wherein the first PHY chip further comprises a first extended interface, and the first extended interface is used to communicate with a second extended interface of the second PHY chip, The second PHY chip includes a plurality of PHY modules.
  15. 根据权利要求14所述的接口,其特征在于,所述分配单元,具体用于:The interface according to claim 14, wherein the distribution unit is specifically used for:
    按照所述第一码块流中的第一开销帧,将所述第一码块流中的部分数据码块分配到所述第一PHY芯片对应的PHY模块;Allocate some data code blocks in the first code block stream to the PHY module corresponding to the first PHY chip according to the first overhead frame in the first code block stream;
    按照所述第一码块流中的第一开销帧,将所述第一码块流中的另一部分数据码块通过所述第一扩展的接口和所述第二扩展的接口,分配到所述第二PHY芯片对应的PHY模块。According to the first overhead frame in the first code block stream, another part of the data code blocks in the first code block stream is allocated to the The PHY module corresponding to the second PHY chip.
  16. 根据权利要求14或15所述的接口,其特征在于,所述接口支持的总带宽等于所述第一PHY芯片的总带宽和所述第二PHY芯片的总带宽之和。The interface according to claim 14 or 15, wherein the total bandwidth supported by the interface is equal to the sum of the total bandwidth of the first PHY chip and the total bandwidth of the second PHY chip.
  17. 根据权利要求1-16任一项所述的接口,其特征在于,所述第一开销帧包括的开销块个数根据第一码块流的一个时隙周期包括的时隙个数确定。The interface according to any one of claims 1-16, wherein the number of overhead blocks included in the first overhead frame is determined according to the number of time slots included in one slot period of the first code block stream.
  18. 根据权利要求1-17任一项所述的接口,其特征在于,所述第一开销帧还包括下述信息中的任意一个或多个:The interface according to any one of claims 1-17, wherein the first overhead frame further includes any one or more of the following information:
    第二指示信息,所述第二指示信息用于表征所述第一开销帧;second indication information, where the second indication information is used to represent the first overhead frame;
    时隙状态标识Reset信息,所述Reset信息用于表征所述时隙状态为默认状态或协商状态;Time slot state identification Reset information, and the Reset information is used to represent that the time slot state is a default state or a negotiated state;
    远端PHY故障告警RPF指示位;和far-end PHY failure alarm RPF indicator bit; and
    本端PHY故障LPF指示位。Local PHY failure LPF indication bit.
  19. 根据权利要求18所述的接口,其特征在于,所述第二指示信息包括下述信息中的一个或多个:同步头SH字段、0x4B字段和0x5字段,The interface according to claim 18, wherein the second indication information includes one or more of the following information: a synchronization header SH field, a 0x4B field, and a 0x5 field,
    其中,SH字段的取值为10。The value of the SH field is 10.
  20. 根据权利要求18或19所述的接口,其特征在于,所述第一开销帧还包括下述信息中的一个或多个:循环冗余码校验CRC信息、所述接口支持的总带宽和保留字段。The interface according to claim 18 or 19, wherein the first overhead frame further includes one or more of the following information: cyclic redundancy check (CRC) information, total bandwidth supported by the interface, and reserved text.
  21. 一种接口,其特征在于,包括编码单元、分配单元和开销帧控制单元,其中:An interface, characterized in that it comprises a coding unit, an allocation unit and an overhead frame control unit, wherein:
    所述开销帧控制单元,用于生成第一开销帧;the overhead frame control unit, configured to generate a first overhead frame;
    所述编码单元,用于将所述数据码流编码为对应的数据码块;the encoding unit, configured to encode the data code stream into a corresponding data code block;
    所述分配单元,用于根据配置信息,将所述数据码块分配到对应的时隙,生成第一码块流,所述配置信息用于指示介质访问控制MAC芯片中的MAC模块和时隙的对应关系,所述第一码块流包括所述第一开销帧和多个数据码块,所述第一开销帧用于指示所述第一码块流的起始位置。The allocating unit is configured to allocate the data code block to the corresponding time slot according to the configuration information to generate a first code block stream, the configuration information is used to indicate the MAC module and the time slot in the medium access control MAC chip The first code block stream includes the first overhead frame and a plurality of data code blocks, and the first overhead frame is used to indicate the starting position of the first code block stream.
  22. 一种接口,其特征在于,包括分配单元,其中:An interface, characterized by comprising a distribution unit, wherein:
    所述分配单元,用于根据第一开销帧,确定第一码块流中的数据码块的位置,并根据配置信息,将所述第一码块流中的数据码块分配到介质访问控制MAC芯片对应的MAC模块,所述MAC芯片中保存所述配置信息,所述配置信息用于指示所述MAC芯片中的MAC模块和时隙的对应关系,所述第一码块流为所述接口从物理层PHY芯片接收的。The allocation unit is configured to determine the position of the data code block in the first code block stream according to the first overhead frame, and allocate the data code block in the first code block stream to the medium access control according to the configuration information The MAC module corresponding to the MAC chip, the configuration information is stored in the MAC chip, and the configuration information is used to indicate the corresponding relationship between the MAC module and the time slot in the MAC chip, and the first code block stream is the The interface is received from the physical layer PHY chip.
  23. 一种接口,其特征在于,包括编码单元、分配单元和开销帧控制单元,其中:An interface, characterized in that it comprises a coding unit, an allocation unit and an overhead frame control unit, wherein:
    所述开销帧控制单元,用于生成第一开销帧;the overhead frame control unit, configured to generate a first overhead frame;
    所述编码单元,用于将所述数据码流编码为对应的数据码块;the encoding unit, configured to encode the data code stream into a corresponding data code block;
    所述分配单元,用于根据配置信息,将所述数据码块分配到对应的时隙,生成第一码块流,所述配置信息用于指示物理层PHY芯片中的PHY模块和时隙的对应关系,所述第一码块流包括所述第一开销帧和多个数据码块,所述第一开销帧用于指示所述第一码块流的起始位置。The allocation unit is configured to allocate the data code block to the corresponding time slot according to the configuration information, and the configuration information is used to indicate the PHY module and the time slot in the physical layer PHY chip. Correspondingly, the first code block stream includes the first overhead frame and a plurality of data code blocks, and the first overhead frame is used to indicate a starting position of the first code block stream.
  24. 一种接口,其特征在于,包括分配单元,其中:An interface, characterized by comprising a distribution unit, wherein:
    所述分配单元,用于根据第一开销帧,确定第一码块流中的数据码块的位置,并根据配置信息,将所述第一码块流中的数据码块分配到物理层PHY芯片对应的PHY模块,所述PHY芯片中保存所述配置信息,所述配置信息用于指示所述PHY芯片中的PHY模块和时隙的对应关系,所述第一码块流为所述接口从介质访问控制MAC芯片接收的。The allocation unit is configured to determine the position of the data code block in the first code block stream according to the first overhead frame, and allocate the data code block in the first code block stream to the physical layer PHY according to the configuration information The PHY module corresponding to the chip, the configuration information is stored in the PHY chip, and the configuration information is used to indicate the corresponding relationship between the PHY module and the time slot in the PHY chip, and the first code block stream is the interface Received from the medium access control MAC chip.
  25. 根据权利要求21-24任一项所述的接口,其特征在于,所述MAC芯片中的MAC模块和所述PHY芯片中的PHY模块一一对应。The interface according to any one of claims 21-24, wherein the MAC modules in the MAC chip correspond to the PHY modules in the PHY chip one-to-one.
  26. 根据权利要求21-25任一项所述的接口,其特征在于,所述第一开销帧包括用于表征该帧为开销帧的指示信息,所述指示信息为下述信息中的一个或多个:同步头SH字段、0x4B字段和0x5字段,The interface according to any one of claims 21-25, wherein the first overhead frame includes indication information for characterizing the frame as an overhead frame, and the indication information is one or more of the following information A: Sync header SH field, 0x4B field and 0x5 field,
    其中,SH字段的取值为10。The value of the SH field is 10.
  27. 根据权利要求1-26任一项所述的接口,其特征在于,所述MAC芯片中所有MAC模块的速率之和小于或等于所述接口支持的总带宽。The interface according to any one of claims 1-26, wherein the sum of the rates of all MAC modules in the MAC chip is less than or equal to the total bandwidth supported by the interface.
  28. 根据权利要求27所述的接口,其特征在于,所述MAC芯片中包括的MAC模块的数量大于或等于所述PHY芯片中包括的PHY模块的数量。The interface according to claim 27, wherein the number of MAC modules included in the MAC chip is greater than or equal to the number of PHY modules included in the PHY chip.
  29. 根据权利要求1-28任一项所述的接口,其特征在于,码块流的一个时隙周期包括的时隙个数为所述接口连接的物理层PHY芯片包括的PHY模块的个数的正整数倍。The interface according to any one of claims 1-28, wherein the number of time slots included in one time slot cycle of the code block stream is equal to the number of PHY modules included in a physical layer PHY chip connected to the interface positive integer multiples.
  30. 根据权利要求1-29任一项所述的接口,其特征在于,每个时隙对应的等效带宽为所 述接口支持的总带宽除以码块流一个时隙周期所包括的时隙个数。The interface according to any one of claims 1-29, wherein the equivalent bandwidth corresponding to each time slot is the total bandwidth supported by the interface divided by the number of time slots included in one time slot cycle of the code block stream number.
  31. 根据权利要求1-30任一项所述的接口,其特征在于,当所述接口支持的总带宽小于40千兆比特/秒时,所述接口中的编码单元按照IEEE 802.3中第49条的方式进行64B/66B编码。The interface according to any one of claims 1-30, characterized in that, when the total bandwidth supported by the interface is less than 40 gigabits/second, the coding unit in the interface is in accordance with Article 49 in IEEE 802.3. 64B/66B encoding.
  32. 根据权利要求1-30任一项所述的接口,其特征在于,当所述接口支持的总带宽大于或等于40千兆比特/秒时,所述接口中的编码单元按照IEEE 802.3中第82条的方式进行64B/66B编码。The interface according to any one of claims 1-30, wherein when the total bandwidth supported by the interface is greater than or equal to 40 gigabits/second, the coding unit in the interface is in accordance with the IEEE 802.3 No. 82 64B/66B encoding in strips.
  33. 一种数据处理方法,其特征在于,接口连接介质访问控制MAC芯片,所述MAC芯片包括第一MAC模块和第二MAC模块,所述方法包括:A data processing method, characterized in that an interface is connected to a medium access control MAC chip, the MAC chip includes a first MAC module and a second MAC module, and the method includes:
    根据来自所述第一MAC模块的第一数据码流和来自所述第二MAC模块的第二数据码流,生成第一开销帧,所述第一开销帧用于指示所述第一数据码流和所述第二数据码流对应的时隙;A first overhead frame is generated according to the first data code stream from the first MAC module and the second data code stream from the second MAC module, where the first overhead frame is used to indicate the first data code the time slot corresponding to the stream and the second data stream;
    对所述第一数据码流和所述第二数据码流分别进行编码,得到第一数据码块和第二数据码块;Encoding the first data code stream and the second data code stream respectively to obtain a first data code block and a second data code block;
    基于所述第一开销帧,将所述第一数据码块插入第一时隙,将所述第二数据码块插入第二时隙,生成第一码块流,所述第一码块流包括第一开销帧、所述第一时隙中插入的所述第一数据码块,所述第二时隙中插入的所述第二数据码块。Based on the first overhead frame, the first data code block is inserted into a first time slot, the second data code block is inserted into a second time slot, and a first code block stream is generated, the first code block stream It includes a first overhead frame, the first data code block inserted in the first time slot, and the second data code block inserted in the second time slot.
  34. 根据权利要求33所述的方法,其特征在于,还包括:The method of claim 33, further comprising:
    采用串行解串器SerDes对所述第一码块流进行串行化处理,获得第一处理结果;Use a serializer SerDes to serialize the first code block stream to obtain a first processing result;
    将所述第一处理结果发送给第一物理层PHY芯片。Send the first processing result to the first physical layer PHY chip.
  35. 根据权利要求34所述的方法,其特征在于,还包括:The method of claim 34, further comprising:
    从所述第一PHY芯片接收第二处理结果;receiving a second processing result from the first PHY chip;
    采用所述SerDes对所述第二处理结果进行解串行处理,获得的第二码块流;Using the SerDes to perform deserialization processing on the second processing result to obtain a second code block stream;
    根据所述第二码块流中的第二开销帧,将所述第二码块流中的数据码块分配到所述MAC芯片对应的多个MAC模块。According to the second overhead frame in the second code block stream, the data code blocks in the second code block stream are allocated to a plurality of MAC modules corresponding to the MAC chip.
  36. 根据权利要求33所述的方法,其特征在于,还包括:The method of claim 33, further comprising:
    采用扰码处理单元对所述第一码块流进行扰码,得到更新后的第一码块流;The first code block stream is scrambled by a scrambling processing unit to obtain an updated first code block stream;
    采用串行解串器SerDes对所述更新后的第一码块流进行串行化处理,获得第三处理结果;Using a serializer SerDes to serialize the updated first code block stream to obtain a third processing result;
    将所述第三处理结果发送给第一物理层PHY芯片。Send the third processing result to the first physical layer PHY chip.
  37. 根据权利要求33-36任一项所述的方法,其特征在于,所述MAC芯片还包括多个端口,所述多个端口中的每个端口通过对应的适配子层RS和对应的MAC模块进行通信,所述方法还包括:The method according to any one of claims 33-36, wherein the MAC chip further comprises a plurality of ports, and each port in the plurality of ports passes through a corresponding adaptation sublayer RS and a corresponding MAC module to communicate, and the method further includes:
    采用RS将对应的MAC模块发送的MAC帧流处理为数据码流;Use RS to process the MAC frame stream sent by the corresponding MAC module into a data stream;
    或者,采用RS将所述接口接收的数据码流处理为MAC帧流发送给对应的MAC模块。Alternatively, the RS is used to process the data stream received by the interface into a MAC frame stream and send it to the corresponding MAC module.
  38. 一种数据处理方法,其特征在于,接口连接第一物理层PHY模块和第二PHY模块,所述方法包括:A data processing method, characterized in that an interface connects a first physical layer PHY module and a second PHY module, the method comprising:
    根据来自所述第一PHY模块的第一数据码流和来自所述第二PHY模块的第二数据码流,生成第一开销帧,所述第一开销帧用于指示所述第一数据码流和所述第二数据码流对应的时隙;A first overhead frame is generated according to the first data code stream from the first PHY module and the second data code stream from the second PHY module, where the first overhead frame is used to indicate the first data code the time slot corresponding to the stream and the second data stream;
    对所述第一数据码流和所述第二数据码流分别进行编码,得到第一数据码块和第二数据码块;Encoding the first data code stream and the second data code stream respectively to obtain a first data code block and a second data code block;
    基于所述第一开销帧,将所述第一数据码块插入第一时隙,将所述第二数据码块插入第二时隙,生成第一码块流,所述第一码块流包括第一开销帧、所述第一时隙中插入的所述第一数据码块,所述第二时隙中插入的所述第二数据码块。Based on the first overhead frame, the first data code block is inserted into a first time slot, the second data code block is inserted into a second time slot, and a first code block stream is generated, the first code block stream It includes a first overhead frame, the first data code block inserted in the first time slot, and the second data code block inserted in the second time slot.
  39. 根据权利要求38所述的方法,其特征在于,还包括:The method of claim 38, further comprising:
    采用串行解串器SerDes对所述第一码块流进行串行化处理,获得第一处理结果;Use a serializer SerDes to serialize the first code block stream to obtain a first processing result;
    将所述第一处理结果发送给介质访问控制MAC芯片。The first processing result is sent to the medium access control MAC chip.
  40. 根据权利要求39所述的方法,其特征在于,还包括:The method of claim 39, further comprising:
    从所述MAC芯片接收第二处理结果;receiving a second processing result from the MAC chip;
    采用所述SerDes对所述第二处理结果进行解串行处理,获得的第二码块流,所述第二码块流包括第二开销帧、第三数据码块和第四数据码块;Deserialize the second processing result by using the SerDes, and obtain a second code block stream, where the second code block stream includes a second overhead frame, a third data code block, and a fourth data code block;
    根据所述第二开销帧,将所述第三数据码块和所述第四数据码块分别分配到所述第一PHY模块和第二PHY模块。According to the second overhead frame, the third data code block and the fourth data code block are allocated to the first PHY module and the second PHY module, respectively.
  41. 根据权利要求38所述的方法,其特征在于,还包括:The method of claim 38, further comprising:
    采用扰码处理单元对所述第一码块流进行扰码,得到更新后的第一码块流;The first code block stream is scrambled by a scrambling processing unit to obtain an updated first code block stream;
    采用串行解串器SerDes对所述更新后的第一码块流进行串行化处理,获得第三处理结果;Using a serializer SerDes to serialize the updated first code block stream to obtain a third processing result;
    将所述第三处理结果发送给介质访问控制MAC芯片。The third processing result is sent to the medium access control MAC chip.
  42. 根据权利要求38-41任一项所述的方法,其特征在于,The method according to any one of claims 38-41, wherein,
    所述第一PHY模块和所述第二PHY模块属于第一PHY芯片;the first PHY module and the second PHY module belong to a first PHY chip;
    或者,所述第一PHY模块属于第一PHY芯片,所述第二PHY模块属于第二PHY芯片,所述第一PHY芯片和所述第二PHY芯片通过扩展的接口连接。Alternatively, the first PHY module belongs to a first PHY chip, the second PHY module belongs to a second PHY chip, and the first PHY chip and the second PHY chip are connected through an extended interface.
  43. 一种数据处理方法,其特征在于,接口连接介质访问控制MAC芯片,所述MAC芯片包括第一MAC模块和第二MAC模块,所述方法包括:A data processing method, characterized in that an interface is connected to a medium access control MAC chip, the MAC chip includes a first MAC module and a second MAC module, and the method includes:
    生成第一开销帧,所述第一开销帧用于指示码块流的起始位置;generating a first overhead frame, where the first overhead frame is used to indicate the starting position of the code block stream;
    对来自所述第一MAC模块的第一数据码流和来自所述第二MAC模块的第二数据码流分别进行编码,得到第一数据码块和第二数据码块;Encoding the first data code stream from the first MAC module and the second data code stream from the second MAC module, respectively, to obtain a first data code block and a second data code block;
    基于所述第一开销帧和配置信息,将所述第一数据码块插入第一时隙,将所述第二数据码块插入第二时隙,生成第一码块流,所述第一码块流包括第一开销帧、所述第一时隙中插入的所述第一数据码块和所述第二时隙中插入的所述第二数据码块,所述配置信息用于指示所述MAC芯片中的MAC模块和时隙的对应关系。Based on the first overhead frame and configuration information, the first data code block is inserted into a first time slot, the second data code block is inserted into a second time slot, and a first code block stream is generated, the first code block The code block stream includes a first overhead frame, the first data code block inserted in the first time slot, and the second data code block inserted in the second time slot, and the configuration information is used to indicate Correspondence between MAC modules in the MAC chip and time slots.
  44. 一种数据处理方法,其特征在于,接口连接介质访问控制MAC芯片,所述MAC芯片包括第一MAC模块和第二MAC模块,所述方法包括:A data processing method, characterized in that an interface is connected to a medium access control MAC chip, the MAC chip includes a first MAC module and a second MAC module, and the method includes:
    从物理层PHY芯片获得第一码块流,所述第一码块流包括第一开销帧、第一时隙中插入的第一数据码块和第二时隙中插入的第二数据码块;A first code block stream is obtained from the physical layer PHY chip, the first code block stream includes a first overhead frame, a first data code block inserted in a first time slot, and a second data code block inserted in a second time slot ;
    根据所述第一开销帧,确定所述第一码块流中的数据码块的起始位置;determining, according to the first overhead frame, a starting position of a data code block in the first code block stream;
    根据配置信息,将所述第一码块流中的所述第一数据码块和所述第二数据码块分别分配到所述第一MAC模块和所述第二MAC模块,所述配置信息用于指示所述MAC芯片中的MAC模块和时隙的对应关系。According to the configuration information, the first data code block and the second data code block in the first code block stream are respectively allocated to the first MAC module and the second MAC module, and the configuration information It is used to indicate the corresponding relationship between the MAC module and the time slot in the MAC chip.
  45. 一种数据处理方法,其特征在于,接口连接物理层PHY芯片,所述PHY芯片包括第一PHY模块和第二PHY模块,所述方法包括:A data processing method, characterized in that an interface is connected to a physical layer PHY chip, the PHY chip includes a first PHY module and a second PHY module, and the method includes:
    生成第一开销帧,所述第一开销帧用于指示码块流的起始位置;generating a first overhead frame, where the first overhead frame is used to indicate the starting position of the code block stream;
    对来自所述第一PHY模块的第一数据码流和来自所述第二PHY模块的第二数据码流分别进行编码,得到第一数据码块和第二数据码块;encoding the first data code stream from the first PHY module and the second data code stream from the second PHY module, respectively, to obtain a first data code block and a second data code block;
    基于所述第一开销帧和配置信息,将所述第一数据码块插入第一时隙,将所述第二数据码块插入第二时隙,生成第一码块流,所述第一码块流包括第一开销帧、所述第一时隙中插入的所述第一数据码块和所述第二时隙中插入的所述第二数据码块,所述配置信息用于指示所述PHY芯片中的PHY模块和时隙的对应关系。Based on the first overhead frame and configuration information, the first data code block is inserted into a first time slot, the second data code block is inserted into a second time slot, and a first code block stream is generated, the first code block The code block stream includes a first overhead frame, the first data code block inserted in the first time slot, and the second data code block inserted in the second time slot, and the configuration information is used to indicate The corresponding relationship between the PHY module in the PHY chip and the time slot.
  46. 一种数据处理方法,其特征在于,接口连接物理层PHY芯片,所述PHY芯片包括第一PHY模块和第二PHY模块,所述方法包括:A data processing method, characterized in that an interface is connected to a physical layer PHY chip, the PHY chip includes a first PHY module and a second PHY module, and the method includes:
    从介质访问控制MAC芯片获得第一码块流,所述第一码块流包括第一开销帧、第一时隙中插入的第一数据码块和第二时隙中插入的第二数据码块;A first code block stream is obtained from a medium access control MAC chip, the first code block stream includes a first overhead frame, a first data code block inserted in a first time slot, and a second data code inserted in a second time slot Piece;
    根据所述第一开销帧,确定所述第一码块流中的数据码块的起始位置;determining, according to the first overhead frame, a starting position of a data code block in the first code block stream;
    根据配置信息,将所述第一码块流中的所述第一数据码块和所述第二数据码块分别分配到所述第一PHY模块和所述第二PHY模块,所述配置信息用于指示所述PHY芯片中的PHY模块和时隙的对应关系。According to configuration information, the first data code block and the second data code block in the first code block stream are respectively allocated to the first PHY module and the second PHY module, the configuration information It is used to indicate the corresponding relationship between the PHY module and the time slot in the PHY chip.
  47. 根据权利要求43-46任一项所述的方法,其特征在于,通过接口连接的MAC芯片和PHY芯片中,MAC模块和PHY模块一一对应。The method according to any one of claims 43-46, wherein, in the MAC chip and the PHY chip connected through the interface, the MAC module and the PHY module are in one-to-one correspondence.
  48. 根据权利要求43-47任一项所述的方法,其特征在于,所述第一开销帧包括用于表征该帧为开销帧的指示信息,所述指示信息为下述信息中的一个或多个:同步头SH字段、0x4B字段和0x5字段,The method according to any one of claims 43-47, wherein the first overhead frame includes indication information for characterizing the frame as an overhead frame, and the indication information is one or more of the following information A: Sync header SH field, 0x4B field and 0x5 field,
    其中,SH字段的取值为10。The value of the SH field is 10.
  49. 一种数据处理装置,其特征在于,接口连接介质访问控制MAC芯片,所述MAC芯片包括第一MAC模块和第二MAC模块,所述装置包括:A data processing device, characterized in that an interface is connected to a medium access control MAC chip, the MAC chip includes a first MAC module and a second MAC module, and the device includes:
    第一生成单元,用于根据来自所述第一MAC模块的第一数据码流和来自所述第二MAC模块的第二数据码流,生成第一开销帧,所述第一开销帧用于指示所述第一数据码流和所述第二数据码流对应的时隙;a first generating unit, configured to generate a first overhead frame according to the first data code stream from the first MAC module and the second data code stream from the second MAC module, where the first overhead frame is used for Indicate time slots corresponding to the first data stream and the second data stream;
    编码单元,用于对所述第一数据码流和所述第二数据码流分别进行编码,得到第一数据码块和第二数据码块;an encoding unit, configured to encode the first data code stream and the second data code stream respectively to obtain a first data code block and a second data code block;
    第二生成单元,用于基于所述第一开销帧,将所述第一数据码块插入第一时隙,将所 述第二数据码块插入第二时隙,生成第一码块流,所述第一码块流包括第一开销帧、所述第一时隙中插入的所述第一数据码块,所述第二时隙中插入的所述第二数据码块。a second generating unit, configured to, based on the first overhead frame, insert the first data code block into a first time slot, insert the second data code block into a second time slot, and generate a first code block stream, The first code block stream includes a first overhead frame, the first data code block inserted in the first time slot, and the second data code block inserted in the second time slot.
  50. 一种数据处理装置,其特征在于,接口连接第一物理层PHY模块和第二PHY模块,所述装置包括:A data processing device, characterized in that an interface connects a first physical layer PHY module and a second PHY module, the device comprising:
    第一生成单元,用于根据来自所述第一PHY模块的第一数据码流和来自所述第二PHY模块的第二数据码流,生成第一开销帧,所述第一开销帧用于指示所述第一数据码流和所述第二数据码流对应的时隙;a first generating unit, configured to generate a first overhead frame according to the first data code stream from the first PHY module and the second data code stream from the second PHY module, where the first overhead frame is used for Indicate time slots corresponding to the first data stream and the second data stream;
    编码单元,用于对所述第一数据码流和所述第二数据码流分别进行编码,得到第一数据码块和第二数据码块;an encoding unit, configured to encode the first data code stream and the second data code stream respectively to obtain a first data code block and a second data code block;
    第二生成单元,用于基于所述第一开销帧,将所述第一数据码块插入第一时隙,将所述第二数据码块插入第二时隙,生成第一码块流,所述第一码块流包括第一开销帧、所述第一时隙中插入的所述第一数据码块,所述第二时隙中插入的所述第二数据码块。a second generating unit, configured to, based on the first overhead frame, insert the first data code block into a first time slot, insert the second data code block into a second time slot, and generate a first code block stream, The first code block stream includes a first overhead frame, the first data code block inserted in the first time slot, and the second data code block inserted in the second time slot.
  51. 一种数据处理装置,其特征在于,接口连接介质访问控制MAC芯片,所述MAC芯片包括第一MAC模块和第二MAC模块,所述装置包括:A data processing device, characterized in that an interface is connected to a medium access control MAC chip, the MAC chip includes a first MAC module and a second MAC module, and the device includes:
    第一生成单元,用于生成第一开销帧,所述第一开销帧用于指示码块流的起始位置;a first generating unit, configured to generate a first overhead frame, where the first overhead frame is used to indicate the starting position of the code block stream;
    编码单元,用于对来自所述第一MAC模块的第一数据码流和来自所述第二MAC模块的第二数据码流分别进行编码,得到第一数据码块和第二数据码块;an encoding unit, configured to encode the first data code stream from the first MAC module and the second data code stream from the second MAC module, respectively, to obtain a first data code block and a second data code block;
    第二生成单元,用于基于所述第一开销帧和配置信息,将所述第一数据码块插入第一时隙,将所述第二数据码块插入第二时隙,生成第一码块流,所述第一码块流包括第一开销帧、所述第一时隙中插入的所述第一数据码块和所述第二时隙中插入的所述第二数据码块,所述配置信息用于指示所述MAC芯片中的MAC模块和时隙的对应关系。a second generating unit, configured to insert the first data code block into a first time slot, insert the second data code block into a second time slot, and generate a first code based on the first overhead frame and the configuration information a block stream, the first code block stream comprising a first overhead frame, the first data code block inserted in the first time slot, and the second data code block inserted in the second time slot, The configuration information is used to indicate the correspondence between the MAC module and the time slot in the MAC chip.
  52. 一种数据处理装置,其特征在于,接口连接介质访问控制MAC芯片,所述MAC芯片包括第一MAC模块和第二MAC模块,所述装置包括:A data processing device, characterized in that an interface is connected to a medium access control MAC chip, the MAC chip includes a first MAC module and a second MAC module, and the device includes:
    获取单元,用于从物理层PHY芯片获得第一码块流,所述第一码块流包括第一开销帧、第一时隙中插入的第一数据码块和第二时隙中插入的第二数据码块;an obtaining unit, configured to obtain a first code block stream from a physical layer PHY chip, where the first code block stream includes a first overhead frame, a first data code block inserted in the first time slot, and a first code block inserted in the second time slot the second data code block;
    确定单元,用于根据所述第一开销帧,确定所述第一码块流中的数据码块的起始位置;a determining unit, configured to determine the starting position of the data code block in the first code block stream according to the first overhead frame;
    分配单元,用于根据配置信息,将所述第一码块流中的所述第一数据码块和所述第二数据码块分别分配到所述第一MAC模块和所述第二MAC模块,所述配置信息用于指示所述MAC芯片中的MAC模块和时隙的对应关系。an allocation unit, configured to allocate the first data code block and the second data code block in the first code block stream to the first MAC module and the second MAC module respectively according to configuration information , the configuration information is used to indicate the corresponding relationship between the MAC module and the time slot in the MAC chip.
  53. 一种数据处理装置,其特征在于,接口连接物理层PHY芯片,所述PHY芯片包括第一PHY模块和第二PHY模块,所述装置包括:A data processing device, characterized in that an interface is connected to a physical layer PHY chip, the PHY chip includes a first PHY module and a second PHY module, and the device includes:
    第一生成单元,用于生成第一开销帧,所述第一开销帧用于指示码块流的起始位置;a first generating unit, configured to generate a first overhead frame, where the first overhead frame is used to indicate the starting position of the code block stream;
    编码单元,用于对来自所述第一PHY模块的第一数据码流和来自所述第二PHY模块的第二数据码流分别进行编码,得到第一数据码块和第二数据码块;an encoding unit, configured to encode the first data code stream from the first PHY module and the second data code stream from the second PHY module respectively to obtain a first data code block and a second data code block;
    第二生成单元,用于基于所述第一开销帧和配置信息,将所述第一数据码块插入第一时隙,将所述第二数据码块插入第二时隙,生成第一码块流,所述第一码块流包括第一开销帧、所述第一时隙中插入的所述第一数据码块和所述第二时隙中插入的所述第二数据码 块,所述配置信息用于指示所述PHY芯片中的PHY模块和时隙的对应关系。a second generating unit, configured to insert the first data code block into a first time slot, insert the second data code block into a second time slot, and generate a first code based on the first overhead frame and the configuration information a block stream, the first code block stream comprising a first overhead frame, the first data code block inserted in the first time slot, and the second data code block inserted in the second time slot, The configuration information is used to indicate the corresponding relationship between the PHY module and the time slot in the PHY chip.
  54. 一种数据处理装置,其特征在于,接口连接物理层PHY芯片,所述PHY芯片包括第一PHY模块和第二PHY模块,所述装置包括:A data processing device, characterized in that an interface is connected to a physical layer PHY chip, the PHY chip includes a first PHY module and a second PHY module, and the device includes:
    获取单元,用于从介质访问控制MAC芯片获得第一码块流,所述第一码块流包括第一开销帧、第一时隙中插入的第一数据码块和第二时隙中插入的第二数据码块;an obtaining unit, configured to obtain a first code block stream from a medium access control MAC chip, where the first code block stream includes a first overhead frame, a first data code block inserted in the first time slot, and a first data code block inserted in the second time slot the second data code block;
    确定单元,用于根据所述第一开销帧,确定所述第一码块流中的数据码块的起始位置;a determining unit, configured to determine the starting position of the data code block in the first code block stream according to the first overhead frame;
    分配单元,用于根据配置信息,将所述第一码块流中的所述第一数据码块和所述第二数据码块分别分配到所述第一PHY模块和所述第二PHY模块,所述配置信息用于指示所述PHY芯片中的PHY模块和时隙的对应关系。an allocation unit, configured to allocate the first data code block and the second data code block in the first code block stream to the first PHY module and the second PHY module respectively according to configuration information , the configuration information is used to indicate the corresponding relationship between the PHY module and the time slot in the PHY chip.
  55. 一种网络设备,其特征在于,包括:A network device, characterized in that it includes:
    与存储器通信的处理器,所述处理器用于执行所述存储器中包括的计算机可读指令,使得所述网络设备执行权利要求33-48任一项所述的方法。A processor in communication with a memory for executing computer readable instructions included in the memory to cause the network device to perform the method of any of claims 33-48.
  56. 一种计算机可读存储介质,其特征在于,包括程序或指令,当其被处理器执行时实现如权利要求33-48任一项所述的方法。A computer-readable storage medium, characterized by comprising programs or instructions which, when executed by a processor, implement the method of any one of claims 33-48.
  57. 一种计算机程序产品,其特征在于,包括计算机程序,所述计算机程序被处理器执行时实现权利要求33-48任一项所述的方法。A computer program product, characterized in that it includes a computer program, which implements the method of any one of claims 33-48 when the computer program is executed by a processor.
PCT/CN2021/087110 2020-08-17 2021-04-14 Interface, data processing method and apparatus, and network device WO2022037090A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202010827823.7 2020-08-17
CN202010827823 2020-08-17
CN202011375388.5A CN114157517A (en) 2020-08-17 2020-11-30 Interface, data processing method, device and network equipment
CN202011375388.5 2020-11-30

Publications (1)

Publication Number Publication Date
WO2022037090A1 true WO2022037090A1 (en) 2022-02-24

Family

ID=80322546

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/087110 WO2022037090A1 (en) 2020-08-17 2021-04-14 Interface, data processing method and apparatus, and network device

Country Status (1)

Country Link
WO (1) WO2022037090A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103875205A (en) * 2013-09-13 2014-06-18 华为技术有限公司 Data transmission method and device
US20160241462A1 (en) * 2013-11-08 2016-08-18 Huawei Technologies Co.,Ltd. Data distribution method, data aggregation method, and related apparatuses
US20180167160A1 (en) * 2016-12-13 2018-06-14 Ciena Corporation Flexible ethernet enhanced forward error correction
CN109698732A (en) * 2017-10-23 2019-04-30 华为技术有限公司 The method and apparatus for transmitting data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103875205A (en) * 2013-09-13 2014-06-18 华为技术有限公司 Data transmission method and device
US20160241462A1 (en) * 2013-11-08 2016-08-18 Huawei Technologies Co.,Ltd. Data distribution method, data aggregation method, and related apparatuses
US20180167160A1 (en) * 2016-12-13 2018-06-14 Ciena Corporation Flexible ethernet enhanced forward error correction
CN109698732A (en) * 2017-10-23 2019-04-30 华为技术有限公司 The method and apparatus for transmitting data

Similar Documents

Publication Publication Date Title
US11722337B2 (en) Data transmission method and apparatus
CN111788794B (en) Method and apparatus for configuring flexible Ethernet nodes
WO2019085816A1 (en) Service data transmission method and apparatus
US11412074B2 (en) Method and device for transparently transmitting service frequency
EP3806381A1 (en) Adjustment method for phy in flexe group, related equipment and storage medium
CN113972997A (en) Method and equipment for transmitting data
US11245470B2 (en) Method, device, and system for transmitting data
KR102450095B1 (en) Data transmission method, transmission device, and reception device
WO2019100982A1 (en) Data transmission method and device
CN113330696A (en) CPRI data block transmission method and device
WO2022037090A1 (en) Interface, data processing method and apparatus, and network device
WO2023109424A1 (en) Data transmission method and related device
CN114157517A (en) Interface, data processing method, device and network equipment
WO2020029892A1 (en) Method for receiving code block stream, method for sending code block stream and communication apparatus
WO2023141777A1 (en) Communication method and network device
WO2023116284A1 (en) Slot negotiation and device for fine-grained service in flexible ethernet (flexe)
WO2023083175A1 (en) Packet transmission method and communication apparatus
WO2024002188A1 (en) Method for flexible ethernet, and network device and storage medium
WO2023143577A1 (en) Method, apparatus and system for processing data frame in optical transport network
WO2022083473A1 (en) Data transmission method and apparatus related thereto
WO2023138390A1 (en) Timeslot allocation method, network device, and system
WO2021027749A1 (en) Method and apparatus for transmitting service data
CN113824525A (en) Resource allocation method and device and readable storage medium
US9350563B2 (en) Procedure, apparatus, and computer program for reducing a probability of fragmentation when supporting virtual concatenation (VCAT) services
WO2019023824A1 (en) Method and device for bit block stream processing, rate matching and exchange

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21857191

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21857191

Country of ref document: EP

Kind code of ref document: A1