CPC H04L 12/66 (2013.01) [H04L 12/462 (2013.01); H04L 41/0226 (2013.01); H04L 47/41 (2013.01); H04L 69/324 (2013.01); H04L 2001/0093 (2013.01); Y02D 30/50 (2020.08)] | 15 Claims |
1. A data transmission method, applied to a processor and a transmitter of a device, the method is performed in an Ethernet physical interface of the device, and the Ethernet physical interface comprises a media access control (MAC) layer and a physical layer, and the method comprising:
allocating, by the processor, according to a bandwidth required by MAC layer data and a bandwidth of a logical channel included in a physical coding sublayer (PCS) of the physical layer, one or multiple logical channels included in the PCS of the physical layer,
wherein the one or multiple logical channels is used to carry the MAC layer data, and
wherein the logical channels included in the PCS of the physical layer are time division multiplexed and have a same fixed bandwidth;
encoding, by the processor, the MAC layer data to generate physical layer data; and
sending, by the transmitter, over the one or multiple logical channels included in the PCS of the physical layer, the physical layer data and indication information to a receiving device, wherein the indication information indicates a relationship between the MAC layer data and the one or multiple logical channels included in the PCS of the physical layer, the indication information comprises a logical port identifier (LPID).
|