A data transmission apparatus, method and device

By converting serial data into MAC frame data and proprietary protocol data blocks through a data transmission device, the problem of long-distance transmission of 100 Mbps Ethernet is solved, and efficient bandwidth utilization is achieved.

CN115801907BActive Publication Date: 2026-02-24STATE GRID CORPORATION OF CHINA +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211366649.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-01
Publication Date
2026-02-24
Estimated Expiration
2042-11-01

AI Technical Summary

Technical Problem

Existing technologies cannot directly transmit 100 Mbps Ethernet over long distances, resulting in wasted bandwidth and low transmission efficiency.

Method used

The data transmission device includes an Ethernet interface unit, a protocol frame processing unit, and a proprietary protocol interface unit. It converts serial data into MAC frame data, proprietary protocol data blocks, and then back into serial data, enabling long-distance transmission directly using existing links.

Benefits of technology

It enables long-distance transmission of 100 Mbps Ethernet, reduces bandwidth waste, and improves transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115801907B_ABST
    Figure CN115801907B_ABST
Patent Text Reader

Abstract

The application discloses a data transmission device, method and equipment, relates to the technical field of data transmission, and the data transmission device comprises an Ethernet interface unit, a protocol frame processing unit and a private protocol interface unit. The Ethernet interface unit is used for converting first serial data into first media access control (MAC) frame data when the first serial data transmitted by an optical fiber is received, and transmitting the first MAC frame data to the protocol frame processing unit. The protocol frame processing unit is used for converting the first MAC frame data into a first private protocol data block when the first MAC frame data transmitted by the Ethernet interface unit is received, and transmitting the first private protocol data block to the private protocol interface unit. The private protocol interface unit is used for converting the first private protocol data block into second serial data when the first private protocol data block transmitted by the protocol frame processing unit is received, and transmitting the second serial data to the optical fiber.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data transmission, and in particular to a data transmission device, method and equipment. BACKGROUND

[0002] At present, with the rapid development of Internet technology, Ethernet has become a mature, cost-effective and widely used LAN technology due to its low price, stability, reliability, fast transmission speed and long transmission distance. With the development of the network, the transmission standards of Ethernet include: standard Ethernet (10 Mbit / s), 100 Mbps Ethernet (100 Mbit / s), 1000 Mbps Ethernet (1000 Mbit / s), 10 Gbit / s Ethernet (10 Gbit / s) and 100 Gbit / s Ethernet (100 Gbit / s). In the existing use scenario, in order to realize long-distance transmission of Ethernet, it is necessary to convert the Ethernet protocol into an optical transport network (OTN) protocol, thereby obtaining end-to-end monitoring and management capabilities.

[0003] In the above method, the OTN-carrying Ethernet is mainly the transmission of 1000 Mbps Ethernet, 10 Gbit / s Ethernet and 100 Gbit / s Ethernet. When long-distance transmission of 100 Mbps Ethernet is required, the 100 Mbps Ethernet needs to be aggregated into a service above 1000 Mbps Ethernet, and cannot be directly used for long-distance transmission of Ethernet using the existing data transmission link. In addition, the aggregation process also causes problems such as waste of bandwidth, thereby reducing the efficiency of data transmission through Ethernet. SUMMARY

[0004] The present application provides a data transmission device, method and equipment for directly transmitting 100 Mbps Ethernet over a long distance, reducing bandwidth waste and improving the efficiency of data transmission through Ethernet.

[0005] To achieve the above purpose, the present application adopts the following technical solutions:

[0006] In a first aspect, a data transmission device is provided, which comprises an Ethernet interface unit, a protocol frame processing unit and a private protocol interface unit, the protocol frame processing unit being connected with the Ethernet interface unit and the private protocol interface unit respectively; the Ethernet interface unit is configured to, when receiving first serial data transmitted by an optical fiber, convert the first serial data into first media access control (MAC) frame data, and transmit the first MAC frame data to the protocol frame processing unit; the protocol frame processing unit is configured to, when receiving the first MAC frame data transmitted by the Ethernet interface unit, convert the first MAC frame data into first private protocol data blocks, and transmit the first private protocol data blocks to the private protocol interface unit; the private protocol interface unit is configured to, when receiving the first private protocol data blocks transmitted by the protocol frame processing unit, convert the first private protocol data blocks into second serial data, and transmit the second serial data by the optical fiber.

[0007] In a possible implementation, the Ethernet interface unit comprises a first receiving unit and a MAC module; the first receiving unit is configured to, when receiving the first serial data, convert the first serial data into decoded data, and transmit the decoded data to the MAC module; the MAC module is configured to, when receiving the decoded data, convert the decoded data into the first MAC frame data, and transmit the first MAC frame data to the protocol frame processing unit.

[0008] In a possible implementation, the first receiving unit comprises a first deserializing module and a decoding module; the first deserializing module is configured to, when receiving the first serial data, convert the first serial data into first parallel data, and transmit the first parallel data to the decoding module; the decoding module is configured to, when receiving the first parallel data, decode the first parallel data to obtain decoded data, and transmit the decoded data to the MAC module.

[0009] In a possible implementation, the protocol frame processing unit comprises a MAC frame buffer module, a MAC frame format conversion module and a private protocol framing module; the MAC frame buffer module is configured to buffer and transmit the first MAC frame data; the MAC frame format conversion module is configured to, when receiving the first MAC frame data transmitted by the MAC frame buffer module, add header data, frame length data and padding data on the first MAC frame data to obtain processed first MAC frame data, perform fixed-length slicing processing on the processed first MAC frame data to obtain first fixed-length data blocks, and transmit the first fixed-length data blocks to the private protocol framing module; the private protocol framing module is configured to, when receiving the first fixed-length data blocks, add a function field on the first fixed-length data blocks to obtain first private protocol data blocks, and transmit the first private protocol data blocks to the private protocol interface unit.

[0010] In one possible implementation, the private protocol interface unit includes: a first transmitting unit; the first transmitting unit is configured to add scrambling code to the first private protocol data block when it receives the first private protocol data block transmitted by the protocol frame processing unit, convert the scrambling first private protocol data block into second serial data, and transmit the second serial data to the optical fiber.

[0011] In one possible implementation, the first transmitting unit includes a scrambling module and a first serialization module; the scrambling module is used to add scrambling code to the first private protocol data block when it receives the first private protocol data block transmitted by the protocol frame processing unit to obtain a first private protocol data frame, and transmit the first private protocol data frame to the first serialization module; the first serialization module is used to convert the first private protocol data frame into second serial data when it receives the first private protocol data frame, and transmit the second serial data to the optical fiber.

[0012] Secondly, a data transmission apparatus is provided, comprising: an Ethernet interface unit, a protocol frame processing unit, and a proprietary protocol interface unit. The protocol frame processing unit is connected to both the Ethernet interface unit and the proprietary protocol interface unit. The proprietary protocol interface unit is further configured to, upon receiving third serial data transmitted via optical fiber, convert the third serial data into a second proprietary protocol data block and transmit the second proprietary protocol data block to the protocol frame processing unit. The protocol frame processing unit is further configured to, upon receiving the second proprietary protocol data block transmitted by the proprietary protocol interface unit, convert the second proprietary protocol data block into second MAC frame data and transmit the second MAC frame data to the Ethernet interface unit. The Ethernet interface unit is further configured to, upon receiving the second MAC frame data transmitted by the protocol frame processing unit, convert the second MAC frame data into fourth serial data and transmit the fourth serial data to the optical fiber.

[0013] In one possible implementation, the Ethernet interface unit includes a second transmitting unit and a MAC module; the second transmitting unit is used to convert the data to be encoded into fourth serial data and transmit the fourth serial data to the optical fiber when it receives the data to be encoded transmitted by the MAC module; the MAC module is used to convert the second MAC frame data into data to be encoded and transmit the data to be encoded to the second transmitting unit when it receives the second MAC frame data transmitted by the protocol frame processing unit.

[0014] In one possible implementation, the second transmitting unit includes: an encoding module and a second serialization module; the encoding module is used to encode the data to be encoded when it receives the data to be encoded transmitted by the MAC module to obtain encoded data, and transmit the encoded data to the second serialization module; the second serialization module is used to convert the encoded data into fourth serial data when it receives the encoded data, and transmit the fourth serial data to the optical fiber.

[0015] In one possible implementation, the protocol frame processing unit includes: a MAC frame buffer module, a private protocol frame parsing module, and a MAC frame data extraction module; the MAC frame buffer module is used to buffer and transmit second MAC frame data; the private protocol frame parsing module is used to extract a second fixed-length data block from the second private protocol data block when it receives the second private protocol data block transmitted by the private protocol interface unit, and transmit the second fixed-length data block to the MAC frame data extraction module; the MAC frame data extraction module is used to extract the second MAC frame data from the second fixed-length data block when it receives the second fixed-length data block, and transmit the second MAC frame data to the MAC frame buffer module.

[0016] In one possible implementation, the private protocol interface unit includes: a second receiving unit; the second receiving unit is used to convert the third serial data transmitted by optical fiber into second parallel data when it receives the third serial data, and to perform descrambling processing on the second parallel data to obtain a second private protocol data block, and to transmit the second private protocol data block to the protocol frame processing unit.

[0017] In one possible implementation, the second receiving unit includes: a second deserialization module, a frame positioning module, and a descrambling module; the second deserialization module is used to convert the third serial data transmitted via optical fiber into second parallel data upon receiving the third serial data, and transmit the second parallel data to the frame positioning module; the frame positioning module is used to perform frame positioning processing on the second parallel data upon receiving the second parallel data to obtain a second private protocol data frame, and transmit the second private protocol data frame to the descrambling module; the descrambling module is used to perform descrambling processing on the second private protocol data frame upon receiving the second private protocol data frame to obtain a second private protocol data block, and transmit the second private protocol data block to the protocol frame processing unit.

[0018] Thirdly, a data transmission method is provided, which is applied to a data transmission device. The data transmission method includes: upon receiving first serial data transmitted through an optical fiber, converting the first serial data into first MAC frame data; converting the first MAC frame data into a first private protocol data block; converting the first private protocol data block into second serial data, and transmitting the second serial data to the optical fiber.

[0019] In one possible implementation, upon receiving the first serial data transmitted via optical fiber, converting the first serial data into first MAC frame data includes: upon receiving the first serial data transmitted via optical fiber, converting the first serial data into decoded data, and converting the decoded data into first MAC frame data.

[0020] In one possible implementation, upon receiving the first serial data transmitted via optical fiber, converting the first serial data into decoded data includes: upon receiving the first serial data transmitted via optical fiber, converting the first serial data into first parallel data, and converting the first parallel data into decoded data.

[0021] In one possible implementation, converting the first MAC frame data into a first private protocol data block includes: adding frame header data, frame length data, and padding data to the first MAC frame data to obtain processed first MAC frame data; performing fixed-length slicing on the processed first MAC frame data to obtain a first fixed-length data block; and adding a function field to the first fixed-length data block to obtain the first private protocol data block.

[0022] In one possible implementation, converting the first private protocol data block into second serial data includes: adding scrambling to the first private protocol data block to obtain a first private protocol data frame, and converting the first private protocol data frame into second serial data.

[0023] Fourthly, a data transmission method is provided, which is applied to a data transmission device. The data transmission method includes: upon receiving third serial data transmitted via optical fiber, converting the third serial data into a second private protocol data block; converting the second private protocol data block into second MAC frame data; converting the second MAC frame data into fourth serial data, and transmitting the fourth serial data to the optical fiber.

[0024] In one possible implementation, converting the second MAC frame data into fourth serial data includes: converting the second MAC frame data into data to be encoded, and converting the data to be encoded into fourth serial data.

[0025] In one possible implementation, converting the data to be encoded into fourth serial data includes: encoding the data to be encoded to obtain encoded data, and converting the encoded data into fourth serial data.

[0026] In one possible implementation, converting the second private protocol data block into second MAC frame data includes: extracting a second fixed-length data block from the second private protocol data block, and extracting second MAC frame data from the second fixed-length data block.

[0027] In one possible implementation, converting the third serial data into a second private protocol data block includes: converting the third serial data into second parallel data, and performing frame positioning processing on the second parallel data to obtain a second private protocol data frame; and performing descrambling processing on the second private protocol data frame to obtain a second private protocol data block.

[0028] Fifthly, a data transmission device is provided, comprising: a processor and a memory; wherein the memory is used to store one or more programs, the one or more programs including computer-executable instructions, and when the data transmission device is running, the processor executes the computer-executable instructions stored in the memory to cause the data transmission device to perform a data transmission method of the third or fourth aspect.

[0029] In a sixth aspect, a computer-readable storage medium is provided for storing one or more programs, the one or more programs including instructions that, when executed by a computer, cause the computer to perform a data transmission method of the third or fourth aspect.

[0030] This application provides a data transmission apparatus, method, and device for long-distance transmission of Ethernet data. The data transmission apparatus includes an Ethernet interface unit, a protocol frame processing unit, and a proprietary protocol interface unit. Specifically, when the Ethernet interface unit receives first serial data transmitted via optical fiber, it can convert the first serial data into first MAC frame data and transmit the first MAC frame data to the protocol frame processing unit. Further, the protocol frame processing unit converts the first MAC frame data into a first proprietary protocol data block and transmits the first proprietary protocol data block to the proprietary protocol interface unit. The proprietary protocol interface unit then converts the first proprietary protocol data block into second serial data and transmits it into the optical fiber. Using this method, when long-distance transmission of 100 Mbps Ethernet is required, it is not necessary to aggregate the 100 Mbps Ethernet into gigabit Ethernet or higher services for transmission. Existing data transmission links can be directly utilized for long-distance transmission of 100 Mbps Ethernet, thereby reducing bandwidth waste and improving the efficiency of data transmission via Ethernet. Attached Figure Description

[0031] Figure 1 A schematic diagram of a data transmission device structure provided for embodiments of this application. Figure 1 ;

[0032] Figure 2 A schematic diagram illustrating the application of a data transmission device according to an embodiment of this application;

[0033] Figure 3 A schematic diagram of a data transmission device structure provided for embodiments of this application. Figure 2 ;

[0034] Figure 4 A schematic diagram of a data transmission device structure provided for embodiments of this application. Figure 3 ;

[0035] Figure 5 A schematic diagram of a data transmission device structure provided for embodiments of this application. Figure 4 ;

[0036] Figure 6 A data processing illustration provided for an embodiment of this application Figure 1 ;

[0037] Figure 7 A data processing illustration provided for an embodiment of this application Figure 2 ;

[0038] Figure 8 A schematic diagram of a data transmission device structure provided for embodiments of this application. Figure 5 ;

[0039] Figure 9 A schematic diagram of a data transmission device structure provided for embodiments of this application. Figure 6 ;

[0040] Figure 10 A schematic diagram of a data transmission device structure provided for embodiments of this application. Figure 7

[0041] Figure 11 A schematic diagram of a data transmission device structure provided for embodiments of this application. Figure 8 ;

[0042] Figure 12 A schematic diagram of a data transmission device structure provided for embodiments of this application. Figure 9 ;

[0043] Figure 13 A data processing illustration provided for an embodiment of this application Figure 3 ;

[0044] Figure 14 A schematic diagram of a data transmission device structure provided for embodiments of this application. Figure 10 ;

[0045] Figure 15 A schematic diagram of a data transmission device structure provided for embodiments of this application. Figure 10 one;

[0046] Figure 16 A schematic flowchart of a data transmission method provided for embodiments of this application. Figure 1 ;

[0047] Figure 17 A schematic flowchart of a data transmission method provided for embodiments of this application. Figure 2 ;

[0048] Figure 18 A schematic flowchart of a data transmission method provided for embodiments of this application. Figure 3 ;

[0049] Figure 19 A schematic flowchart of a data transmission method provided for embodiments of this application. Figure 4 ;

[0050] Figure 20 A schematic flowchart of a data transmission method provided for embodiments of this application. Figure 5 ;

[0051] Figure 21 A schematic flowchart of a data transmission method provided for embodiments of this application. Figure 6 ;

[0052] Figure 22 A schematic flowchart of a data transmission method provided for embodiments of this application. Figure 7 ;

[0053] Figure 23 A schematic flowchart of a data transmission method provided for embodiments of this application. Figure 8 ;

[0054] Figure 24 A schematic flowchart of a data transmission method provided for embodiments of this application. Figure 9 ;

[0055] Figure 25 A schematic flowchart of a data transmission method provided for embodiments of this application. Figure 10 ;

[0056] Figure 26 This is a schematic diagram of a data transmission device structure provided for an embodiment of this application. Detailed Implementation

[0057] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.

[0058] In the description of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. "And / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. Furthermore, "at least one" and "multiple" refer to two or more. The terms "first," "second," etc., do not limit the quantity or order of execution, and "first," "second," etc., do not necessarily imply differences.

[0059] Currently, with the rapid development of internet technology, Ethernet, as the most commonly used communication protocol standard in existing local area networks (LANs), offers high cost-effectiveness due to its low price, stability, reliability, high transmission speed, long transmission distance, and mature technology. However, with technological advancements and the diverse needs of various application scenarios, various Ethernet standards have emerged, including standard Ethernet (10 Mbit / s), 100 Mbit / s, Gigabit Ethernet (1000 Mbit / s), 10 Gigabit Ethernet (10 Gbit / s), and 100 Gigabit Ethernet (100 Gbit / s). In practical applications, to achieve long-distance Ethernet transmission, it is typically necessary to convert the Ethernet protocol to the OTN protocol to obtain end-to-end monitoring and management capabilities.

[0060] However, OTN currently primarily supports gigabit Ethernet and higher speed services, and cannot be directly converted to support 100 Mbps Ethernet. Therefore, when using 100 Mbps Ethernet for long-distance transmission, it is necessary to aggregate the 100 Mbps Ethernet into gigabit or higher speed Ethernet services, rather than directly utilizing existing data transmission links for long-distance Ethernet transmission, resulting in bandwidth waste during the aggregation process.

[0061] This application provides a data transmission device. Figure 1 A schematic diagram of one structure of the data transmission device is shown. For example... Figure 1 As shown, the data transmission device 100 includes: an Ethernet interface unit 110, a protocol frame processing unit 120, and a private protocol interface unit 130.

[0062] The protocol frame processing unit 120 is connected to the Ethernet interface unit 110 and the private protocol interface unit 130, respectively.

[0063] Specifically, the Ethernet interface unit 110 is used to convert the first serial data received from the optical fiber transmission into first Media Access Control (MAC) frame data.

[0064] Specifically, the protocol frame processing unit 120 is used to convert the first MAC frame data into a first private protocol data block when it receives the first MAC frame data.

[0065] Specifically, the private protocol interface unit 130 is used to convert the first private protocol data block into second serial data when it receives the first private protocol data block transmitted by the protocol frame processing unit 120.

[0066] It should be noted that existing traditional 100Mbps Ethernet transmission devices (i.e., traditional 100Mbps transmission devices) only include an Ethernet-side interface and transmit directly according to the Ethernet protocol standard. The signal transmission device provided in this application adds a proprietary protocol interface unit to the Ethernet-side interface, replacing the original traditional 100Mbps Ethernet transmission device through point-to-point configuration, enabling long-distance Ethernet transmission directly using existing data transmission links. For example... Figure 2 As shown, the 100 Mbps Ethernet long-distance transmission device provided in this application embodiment can connect to a traditional 100 Mbps transmission device and complete the protocol conversion based on the traditional 100 Mbps Ethernet protocol without increasing the additional bandwidth.

[0067] Optionally, in one implementation, such as Figure 3 As shown, the Ethernet interface unit 110 includes a first receiving unit 111 and a MAC module 112, with the MAC module 112 connected to the first receiving unit 111.

[0068] Specifically, the first receiving unit 111 is used to convert the first serial data into decoded data when it receives the first serial data, and transmit the decoded data to the MAC module 112.

[0069] Specifically, the MAC module 112 is used to convert the received decoded data into first MAC frame data and transmit the first MAC frame data to the protocol frame processing unit 120.

[0070] Optionally, in one implementation, such as Figure 4 As shown, the first receiving unit 111 includes a first deserialization module 1111 and a decoding module 1112.

[0071] The decoding module 1112 is connected to the first deserialization module 1111 and the MAC module 112, respectively.

[0072] Specifically, the first deserialization module 1111 is used to convert the first serial data transmitted through the optical fiber into first parallel data when it receives the first serial data, and transmit the first parallel data to the decoding module 1112.

[0073] Specifically, the decoding module 1112 is used to decode the first parallel data when it receives the first parallel data to obtain decoded data, and then transmit the decoded data to the MAC module 112.

[0074] Optionally, the decoding module 1112 can be a 4B / 5B decoding module. When the first parallel data is received, the first parallel data is decoded in 4B / 5B to obtain the decoded data, and the decoded data is transmitted to the MAC module 112.

[0075] Optionally, in one implementation, such asFigure 5 As shown, the protocol frame processing unit 120 includes a MAC frame buffer module 121, a MAC frame format conversion module 122, and a private protocol framing module 123.

[0076] The MAC frame format conversion module 122 is connected to the MAC frame buffer module 121 and the private protocol framing module 123, respectively.

[0077] Specifically, the MAC frame buffer module 121 is used to buffer the first MAC frame data and transmit the first MAC frame data.

[0078] It is understandable that when the MAC frame buffer module 121 receives the first MAC frame data transmitted by the Ethernet interface unit 110, it transmits the first MAC frame data to the MAC frame format conversion module 122.

[0079] It should be noted that in the signal transmission device provided in this application embodiment, since the protocol formats of the Ethernet interface unit 110 and the protocol frame processing unit 120 are different, there is an instantaneous rate difference in the data during transmission. The MAC frame buffer module 121 will perform data buffering as a buffer for the data rate difference between the two sides to complete the matching of the transmission rates of the two sides.

[0080] It is understandable that although its proprietary protocol has sufficient bandwidth to transmit all valid MAC frame data for 100 Mbps Ethernet, each data frame in the fixed-length data block has a fixed-length function word that needs to be processed. When the protocol is processing the function field, the input valid MAC frame data will be stored in the data buffer to wait. After the protocol finishes processing the function field, it will retrieve the valid MAC frame data from the data buffer and continue processing.

[0081] Specifically, the MAC frame format conversion module 122 is used to add frame header data, frame length data and padding data to the first MAC frame data when it receives the first MAC frame data transmitted by the MAC frame buffer module 121, to obtain the processed first MAC frame data, and to perform fixed-length slicing on the processed first MAC frame data to obtain the first fixed-length data block, and to transmit the first fixed-length data block to the private protocol framing module 123.

[0082] It should be noted that the frame length data refers to the length value of the first MAC frame data.

[0083] As one possible implementation, such as Figure 6As shown, assume the first MAC frame data includes standard Ethernet MAC frame data 1 (hereinafter referred to as MAC frame data 1) and standard Ethernet MAC frame data 2 (hereinafter referred to as MAC frame data 2), where MAC frame data 1 is 64 bytes long and MAC frame data 2 is 585 bytes long. Assuming the fixed-length data block size is set to 220 bytes, since MAC frame data 1 is 64 bytes long, by adding a 4-byte frame header and 152 bytes of padding data, the 64-byte MAC frame data can be converted into a 220-byte fixed-length data block. Simultaneously, since MAC frame data is 585 bytes long, by adding a 4-byte frame header and 71 bytes of padding data, the 585-byte MAC frame data can be converted into three 220-byte fixed-length data blocks, resulting in four fixed-length data blocks (i.e., fixed-length data block 1 to fixed-length data block 4). In this embodiment, if there is no MAC frame data, then all data is padding data, totaling 220 bytes, resulting in a 220-byte fixed-length data block (i.e., the padding data length is 220 bytes). In this embodiment of the application, each 255-byte private protocol data block includes 220 bytes of MAC frame data. Therefore, the MAC data frame bandwidth in this private protocol is approximately 100M*220 / 255, which is greater than the actual MAC data frame bandwidth transmission requirement and meets the design requirements of the data transmission device.

[0084] It should be noted that the first fixed-length data block is obtained by performing fixed-length slicing on the processed first MAC frame data, and the resulting first fixed-length data block is a plurality of first fixed-length data blocks.

[0085] It should be noted that because 100Mbps Ethernet MAC data frames undergo 4B / 5B encoding during Ethernet transmission, this encoding structure results in the actual transmitted data accounting for at most 80% of the total bandwidth, thus adding additional bandwidth overhead. The proprietary protocol mechanism of the signal transmission device provided in this application extracts the actual data during protocol processing, then slices and fills it into fixed-length data blocks (i.e., first fixed-length data blocks). Simultaneously, it ensures that each first fixed-length data block has a fixed-length overhead field and an error correction field. The fixed-length overhead field provides guaranteed monitoring and management capabilities for the data block, while the error correction field ensures that the data block has a certain error correction capability, improving anti-interference capabilities and thus increasing transmission distance.

[0086] Specifically, when the private protocol framing module 123 receives the first fixed-length data block transmitted by the MAC frame format conversion module 122, it adds a function field to the first fixed-length data block to obtain the first private protocol data block, and transmits the first private protocol data block to the private protocol interface unit 130.

[0087] Optionally, the functional fields include cost fields and error correction fields.

[0088] It is understandable that there are multiple first fixed-length data blocks and multiple first private protocol data blocks.

[0089] It should be noted that the private protocol framing module 123 can perform framing processing of the first fixed-length data block, that is, add private protocol function fields to the first fixed-length data block. For example... Figure 7 As shown, in the first private protocol data block of 255 bytes, 220 bytes are the first fixed-length data block for transmission, and the remaining 35 bytes are the functional byte block.

[0090] It is understandable that by adding extra fields to the proprietary protocol, the data bandwidth during transmission will remain consistent with the actual Ethernet transmission bandwidth, and there is no need to increase the rate requirements of the transmission link.

[0091] One possible implementation is to add a 6-byte private protocol frame delimiter, a 13-byte private protocol overhead field, and a 16-byte private protocol error correction code, totaling 35 bytes, to the first fixed-length data block, forming a standard 255-byte fixed-length private protocol data block. Of course, in this embodiment, those skilled in the art can modify the length of different fields in the functional byte block according to actual needs. This embodiment does not impose specific limitations; it is only necessary to ensure that the functional byte block does not exceed 35 bytes and can complete subsequent frame delimitation and data parsing.

[0092] It should be noted that traditional 100Mbps MAC frame data is in 25M*4bit data format. Since MAC data frames are converted from 4B / 5B format, the actual data bandwidth is at most 80%*100M. Furthermore, due to the bandwidth occupied by fields such as preamble and frame interval, the actual data bandwidth will be less than 80M.

[0093] In this embodiment, the private protocol is defined as follows: each private protocol data frame is a fixed 255-byte protocol data block, containing 220 bytes of actual data fields and 35 bytes of functional fields. In 100Mbps Ethernet transmission, transmitting the entire 255-byte protocol data block requires a bandwidth of 1 / 255*100M per byte. In this embodiment, the actual data field defined in the protocol data block is 220 bytes, so the total data bandwidth is 220 / 255*100M > 80M. Therefore, the private protocol described in this embodiment has sufficient bandwidth to transmit all valid 100Mbps Ethernet data. Since all bandwidth in the fixed-length data block of the private protocol data frame is used to transmit valid data, it will definitely be greater than the actual data bandwidth. The MAC frame format conversion module processes the input data; if there is normal data, it fills in normal data; if the link is idle, it fills in invalid data for redundant fields and transmits redundant invalid data. In this embodiment, maintenance and management functions are enhanced by reserving functional fields (including maintenance and management fields) in the frame data structure protocol. This means that a guaranteed fixed bandwidth is available for transmitting maintenance and management information, which can improve the maintenance and management capabilities of the protocol. Specific maintenance and management fields can be customized according to actual needs, and are not specifically limited in this embodiment.

[0094] Optionally, in one implementation, such as Figure 8 As shown, the private protocol interface unit 130 includes a first sending unit 131.

[0095] Specifically, the first transmitting unit 131 is used to add scrambling code to the first private protocol data block when it receives the first private protocol data block transmitted by the protocol frame processing unit 120, and convert the first private protocol data block after adding scrambling code into second serial data, and transmit the second serial data to the optical fiber.

[0096] It can be understood that the first transmitting unit 131 is used to convert the first private protocol data block into second serial data and transmit the second serial data to the optical fiber when it receives the first private protocol data block transmitted by the protocol frame processing unit 120.

[0097] Optionally, in one implementation, such as Figure 9 As shown, the first transmitting unit 131 includes a scrambling module 1311 and a first serialization module 1312.

[0098] Specifically, the scrambling module 1311 is used to add scrambling code to the first private protocol data block when it receives the first private protocol data block transmitted by the protocol frame processing unit 120, to obtain the first private protocol data frame, and to transmit the first private protocol data frame to the first serialization module 1312.

[0099] It should be noted that this application achieves the requirement of photoelectric balance by adding scrambling code to the first private protocol data block. Moreover, after the protocol frame processing unit 120 adds additional fields to the MAC frame data through the MAC frame format conversion module 122, the data bandwidth during transmission will be consistent with the actual Ethernet transmission bandwidth. Therefore, there is no need to add additional transmission link rate requirements.

[0100] It is understandable that since there are multiple first fixed-length data blocks and multiple first private protocol data blocks, there are also multiple first private protocol data frames.

[0101] Specifically, the first serialization module 1312 is used to convert the first private protocol data frame into second serial data when it receives the first private protocol data frame, and transmit the second serial data to the optical fiber.

[0102] It should be noted that, since the private protocol interface unit 130 does not contain an encoding module, in this embodiment of the application, scrambling is added to suppress the occurrence of long 0s and long 1s in the data signal, so as to facilitate the extraction of the clock signal from the data signal.

[0103] It can be understood that the fourth serial data is obtained by the first serial data being processed sequentially by the first deserialization module 1111, the decoding module 1112, the MAC module 112, the MAC frame buffer module 121, the MAC frame format conversion module 122, the private protocol framing module 123, the scrambling module 1311, and the first serialization module.

[0104] Specifically, the data transmission device provided in this application embodiment can be connected to a traditional transmission device. During transmission, the Ethernet interface unit 110 of a data transmission device is connected to the data sending end, and another data transmission device is connected in reverse at the data receiving end.

[0105] Optionally, the data transmitting end is connected to the Ethernet interface unit 110 of a data transmission device, and the data receiving end is connected to the Ethernet interface unit 110 of another data transmission device. The two data transmission devices are connected by optical fiber.

[0106] This application provides a data transmission apparatus, which includes an Ethernet interface unit, a protocol frame processing unit, and a proprietary protocol interface unit. Specifically, when the Ethernet interface unit receives first serial data transmitted via optical fiber, it can convert the first serial data into first MAC frame data and transmit the first MAC frame data to the protocol frame processing unit. Further, the protocol frame processing unit converts the first MAC frame data into a first proprietary protocol data block and transmits the first proprietary protocol data block to the proprietary protocol interface unit. This allows the proprietary protocol interface unit to convert the first proprietary protocol data block into second serial data and transmit the second serial data into the optical fiber. Using this method, when long-distance transmission of 100 Mbps Ethernet is required, it is not necessary to aggregate the 100 Mbps Ethernet into gigabit Ethernet or higher services for transmission. Existing data transmission links can be directly utilized for long-distance transmission of 100 Mbps Ethernet, thereby reducing bandwidth waste and improving the efficiency of data transmission via Ethernet.

[0107] This application provides a data transmission device. Figure 1 A schematic diagram of one structure of the data transmission device is shown. For example... Figure 1 As shown, the data transmission device 100 includes: an Ethernet interface unit 110, a protocol frame processing unit 120, and a private protocol interface unit 130.

[0108] The protocol frame processing unit 120 is connected to the Ethernet interface unit 110 and the private protocol interface unit 130, respectively.

[0109] Specifically, when the Ethernet interface unit 110 receives the second MAC frame data transmitted by the protocol frame processing unit 120, it converts the second MAC frame data into fourth serial data.

[0110] Specifically, the protocol frame processing unit 120 is used to convert the second private protocol data block into second MAC frame data when it receives the second private protocol data block transmitted by the private protocol interface unit 130.

[0111] Specifically, the private protocol interface unit 130 is used to convert the third serial data transmitted via optical fiber into a second private protocol data block when it receives the third serial data.

[0112] It should be noted that existing traditional 100Mbps Ethernet transmission devices (i.e., traditional 100Mbps transmission devices) only include an Ethernet-side interface and transmit directly according to the Ethernet protocol standard. The signal transmission device provided in this application adds a proprietary protocol interface unit to the Ethernet-side interface, replacing the original traditional 100Mbps Ethernet transmission device through point-to-point configuration, enabling long-distance Ethernet transmission directly using existing data transmission links. For example... Figure 2As shown, the 100 Mbps Ethernet long-distance transmission device provided in this application embodiment can connect to a traditional 100 Mbps transmission device and complete the protocol conversion based on the traditional 100 Mbps Ethernet protocol without increasing the additional bandwidth.

[0113] Optionally, in one implementation, such as Figure 10 As shown, the Ethernet interface unit 110 includes a MAC module 112 and a second transmitting unit 113, with the MAC module 112 connected to the second transmitting unit 113.

[0114] Specifically, the second transmitting unit 113 is used to convert the data to be encoded into fourth serial data when it receives the data to be encoded transmitted by the MAC module 112, and transmit the fourth serial data to the optical fiber.

[0115] It should be noted that the main function of the second transmitting unit 113 is to complete the conversion of MAC frame data into serial data stream, which is the inverse operation of the first receiving unit 111.

[0116] Specifically, when the MAC module 112 receives the second MAC frame data transmitted by the protocol frame processing unit 120, it converts the second MAC frame data into data to be encoded and transmits the data to be encoded to the second sending unit 113.

[0117] Optionally, in one implementation, such as Figure 11 As shown, the second transmitting unit 113 includes an encoding module 1131 and a second serialization module 1132.

[0118] The encoding module 1131 is connected to the second serialization module 1132 and the MAC module 112, respectively.

[0119] Specifically, the encoding module 1131 is used to encode the data to be encoded when it receives the data to be encoded transmitted by the MAC module 112, and then transmit the encoded data to the second serialization module 1132.

[0120] Optionally, the encoding module 1131 can be a 4B / 5B encoding module. When it receives the data to be encoded transmitted by the MAC module 112, it encodes the data to be encoded using 4B / 5B to obtain encoded data and transmits the encoded data to the optical fiber.

[0121] Optionally, the 4B / 5B encoding module and the MAC module 112 are connected via an RMII interface. The MAC module 112 converts the received MAC frame data into RMII interface data (i.e., data to be encoded) and sends it to the 4B / 5B encoding module. After the 4B / 5B encoding module completes the encoding operation, it sends the encoded data to the second serialization module 1132 for parallel-to-serial conversion to obtain serial data.

[0122] Specifically, when the second serialization module 1132 receives the encoded data, it converts the encoded data into fourth serial data and transmits the fourth serial data to the optical fiber.

[0123] Optionally, in one implementation, such as Figure 12 As shown, the protocol frame processing unit 120 includes a MAC frame buffer module 121, a private protocol frame parsing module 124, and a MAC frame data extraction module 125.

[0124] The MAC frame data extraction module 125 is connected to the MAC frame buffer module 121 and the private protocol frame parsing module 124, respectively.

[0125] Specifically, the MAC frame buffer module 121 is used to buffer the second MAC frame data and transmit the second MAC frame data.

[0126] It is understood that when the MAC frame buffer module 121 receives the second MAC frame data transmitted by the MAC frame data extraction module 125, it transmits the second MAC frame data to the Ethernet interface unit 110.

[0127] It should be noted that in the signal transmission device provided in this application embodiment, since the protocol formats of the Ethernet interface unit 110 and the protocol frame processing unit 120 are different, there is an instantaneous rate difference in the data during transmission. The MAC frame buffer module 121 will perform data buffering as a buffer for the data rate difference between the two sides to complete the matching of the transmission rates of the two sides.

[0128] Specifically, when the private protocol frame parsing module 124 receives the second private protocol data block transmitted by the private protocol interface unit 130, it extracts the second fixed-length data block from the second private protocol data block and transmits the second fixed-length data block to the MAC frame data extraction module 125.

[0129] It should be noted that, as Figure 7 As shown, the private protocol frame parsing module 124 can perform frame de-framing processing on the second private protocol data block. Specifically, the private protocol frame parsing module 124 is used for extracting the second fixed-length data block, extracting the overhead field, extracting the error correction code, and performing error correction and statistics. The extracted second fixed-length data block is then sent to the MAC frame data extraction module 125. In this embodiment, while ensuring the functional fields are maintained, different error correction and statistics algorithms can be adapted according to the actual application, and no specific limitations are made here.

[0130] Specifically, the MAC frame data extraction module 125 is used to extract the second MAC frame data from the second fixed-length data block when the second fixed-length data block is received, and transmit the second MAC to the MAC frame buffer module 121.

[0131] It should be noted that the function of the MAC frame data extraction module 125 is to extract the standard second MAC frame data from the 220-byte second fixed-length data block in the second private protocol data block and transmit it to the MAC frame buffer module 121.

[0132] One possible implementation is to search for frame header data and frame length data in the data block, and then parse the MAC frame data based on the frame length data.

[0133] It should be noted that the frame length data refers to the length value of the second MAC frame data.

[0134] Specifically, the frame header data can be preset to a fixed value; based on this, such as... Figure 13 As shown, the process of extracting the second MAC frame data is as follows: Frame header data is detected in the second fixed-length data block; frame length data is extracted from the data following the frame header data; and the subsequent data is extracted from the second fixed-length data block based on the frame length data to obtain the actual second MAC frame data. Figure 13 As shown, this includes standard Ethernet MAC frame data 1. After extracting a certain length of MAC frame data 1, the search continues with the next frame header, and another certain length of MAC frame data 2 is extracted. Simultaneously, during the frame header search, redundant data padded between frames is removed.

[0135] Optionally, in one implementation, such as Figure 14 As shown, the private protocol interface unit 130 includes a second receiving unit 132.

[0136] Specifically, the second receiving unit 132 is used to convert the third serial data transmitted through the optical fiber into second parallel data when it receives the third serial data, and to perform descrambling processing on the second parallel data to obtain a second private protocol data block, and to transmit the second private protocol data block to the protocol frame processing unit 120.

[0137] It is understood that the second receiving unit 132 is used to convert the third serial data transmitted by optical fiber into a second private protocol data block when it receives the third serial data, and transmit the second private protocol data block to the protocol frame processing unit 120.

[0138] Optionally, in one implementation, such as Figure 15 As shown, the second receiving unit 132 includes a second deserialization module 1321, a frame positioning module 1322, and a descrambling code module 1323.

[0139] The frame positioning module 1322 is connected to the second deserialization module 1321 and the descrambling code module 1323, respectively.

[0140] Specifically, the second deserialization module 1321 converts the third serial data transmitted through the optical fiber into second parallel data and transmits the second parallel data to the frame positioning module 1322.

[0141] Specifically, the frame positioning module 1322 is used to perform frame positioning processing on the second parallel data when it receives the second parallel data, to obtain the second private protocol data frame, and to transmit the second private protocol data frame to the descrambling module 1323.

[0142] Optionally, the functional field also includes a private protocol frame delimiter. The frame positioning module 1322 determines the private protocol frame header of the second private protocol data frame by searching for the private protocol frame delimiter in the second parallel data.

[0143] Specifically, the frame positioning module 1322 searches for the private protocol frame header using the private protocol frame delimiter of the second private protocol data frame, completes frame alignment, locks and synchronizes, and then sends the second private protocol data frame to the descrambling module 1323 to complete the descrambling, obtaining the descrambled second private protocol data block, thereby performing deframe processing to obtain the second private protocol fixed-length data frame. Since the received second parallel data is a fixed frame, after searching for the frame header, the frame header is searched after every 255-byte data block. After N consecutive frames, frame locking and synchronization can be considered, where N is a positive integer. In this embodiment, the size of N can be configured according to actual needs; for example, the size of N can be set to 5 to 10.

[0144] Specifically, the descrambling module 1323 is used to descramble the second private protocol data frame when it receives the second private protocol data frame to obtain the second private protocol data block, and then transmit the second private protocol data block to the protocol frame processing unit 120.

[0145] It can be understood that the third data is obtained by sequentially processing the fourth data through the second deserialization module 1321, frame positioning module 1322, descrambling module 1323, private protocol frame parsing module 124, MAC frame data extraction module 125, MAC frame buffer module 121, MAC module 112, encoding module 1131 and second serialization module 1132.

[0146] Specifically, the data transmission device provided in this application embodiment can be connected to a traditional transmission device. During transmission, the Ethernet interface unit 110 of a data transmission device is connected to the data sending end, and another data transmission device is connected in reverse at the data receiving end.

[0147] Optionally, the data transmitting end is connected to the Ethernet interface unit 110 of a data transmission device, and the data receiving end is connected to the Ethernet interface unit 110 of another data transmission device. The two data transmission devices are connected by optical fiber.

[0148] This application provides a data transmission device, which includes an Ethernet interface unit, a protocol frame processing unit, and a proprietary protocol interface unit. Specifically, when the proprietary protocol interface unit receives third serial data transmitted via optical fiber, it can convert the third serial data into a second proprietary protocol data block and transmit the second proprietary protocol data block to the protocol frame processing unit. Further, the protocol frame processing unit converts the second proprietary protocol data block into second MAC frame data and transmits the second MAC frame data to the Ethernet interface unit. This allows the Ethernet interface unit to convert the second MAC frame data into fourth serial data and transmit the fourth serial data into the optical fiber. Using this method, when long-distance transmission of 100 Mbps Ethernet is required, it is not necessary to aggregate the 100 Mbps Ethernet into gigabit Ethernet or higher services for transmission. Existing data transmission links can be directly utilized for long-distance transmission of 100 Mbps Ethernet, thereby reducing bandwidth waste and improving the efficiency of data transmission via Ethernet.

[0149] It is understood that, on the one hand, this application sequentially connects a first receiving unit, a MAC module, a MAC frame buffer module, a MAC frame format conversion module, and a proprietary protocol framing module to process the first serial data transmitted through optical fiber to obtain a first proprietary protocol data block. The first transmitting unit then adds scrambling to the first proprietary protocol data block and converts it into second serial data before transmission. On the other hand, by sequentially connecting a second receiving unit, a proprietary protocol frame parsing module, a MAC frame data extraction module, a MAC frame buffer module, and a MAC module, the application sequentially connects a second receiving unit, a third serial data transmitted through optical fiber to obtain second MAC frame data. The second transmitting unit then encodes the second MAC frame data and converts it into second passthrough data before transmission. This enables direct transmission over 100 Mbps Ethernet without first aggregating it into gigabit Ethernet or higher services, thus reducing bandwidth waste and improving the efficiency of data transmission over Ethernet. Furthermore, a proprietary protocol framing module is added to the protocol frame unit. This module adds overhead fields to the data to enhance data maintenance and management capabilities during transmission. An error correction field is also added to the data to enhance its anti-interference capability during transmission, thereby increasing transmission distance and ensuring the device's long-distance data transmission capability. Additionally, a scrambling and descrambling module is included to prevent long 0s and long 1s in the data signal, further enhancing the anti-interference capability during transmission. The following description, in conjunction with the accompanying drawings, describes a data transmission method provided by an embodiment of this application.

[0150] like Figure 16 As shown, this application embodiment proposes a data transmission method applied to a data transmission device, including S201-S203:

[0151] S201. Upon receiving the first serial data transmitted via optical fiber, convert the first serial data into first MAC frame data.

[0152] It should be noted that for a detailed description of step 201, please refer to the relevant content of the Ethernet interface unit mentioned above, which will not be repeated here.

[0153] In a design, such as Figure 17 As shown, in a data transmission method provided in this application embodiment, the steps in S201 above may specifically include the following S2011:

[0154] S2011. Upon receiving the first serial data transmitted via optical fiber, the first serial data is converted into decoded data, and the decoded data is converted into the first MAC frame data.

[0155] It should be noted that for a detailed description of step 2011, please refer to the relevant content of the first receiving unit mentioned above, and it will not be repeated here.

[0156] In a design, such as Figure 18 As shown, in a data transmission method provided in this application embodiment, the steps in S2011 above may specifically include the following S2012:

[0157] S2012. Upon receiving the first serial data transmitted via optical fiber, the first serial data is converted into first parallel data, the first parallel data is converted into decoded data, and the decoded data is converted into first MAC frame data.

[0158] Optionally, upon receiving the first parallel data, the first parallel data is decoded using 4B / 5B to obtain decoded data, and then the decoded data is transmitted.

[0159] It should be noted that for a detailed description of step 2012, please refer to the relevant content of the first deserialization module and decoding module mentioned above, which will not be repeated here.

[0160] S202, Convert the first MAC frame data into the first private protocol data block.

[0161] Optionally, the first MAC frame data needs to be cached before it is converted into the first private protocol data block.

[0162] It should be noted that for a detailed description of step 202, please refer to the relevant content of the private protocol frame processing unit mentioned above, which will not be repeated here.

[0163] In a design, such as Figure 19As shown, in a data transmission method provided in this application embodiment, the steps in S202 above may specifically include the following S2021-S2022:

[0164] S2021. Add frame header data, frame length data and padding data to the first MAC frame data to obtain the processed first MAC frame data, and perform fixed-length slicing on the processed first MAC frame data to obtain the first fixed-length data block.

[0165] It should be noted that for a detailed description of step 2021, please refer to the relevant content of the MAC frame format conversion module mentioned above, which will not be repeated here.

[0166] S2022. Add a functional field to the first fixed-length data block to obtain the first private protocol data block.

[0167] Optionally, the functional fields include overhead fields and error correction fields. It should be noted that for a detailed description of step 2021, please refer to the relevant content of the private protocol framing module mentioned above; it will not be repeated here.

[0168] It is understandable that by adding extra fields to the proprietary protocol, the data bandwidth during transmission will remain consistent with the actual Ethernet transmission bandwidth, and there is no need to increase the rate requirements of the transmission link.

[0169] S203. Convert the first private protocol data block into second serial data and transmit the second serial data to the optical fiber.

[0170] It should be noted that for a detailed description of step 203, please refer to the relevant content of the private protocol interface unit, which will not be repeated here.

[0171] In a design, such as Figure 20 As shown, in a data transmission method provided in this application embodiment, the steps in S203 above may specifically include the following S2031:

[0172] S2031. Add scrambling code to the first private protocol data block to obtain the first private protocol data frame, and convert the first private protocol data frame into second serial data.

[0173] It should be noted that since this embodiment does not include encoding the first data block, scrambling is used to suppress the occurrence of long 0s and long 1s in the data signal, which facilitates the extraction of the clock signal from the data signal. Furthermore, scrambling is added to the proprietary protocol to achieve the requirement of photoelectric balance.

[0174] It should be noted that for a detailed description of step 2031, please refer to the relevant content of the scrambling module and the first serialization module mentioned above, which will not be repeated here.

[0175] like Figure 21 As shown, this application embodiment proposes a data transmission method applied to a data transmission device, including steps S301-S303:

[0176] S301. Upon receiving the third serial data transmitted via optical fiber, convert the third serial data into a second private protocol data block.

[0177] It should be noted that for a detailed description of step 301, please refer to the relevant content of the private protocol interface unit mentioned above, which will not be repeated here.

[0178] In a design, such as Figure 22 As shown, in a data transmission method provided in this application embodiment, the steps in S301 above may specifically include the following S3011-S3012:

[0179] S3011. Upon receiving the third serial data transmitted via optical fiber, the third serial data is converted into second parallel data, and frame positioning processing is performed on the second parallel data to obtain the second private protocol data frame.

[0180] It should be noted that frame location processing can be understood as determining the private protocol frame header by searching for the private protocol frame delimiter in the second parallel data. In this embodiment, frame location processing searches for the private protocol frame header by searching for the private protocol frame delimiter in the private protocol, completes frame alignment, locks and synchronizes, and then descrambles the private protocol frame to obtain the descrambled private protocol data block, thereby performing deframe processing to obtain the private protocol fixed-length data block. Since the received second parallel data is a fixed frame, after finding the frame header, the frame header is found after every 255-byte data block. After N consecutive frames, frame locking and synchronization can be considered, where N is a positive integer. In this embodiment, the size of N can be configured according to actual needs; for example, the size of N can be set to 5 to 10.

[0181] It should be noted that for a detailed description of step 3011, please refer to the relevant content of the second deserialization module and frame positioning module mentioned above, which will not be repeated here.

[0182] S3012. Descramble the second private protocol data frame to obtain the second private protocol data block.

[0183] It should be noted that for a detailed description of step 3012, please refer to the relevant content of the descrambling module mentioned above, which will not be repeated here.

[0184] S302, Convert the second private protocol data block into the second MAC frame data.

[0185] It should be noted that for a detailed description of step 302, please refer to the relevant content of the above protocol frame processing unit, which will not be repeated here.

[0186] In a design, such as Figure 23 As shown, in a data transmission method provided in this application embodiment, the steps in S302 above may specifically include the following S3021:

[0187] S3021. Extract the second fixed-length data block from the second private protocol data block, and extract the second MAC frame data from the second fixed-length data block.

[0188] It should be noted that for a detailed description of step 3021, please refer to the relevant content of the private protocol frame parsing module and MAC frame data extraction module mentioned above, which will not be repeated here.

[0189] S303. Convert the second MAC frame data into fourth serial data and transmit the fourth serial data to the optical fiber.

[0190] It should be noted that for a detailed description of step 3011, please refer to the relevant content of the Ethernet interface unit mentioned above, which will not be repeated here.

[0191] In a design, such as Figure 24 As shown, in a data transmission method provided in this application embodiment, the steps in S303 above may specifically include the following S3031:

[0192] S3031. Convert the second MAC frame data into data to be encoded, convert the data to be encoded into fourth serial data, and transmit the fourth serial data to the optical fiber.

[0193] It should be noted that for a detailed description of step 3011, please refer to the relevant content of the second sending unit mentioned above, and it will not be repeated here.

[0194] In a design, such as Figure 25 As shown, in a data transmission method provided in this application embodiment, the steps in S3031 above may specifically include the following S3032:

[0195] S3032. Convert the second MAC frame data into data to be encoded, encode the data to be encoded to obtain encoded data, convert the encoded data into fourth serial data, and transmit the fourth serial data to the optical fiber.

[0196] It is understandable that the first fixed-length data block is obtained by performing fixed-length slicing on the processed first MAC frame data, resulting in multiple first fixed-length data blocks.

[0197] It should be noted that for a detailed description of step 3032, please refer to the relevant content of the above encoding module and second serialization module, which will not be repeated here.

[0198] This application provides a data transmission method applied to long-distance Ethernet data transmission scenarios. On one hand, a first private protocol data block is obtained by processing first serial data transmitted via optical fiber. Scrambling is added to the first private protocol data block, which is then converted into second serial data for transmission. On the other hand, a second MAC frame data is obtained by processing third serial data transmitted via optical fiber. The second MAC frame data is then encoded and converted into fourth serial data for transmission. This enables direct transmission of 100 Mbps Ethernet without first aggregating it into gigabit Ethernet or higher services, thus reducing bandwidth waste during transmission and improving the efficiency of data transmission over Ethernet. Furthermore, adding an overhead field to the data enhances data maintenance and management capabilities during transmission, and adding an error correction field enhances the data's anti-interference capability during transmission, thereby increasing transmission distance and ensuring the long-distance data transmission capability of this method.

[0199] The foregoing mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the units and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0200] This application provides another possible structural schematic diagram of the data transmission device involved in the above embodiments. For example... Figure 26 As shown, a data transmission device 60 is used for direct long-distance transmission over 100 Mbps Ethernet, reducing bandwidth waste and improving the efficiency of data transmission over Ethernet, for example, for performing... Figure 16 The diagram illustrates a data transmission method. The data transmission device 60 includes a processor 601, a memory 602, and a bus 603. The processor 601 and the memory 602 are connected via the bus 603.

[0201] Processor 601 is the control center of the communication device. It can be a single processor or a collective term for multiple processing elements. For example, processor 601 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.

[0202] As one embodiment, processor 601 may include one or more CPUs, for example Figure 26 CPU 0 and CPU 1 are shown in the diagram.

[0203] The memory 602 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.

[0204] In one possible implementation, the memory 602 can exist independently of the processor 601. The memory 602 can be connected to the processor 601 via a bus 603 and is used to store instructions or program code. When the processor 601 calls and executes the instructions or program code stored in the memory 602, it can implement a data transmission method provided in the embodiments of this application.

[0205] In another possible implementation, the memory 602 can also be integrated with the processor 601.

[0206] Bus 603 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 26 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0207] It should be pointed out that, Figure 26 The structure shown does not constitute a limitation on the data transmission device 60. Except... Figure 26 In addition to the components shown, the data transmission device 60 may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.

[0208] Optional, such as Figure 26 As shown, the data transmission device 60 provided in this application embodiment may further include a communication interface 604.

[0209] Communication interface 604 is used to connect with other devices via a communication network. This communication network can be Ethernet, a wireless access network, a wireless local area network (WLAN), etc. Communication interface 604 may include a receiving unit for receiving data and a transmitting unit for transmitting data.

[0210] In one design, the communication interface of the data transmission device provided in this application embodiment can also be integrated into the processor.

[0211] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional units is used as an example. In practical applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the device can be divided into different functional units to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0212] This application also provides a computer-readable storage medium storing instructions. When a computer executes these instructions, the computer performs each step of the method flow shown in the above-described method embodiments.

[0213] Embodiments of this application provide a computer program product containing instructions that, when executed on a computer, cause the computer to perform a data transmission method as described in the above method embodiments.

[0214] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), registers, hard disks, optical fibers, compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing, or any other form of computer-readable storage medium in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium may also be a component of the processor. The processor and the storage medium may reside in an application-specific integrated circuit (ASIC). In the embodiments of this application, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0215] Since the data transmission device, computer-readable storage medium, and computer program product in the embodiments of this application can be applied to the above method, the technical effects that can be obtained can also be referred to the above method embodiments. The embodiments of this application will not be repeated here.

[0216] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be covered within the scope of protection of this application.

Claims

1. A data transmission device, characterized in that, The data transmission device includes: an Ethernet interface unit, a protocol frame processing unit, and a private protocol interface unit. The protocol frame processing unit is connected to the Ethernet interface unit and the private protocol interface unit, respectively. The protocol frame processing unit includes: a MAC frame format conversion module and a private protocol framing module. The Ethernet interface unit is used to convert the first serial data received from the optical fiber transmission into first media access control (MAC) frame data and transmit the first MAC frame data to the protocol frame processing unit. The MAC frame format conversion module is used to add frame header data, frame length data and padding data to the first MAC frame data when it receives the first MAC frame data transmitted by the Ethernet interface unit, to obtain the processed first MAC frame data, and to perform fixed-length slicing on the processed first MAC frame data to obtain a first fixed-length data block with a length of 220 bytes, and to transmit the first fixed-length data block to the private protocol framing module. The private protocol framing module is used to add a 35-byte function field to the first fixed-length data block when it receives the first fixed-length data block, so as to obtain a first private protocol data block with a length of 255 bytes, and transmit the first private protocol data block to the private protocol interface unit. The first private protocol data block includes multiple private protocol data blocks of preset length. Each private protocol data block includes a data block and a function byte block. The function byte block is used for frame delimitation and data parsing. The private protocol interface unit is used to convert the first private protocol data block into second serial data when it receives the first private protocol data block transmitted by the protocol frame processing unit, and transmit the second serial data to the optical fiber for 100 Mbps Ethernet transmission.

2. The data transmission device according to claim 1, characterized in that, The Ethernet interface unit includes a first receiving unit and a MAC module; The first receiving unit is configured to convert the first serial data into decoded data upon receiving the first serial data, and transmit the decoded data to the MAC module. The MAC module is used to convert the decoded data into the first MAC frame data when it receives the decoded data, and to transmit the first MAC frame data to the protocol frame processing unit.

3. The data transmission device according to claim 2, characterized in that, The first receiving unit includes: a first deserialization module and a decoding module; The first deserialization module is used to convert the first serial data into first parallel data when it receives the first serial data, and transmit the first parallel data to the decoding module; The decoding module is used to decode the first parallel data upon receiving it to obtain the decoded data, and then transmit the decoded data to the MAC module.

4. The data transmission device according to claim 1 or 2, characterized in that, The protocol frame processing unit further includes: a MAC frame buffer module; The MAC frame caching module is used to cache the first MAC frame data and transmit the first MAC frame data.

5. The data transmission device according to claim 1 or 2, characterized in that, The private protocol interface unit includes: a first sending unit; The first transmitting unit is configured to add scrambling code to the first private protocol data block when it receives the first private protocol data block transmitted by the protocol frame processing unit, convert the scrambling first private protocol data block into second serial data, and transmit the second serial data to the optical fiber.

6. The data transmission device according to claim 5, characterized in that, The first transmitting unit includes: a scrambling module and a first serialization module; The scrambling module is used to add scrambling code to the first private protocol data block when it receives the first private protocol data block transmitted by the protocol frame processing unit, to obtain the first private protocol data frame, and to transmit the first private protocol data frame to the first serialization module. The first serialization module is used to convert the first private protocol data frame into the second serial data when it receives the first private protocol data frame, and transmit the second serial data to the optical fiber.

7. A data transmission device, characterized in that, The data transmission device includes: an Ethernet interface unit, a protocol frame processing unit, and a private protocol interface unit. The protocol frame processing unit is connected to the Ethernet interface unit and the private protocol interface unit, respectively. The protocol frame processing unit includes: a private protocol frame parsing module and a MAC frame data extraction module. The private protocol interface unit is also used to convert the third serial data transmitted by optical fiber into a second private protocol data block with a length of 255 bytes when it receives the third serial data, and to transmit the second private protocol data block to the protocol frame processing unit. The second private protocol data block includes a plurality of private protocol data blocks of preset length. The private protocol frame parsing module is used to extract a second fixed-length data block with a length of 220 bytes from the second private protocol data block when it receives the second private protocol data block transmitted by the private protocol interface unit, and transmit the second fixed-length data block to the MAC frame data extraction module. The MAC frame data extraction module is used to extract the second MAC frame data from the second fixed-length data block when the second fixed-length data block is received, and transmit the second MAC frame data to the Ethernet interface unit. The Ethernet interface unit is further configured to convert the second MAC frame data into fourth serial data and transmit the fourth serial data to the optical fiber when it receives the second MAC frame data transmitted by the protocol frame processing unit, so as to perform 100 Mbps Ethernet transmission.

8. The data transmission device according to claim 7, characterized in that, The Ethernet interface unit includes a second transmitting unit and a MAC module; The second transmitting unit is used to convert the data to be encoded into the fourth serial data when it receives the data to be encoded transmitted by the MAC module, and transmit the fourth serial data to the optical fiber; The MAC module is used to convert the second MAC frame data into the data to be encoded when it receives the second MAC frame data transmitted by the protocol frame processing unit, and transmit the data to be encoded to the second sending unit.

9. The data transmission device according to claim 8, characterized in that, The second transmitting unit includes: an encoding module and a second serialization module; The encoding module is used to encode the data to be encoded when it receives the data to be encoded transmitted by the MAC module to obtain the encoded data, and transmit the encoded data to the second serialization module; The second serialization module is used to convert the encoded data into fourth serial data when it receives the encoded data, and transmit the fourth serial data to the optical fiber.

10. The data transmission apparatus according to claim 7 or 8, characterized in that, The protocol frame processing unit further includes: a MAC frame buffer module; The MAC frame caching module is used to cache the second MAC frame data and transmit the second MAC frame data.

11. The data transmission apparatus according to claim 7 or 8, characterized in that, The private protocol interface unit includes: a second receiving unit; The second receiving unit is used to convert the third serial data transmitted through the optical fiber into second parallel data when it receives the third serial data, and to perform descrambling processing on the second parallel data to obtain the second private protocol data block, and to transmit the second private protocol data block to the protocol frame processing unit.

12. The data transmission apparatus according to claim 11, characterized in that, The second receiving unit includes: a second deserialization module, a frame positioning module, and a descrambling code module; The second deserialization module is used to convert the third serial data transmitted through the optical fiber into the second parallel data when it receives the third serial data, and transmit the second parallel data to the frame positioning module; The frame positioning module is used to perform frame positioning processing on the second parallel data when it receives the second parallel data, to obtain the second private protocol data frame, and to transmit the second private protocol data frame to the descrambling module. The descrambling module is used to descramble the second private protocol data frame when it receives the second private protocol data frame to obtain the second private protocol data block, and then transmit the second private protocol data block to the protocol frame processing unit.

13. A data transmission method, characterized in that, The data transmission method is applied to the data transmission apparatus as described in any one of claims 1 to 6, and the method comprises: Upon receiving the first serial data transmitted via optical fiber, the first serial data is converted into first MAC frame data; Add frame header data, frame length data, and padding data to the first MAC frame data to obtain the processed first MAC frame data, and perform fixed-length slicing on the processed first MAC frame data to obtain the first fixed-length data block. A function field is added to the first fixed-length data block to obtain a first private protocol data block. The first private protocol data block includes multiple private protocol data blocks of preset length. Each private protocol data block includes a data block and a function byte block. The function byte block is used for frame delimitation and data parsing. The first private protocol data block is converted into second serial data, and the second serial data is transmitted to the optical fiber.

14. A data transmission method, characterized in that, The data transmission method is applied to the data transmission apparatus as described in any one of claims 7 to 12, the method comprising: Upon receiving the third serial data transmitted via optical fiber, the third serial data is converted into a second private protocol data block with a length of 255 bytes; Extract a second fixed-length data block of 220 bytes from the second private protocol data block, and extract the second MAC frame data from the second fixed-length data block. The second private protocol data block includes multiple private protocol data blocks of preset length. Each private protocol data block includes a data block and a function byte block. The function byte block is used for frame delimitation and data parsing. The second MAC frame data is converted into fourth serial data, and the fourth serial data is transmitted to the optical fiber.

15. A data transmission device, characterized in that, include: A processor and a memory; wherein the memory is used to store one or more programs, the one or more programs including computer execution instructions, wherein when the data transmission device is running, the processor executes the computer execution instructions stored in the memory to cause the data transmission device to perform a data transmission method according to claim 13 or claim 14.

16. A computer-readable storage medium for storing one or more programs, characterized in that, The one or more programs include instructions that, when executed by a computer, cause the computer to perform a data transmission method as described in claim 13 or claim 14.

Citation Information

Patent Citations

  • Service bearing method, apparatus and system

    WO2021180007A1