Method and system for implementing high-density ethernet communication data transmission
By selecting the array length with the shortest transmission cycle through testing and adopting a data storage and processing mode in which two arrays buffer each other, the problem of low efficiency in actual use of Ethernet chips was solved, achieving high-density data transmission and reliability, and increasing the transmission rate by Mx/16 times.
Patent Information
- Application Number
- CN202310769236.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-27
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2043-06-27
AI Technical Summary
Existing Ethernet chips have low actual efficiency, with transmission rates only 30%-50% of theoretical network speeds. Furthermore, limitations in chip compatibility and hardware design lead to uneven efficiency in actual applications.
By testing the data transmission rate of Ethernet communication, the array length with the shortest transmission period was selected. A data storage and processing mode in which two arrays buffer each other was adopted. Data buffering and transmission were carried out alternately using data buffering flags and transmission flags to achieve high-density data transmission.
The actual transmission rate of the Ethernet chip was improved, enabling high-density data transmission and ensuring the reliability of data transmission. The transmission rate was increased by Mx/16 times.
Smart Images

Figure CN119210644B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of Ethernet communication data processing, and particularly relates to a high-density Ethernet communication data transmission implementation method and system. BACKGROUND
[0002] Traditional Ethernet data transmission channels all adopt a simple data transmission mode, and transmit single data according to the mode supported by a chip and the transmission rate. The transmission rate of an ordinary Ethernet chip is 10 Mbps / 100 Mbps. In order to realize the transmission of calculation data in the chip, a high-speed synchronous serial input / output port is usually used to transmit data to a communication chip, and the communication chip sends the data to an external device for observation or storage.
[0003] The existing technical solutions all adopt the 10 Mbps / 100 Mbps network speed designed by an Ethernet chip to transmit data. However, the actual application network speed is only 30%-50% of the designed speed. Meanwhile, the 10 Mbps or 100 Mbps network speed used in the process of using the Ethernet chip depends on the adaptability of the Ethernet sender and receiver. Based on the application of most Ethernet chips, only 10 Mbps is adapted, that is, the actual application network speed in most cases is only 30%-50% of 10 Mbps. Therefore, the theoretical network speed is only 3-5 Mbps. Meanwhile, due to the reason of chip hardware design, the actual use efficiency is even lower.
[0004] In the existing actual application circuit board card, the actual use efficiency of the Ethernet chip is extremely low. Due to the limited actual use adaptability of the chip, there are individual differences in the design of various circuit board cards, thereby causing the unbalanced actual use efficiency. SUMMARY
[0005] The present application provides a high-density Ethernet communication data transmission implementation method and system, which can solve the technical problem of low actual use efficiency of the Ethernet chip in the prior art.
[0006] According to an aspect of the present application, a method for implementing high-density Ethernet communication data transmission is provided, which comprises: testing Ethernet communication data transmission rate, transmitting N1 groups of arrays in a first time T1, transmitting N2 groups of arrays in a second time T2,..., and transmitting Nn groups of arrays in an Nth time Tn; sequentially calculating transmission periods (T1 / N1), (T2 / N2),..., and (Tn / Nn) of the arrays; selecting a shortest transmission period (Tx / Nx) from the transmission periods of the arrays; changing the array length corresponding to the shortest transmission period; if the array transmission period remains unchanged after changing the array length multiple times, recording the length of the maximum transmission array and calculating the actual use transmission rate; if the array transmission period changes after changing the array length multiple times, selecting the shortest transmission period from the transmission periods of the remaining arrays, and repeating the above steps until the length of the maximum transmission array and the actual use transmission rate are obtained; using a data storage and data processing mode in which two arrays are mutually buffered; based on the length of the maximum transmission array and the actual use transmission rate, alternately performing data caching and sending of the first array and the second array according to data caching flag bits and data sending flag bits; when the first array performs data combination caching, the second array performs data sending; when the second array finishes sending, the first array performs data sending, and the second array performs data combination caching; repeating the above process until the high-density Ethernet communication data transmission is completed.
[0007] Further, the data caching of the first array or the second array according to the data caching flag bits specifically comprises: the array length flag bits of the first array and the second array are initially equal to 1; the first array or the second array is cached according to the array caching flag bits; when the array caching flag bits are equal to 0, the first array is cached; when the array caching flag bits are equal to 1, the second array is cached; the array length flag bits are updated; it is determined whether the updated array length flag bits are less than or equal to the maximum transmission array length / 16; if the updated array length flag bits are less than or equal to the maximum transmission array length / 16, the above process is repeated until the data length is greater than the maximum transmission array length / 16, and the data caching of the first array or the second array is completed.
[0008] Further, the update formula of the array length flag bits is DataNumber’=(DataNumber+1), wherein DataNumber’ is the updated array length flag bits, and DataNumber is the array length flag bits before updating.
[0009] Further, the data transmission of the first array or the second array according to the data transmission flag bit specifically comprises: when the data transmission flag bit is equal to 0 and the array buffer flag bit is 0, buffering the first array; when the data transmission flag bit is equal to 0 and the array buffer flag bit is 1, buffering the second array; judging whether the first array or the second array is buffered completely; when the first array is buffered completely, transmitting the first array, at this time, the data buffer flag bit of the first array is 1, the data transmission flag bit is 1, and the data transmission function is entered; when the first array is transmitted completely, the data transmission flag bit of the first array is set to 0, and the data buffer flag bit is set to 0; when the second array is buffered completely, transmitting the second array, at this time, the data buffer flag bit of the second array is 0, the data transmission flag bit is 1, and the data transmission function is entered; when the second array is transmitted completely, the data transmission flag bit of the second array is set to 0, and the data buffer flag bit is set to 1.
[0010] Further, the actual use transmission rate can be calculated according to (Mx*Nx / Tx) bits / s, wherein Mx is the length of the maximum transmission array.
[0011] According to another aspect of the present application, there is provided an implementation system of high-density Ethernet communication data transmission, which uses the implementation method of high-density Ethernet communication data transmission as described above to perform data transmission.
[0012] The technical scheme of the present application provides an implementation method of high-density Ethernet communication data transmission, which tests the data transmission rate, records the length of the maximum transmission array as Mxbits if the array transmission period remains unchanged after changing the array length multiple times, calculates the original transmission rate as (16*Nx / Tx) bits / s, and calculates the actual use transmission rate as (Mx*Nx / Tx) bits / s after increasing the array length. It can be seen that the actual use transmission rate is increased by Mx / 16 times, high-density data transmission is realized, and the data buffer process and the data transmission process are independent and converted through the mutual conversion of the data buffer flag bit and the data transmission flag bit. Only when the corresponding flag bit is changed, the data will perform the buffer or transmission work, and the reliability of data transmission is realized. Therefore, compared with the prior art, the implementation method of high-density Ethernet communication data transmission provided by the present application can realize high-density transmission of data, greatly improve the actual use transmission rate of the Ethernet chip, and ensure the reliability of data transmission. BRIEF DESCRIPTION OF DRAWINGS
[0013] The accompanying drawings, which are included to provide a further understanding of the embodiments of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the principles of the application. It is readily understood that the drawings are merely illustrative of some embodiments of the application and therefore are not to be construed as limiting the scope of the application as described herein.
[0014] Fig. 1 A flow chart of array buffer composition is shown according to a specific embodiment of the present application;
[0015] Fig. 2 A flow chart of data sending flag bit conversion and judgment is shown according to a specific embodiment of the present application;
[0016] Fig. 3 A flow chart of data sending is shown according to a specific embodiment of the present application. DETAILED DESCRIPTION
[0017] It should be noted that the embodiments and the features in the embodiments of the present application can be combined with each other without conflict. The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings of the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. The description of the at least one example embodiment is actually only illustrative, but not as any limitation on the present application and its application or use. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0018] It should be noted that the terms used herein are only for describing specific embodiments, and are not intended to limit the exemplary embodiments according to the present application. As used herein, the singular form is intended to include the plural form unless the context clearly indicates otherwise, and it should also be understood that when the terms "comprise" and / or "include" are used in the specification, there is a feature, step, operation, device, component and / or combination thereof.
[0019] The foregoing is considered as illustrative only of the principles of the application. Other variations and modifications will occur to those skilled in the art upon consideration of the foregoing description. Therefore, it is the intent of the inventors that solely by virtue of the forensic disclosure of the application herein, that all patentable variations and modifications be protected. The embodiments of the application in which an exclusive property or privilege is claimed are defined in the following claims.
[0020] As Figs. 1-3 As shown in the figure, the specific embodiment according to the application provides a high-density Ethernet communication data transmission implementation method, which comprises the following steps: testing Ethernet communication data transmission rate, transmitting N1 groups of arrays in a first time T1, transmitting N2 groups of arrays in a second time T2,..., transmitting Nn groups of arrays in an Nth time Tn, sequentially calculating transmission periods (T1 / N1), (T2 / N2),..., (Tn / Nn) of the arrays, selecting a shortest transmission period (Tx / Nx) from the transmission periods of the arrays, changing an array length corresponding to the shortest transmission period, if the array transmission period remains unchanged after changing the array length for multiple times, recording a length of a maximum transmission array and calculating an actual use transmission rate; if the array transmission period changes after changing the array length for multiple times, selecting a shortest transmission period from transmission periods of remaining arrays, repeating the above steps until a length of a maximum transmission array and an actual use transmission rate are obtained; adopting a data storage and data processing mode in which two arrays are mutually buffered, based on the length of the maximum transmission array and the actual use transmission rate, alternately performing data buffering and sending of a first array and a second array according to data buffering flags and data sending flags, when the first array performs data combination buffering, the second array performs data sending, when the second array finishes sending, the first array performs data sending, the second array performs data combination buffering, repeating the above process until high-density Ethernet communication data transmission is completed.
[0021] By applying this configuration mode, a method for implementing high-density Ethernet communication data transmission is provided. The method tests the data transmission rate. If the array transmission period remains unchanged after multiple changes in the array length, the maximum transmission array length is recorded as Mx bits, and the original transmission rate is calculated as (16*Nx / Tx) bits / s. Now, after the array length is increased, the actual transmission rate is (Mx*Nx / Tx) bits / s. It can be seen that the actual transmission rate is increased by Mx / 16 times, realizing high-density data transmission. In addition, the mutual conversion and coordination of the data cache flag bit and the data transmission flag bit are used to realize the mutual independence and conversion of the data cache process and the data transmission process. Only after the corresponding flag bit is changed, the data will be cached or sent, thereby realizing the reliability of data transmission. Therefore, compared with the prior art, the implementation method of high-density Ethernet communication data transmission provided by the present invention can realize high-density transmission of data, greatly improve the actual transmission rate of the Ethernet chip, and at the same time ensure the reliability of data transmission.
[0022] Specifically, in the present application, when data transmission data test is performed, N1 groups of arrays are transmitted in a first time T1, N2 groups of arrays are transmitted in a second time T2, …, and Nn groups of arrays are transmitted in an Nth time Tn. Generally, one group of data contains 16 bits of data, and the transmission periods of the arrays are (T1 / N1), (T2 / N2), …, (Tn / Nn) respectively. The shortest transmission period is selected, which is assumed to be (Tx / Nx). Then, the array length is changed multiple times in this case, and the transmission time is measured. If the array transmission period remains unchanged (Tx / Nx) after the array length (i.e. Nx) is changed multiple times, the maximum transmission array length in the multiple change cases is recorded as Mx bits, the original transmission rate is calculated as (16*Nx / Tx) bits / s, and the actual transmission rate after the array length is increased is (Mx*Nx / Tx) bits / s. It can be seen that the actual transmission rate is increased by Mx / 16 times. If the array transmission period changes when the array length is changed in the shortest transmission period (Tx / Nx), the shortest data transmission period (Ty / Ny) is selected from the remaining data transmission periods (excluding the transmission periods (Tx / Nx) and (Ty / Ny)), and the above operation is repeated, i.e. the array length is changed multiple times (i.e. Ny) and the array transmission period remains unchanged (Ty / Ny). The maximum transmission array length in the multiple change cases is recorded as My bits, the original transmission rate is calculated as (16*Ny / Ty) bits / s, and the actual transmission rate after the array length is increased is (My*Ny / Ty) bits / s. It can be seen that the actual transmission rate is increased by My / 16 times. If the array transmission period changes when the array length is changed in the shortest transmission period (Ty / Ny), the shortest data transmission period (Tz / Nz) is selected from the remaining data transmission periods (excluding the transmission periods (Tx / Nx) and (Ty / Ny)), and the above operation is repeated until the maximum transmission array length and the actual transmission rate are obtained.
[0023] Further, in the present application, after the maximum transmission array length and the actual transmission rate are obtained, a data storage and data processing mode in which two arrays are mutually buffered is adopted. Based on the maximum transmission array length and the actual transmission rate, the first array and the second array are alternately buffered and transmitted according to data buffer flags and data transmission flags. When the first array is buffered, the second array is transmitted, and when the second array is transmitted, the first array is transmitted. The above process is repeated until the high-density Ethernet communication data transmission is completed.
[0024] In the present application, as shown in Fig. 1As shown, the data buffering of the first array or the second array according to the data buffering flag comprises: the array length flags of the first array and the second array are initially equal to 1, the first array or the second array is buffered according to the array buffering flag, when the array buffering flag is equal to 0, the first array is buffered, when the array buffering flag is equal to 1, the second array is buffered, the array length flag is updated, and it is judged whether the updated array length flag is less than or equal to the maximum transmission array length / 16, if the updated array length flag is less than or equal to the maximum transmission array length / 16, the above process is repeated until the data length is greater than the maximum transmission array length / 16, and the data buffering of the first array or the second array is completed.
[0025] The update formula of the array length flag is DataNumber'=(DataNumber+1), wherein DataNumber' is the updated array length flag, and DataNumber is the array length flag before being updated.
[0026] Further, in the present application, as shown in Fig. 2 and Fig. 3 As shown, the data sending of the first array or the second array according to the data sending flag comprises: when the data sending flag is equal to 0 and the array buffering flag is 0, the first array is buffered; when the data sending flag is equal to 0 and the array buffering flag is 1, the second array is buffered; it is judged whether the first array or the second array is buffered completely; when the first array is buffered completely, the first array is sent, at this time, the data buffering flag of the first array is 1, the data sending flag is 1, and the data sending function is entered; when the first array is sent completely, the data sending flag of the first array is set to 0, and the data buffering flag is set to 0; when the second array is buffered completely, the second array is sent, at this time, the data buffering flag of the second array is 0, the data sending flag is 1, and the data sending function is entered; when the second array is sent completely, the data sending flag of the second array is set to 0, and the data buffering flag is set to 1.
[0027] According to another aspect of the present application, there is provided a high-density Ethernet communication data transmission implementation system which uses the high-density Ethernet communication data transmission implementation method as described above to perform data transmission.
[0028] By using the configuration mode, the high-density Ethernet communication data transmission implementation system is provided, and the data transmission rate is tested. If the array length is changed for multiple times and the array transmission period remains unchanged, the length of the maximum transmission array is recorded as Mxbits, the original transmission rate is calculated as (16*Nx / Tx) bits / s, and after the array length is increased, the actual use transmission rate is (Mx*Nx / Tx) bits / s. It can be seen that the actual use transmission rate is increased by Mx / 16 times, and the high-density data transmission is realized. In addition, the mutual conversion of the data buffer flag and the data sending flag is used to realize the mutual independence and conversion of the data buffer process and the data sending process. Only when the corresponding flag is changed, the data will perform the buffer or sending work, and the reliability of the data sending is realized. Therefore, compared with the prior art, the high-density Ethernet communication data transmission implementation system can realize the high-density transmission of the data, greatly improve the actual use transmission rate of the Ethernet chip, and ensure the reliability of the data sending.
[0029] In order to have a further understanding of the present application, the following Figs. 1-3 The high-density Ethernet communication data transmission implementation method provided by the present application is described in detail.
[0030] As shown in Figs. 1-3 According to the embodiment of the present application, a high-density Ethernet communication data transmission implementation method is provided, which comprises the following steps.
[0031] Test the transmission rate of Ethernet communication data, transmit N1 groups of arrays in the first time T1, transmit N2 groups of arrays in the second time T2, …, transmit Nn groups of arrays in the Nth time Tn, usually a group of data contains 16 bits of data, then the array transmission period is (T1 / N1), (T2 / N2), …, (Tn / Nn) respectively, select the shortest transmission period, assume it is (Tx / Nx); then change the array length many times in this case, and measure the transmission time, if the array transmission period remains (Tx / Nx) unchanged after changing the array length (i.e. changing Nx) many times, then record the maximum transmission array length in the case of changing many times as Mxbits, calculate the original transmission rate as (16*Nx / Tx) bits / s, now the actual use transmission rate is (Mx*Nx / Tx) bits / s after increasing the array length; it can be seen that the actual use transmission rate is increased by Mx / 16 times. If in the shortest transmission period, assume it is (Tx / Nx), if only changing the array length, the array transmission period will also change, at this time, select the shortest data transmission period (Ty / Ny) in the remaining data transmission period (remove the transmission period (Tx / Nx)), repeat the above operation, i.e. change the array length (i.e. change Ny) many times, the array transmission period remains (Ty / Ny) unchanged, then record the maximum transmission array length in the case of changing many times as Mybits, calculate the original transmission rate as (16*Ny / Ty) bits / s, now the actual use transmission rate is (My*Ny / Ty) bits / s after increasing the array length; it can be seen that the actual use transmission rate is increased by My / 16 times. If in the shortest transmission period, assume it is (Ty / Ny), if only changing the array length, the array transmission period will also change, at this time, select the shortest data transmission period (Tz / Nz) in the remaining data transmission period (remove the transmission period (Tx / Nx), (Ty / Ny)), repeat the above operation until the maximum transmission array length and the actual use transmission rate are obtained.
[0032] In order to realize the transmission of high-density data, the data storage and data processing mode of two arrays buffering each other is adopted, and the data sending of B array / A array is performed while the array combination of A array (first array) / B array (second array) is performed, so that the two arrays buffer each other, the B array (second array) executes the sending instruction when the A array (first array) is combined, and it is ensured that the data combination will not fail due to the new array needing to be combined in the process of sending of the B array (second array); meanwhile, since the data transmission rate has been tested before the array sending is instantiated, the previous array has completed the sending in a control period when the A array (first array) / B array (second array) sends alternately, the data sending flag is set to 1 when the data is buffered, and the data sending flag is set to 0 after the data sending is completed, so that the data loss is not caused, and the reliable data transmission of high-density data is realized.
[0033] In the embodiment, at a certain moment, the data buffering of the A array (first array) is performed according to the data buffering flag and the data sending flag, the B array (second array) executes the sending instruction, the array length flag of the A array (first array) is initially equal to 1, the array buffering flag is equal to 0, the A array (first array) is buffered, the array length flag is updated, and it is judged whether the updated array length flag is less than or equal to the maximum transmission array length / 16, if the updated array length flag is less than or equal to the maximum transmission array length / 16, the above process is repeated until the data length is greater than the maximum transmission array length / 16, and the data buffering of the A array (first array) is completed; meanwhile, the data buffering flag of the B array (second array) is 0, the data sending flag is 1, and the data sending function is entered, and after the B array (second array) is sent, the data sending flag of the B array (second array) is set to 0, and the data buffering flag is set to 1.
[0034] Then, the data buffering of the B array (second array) is performed, and the A array (first array) executes the sending instruction, the array length flag of the B array (second array) is initially equal to 1, the array buffering flag is equal to 1, the B array (second array) is buffered, the array length flag is updated, and it is judged whether the updated array length flag is less than or equal to the maximum transmission array length / 16, if the updated array length flag is less than or equal to the maximum transmission array length / 16, the above process is repeated until the data length is greater than the maximum transmission array length / 16, and the data buffering of the B array (second array) is completed; meanwhile, the data buffering flag of the A array (first array) is 1, the data sending flag is 1, and the data sending function is entered, and after the A array (first array) is sent, the data sending flag of the A array (first array) is set to 0, and the data buffering flag is set to 0. In this way, the above process is repeated, and the high-density Ethernet communication data transmission is completed.
[0035] In summary, the application provides a high-density Ethernet communication data transmission implementation method, which tests the data transmission rate, records the length of the maximum transmission array as Mxbits if the array length is changed multiple times and the array transmission period remains unchanged, calculates the original transmission rate as (16*Nx / Tx) bits / s, and calculates the actual transmission rate as (Mx*Nx / Tx) bits / s after the array length is increased. It can be seen that the actual transmission rate is increased by Mx / 16 times, realizing high-density data transmission. In addition, the mutual conversion of the data buffer flag and the data sending flag is used to realize the mutual independence and conversion of the data buffer process and the data sending process. Only when the corresponding flag changes, the data will perform the buffer or sending work, realizing the reliability of data sending. Therefore, compared with the prior art, the high-density Ethernet communication data transmission implementation method provided by the application can realize high-density transmission of data, greatly improve the actual transmission rate of the Ethernet chip, and ensure the reliability of data sending.
[0036] In the description of the present application, it should be understood that the orientation words such as "front, rear, upper, lower, left, right", "transverse, vertical, perpendicular, horizontal" and "top, bottom" and the like indicate the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present application and simplifying the description, and does not indicate and imply that the indicated device or element must have a specific orientation or be constructed and operated in a specific orientation, therefore it cannot be understood as a limitation on the scope of protection of the present application; the orientation words "inner, outer" refer to the inner and outer of the contour of each component itself.
[0037] For the convenience of description, spatial relative terms such as "over", "above", "upper surface", "upper" and the like can be used herein to describe the spatial position relationship of one device or feature with other devices or features as shown in the drawings. It should be understood that the spatial relative terms are intended to include different orientations in use or operation in addition to the orientation of the device described in the drawings. For example, if the device in the drawing is inverted, the device described as "above" or "over" other devices or structures will be positioned "below" or "under" other devices or structures. Thus, the exemplary term "above" can include both "above" and "below" orientations. The device can also be positioned in other different ways (rotated 90 degrees or in other orientations), and the spatial relative descriptions used herein are interpreted accordingly.
[0038] In addition, it should be noted that the use of "first", "second", and the like words to qualify parts is merely for the convenience of distinguishing the corresponding parts, and the above words have no special meaning unless otherwise stated, and therefore cannot be understood as limiting the scope of protection of the present application.
[0039] The above only describes the preferred embodiments of the present application and is not intended to limit the present application. Various modifications and changes can be made by those skilled in the art based on the spirit and principles of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for implementing high-density Ethernet communication data transmission, characterized in that: The method for implementing high-density Ethernet communication data transmission includes: The Ethernet communication data transmission rate is tested by transmitting N1 arrays within a first time T1, N2 arrays within a second time T2, ..., and Nn arrays within an Nth time Tn. The transmission periods (T1 / N1), (T2 / N2), ..., (Tn / Nn) of each array are calculated in sequence. The shortest transmission period (Tx / Nx) is selected from the transmission periods of each array. The array length corresponding to the shortest transmission period is changed. If the array transmission period remains unchanged after multiple changes in the array length, the length of the maximum transmission array is recorded and the actual transmission rate is calculated. If the array transmission period changes after multiple changes in the array length, the shortest transmission period is selected from the transmission periods of the remaining arrays. The above steps are repeated until the length of the maximum transmission array and the actual transmission rate are obtained. A data storage and data processing mode in which two arrays buffer each other is adopted. Based on the length of the maximum transmission array and the actual transmission rate, the first array and the second array data are alternately cached and sent according to the data cache flag and the data sending flag. When the first array performs data combination caching, the second array performs data sending. When the second array has finished sending, the first array performs data sending and the second array performs data combination caching. The above process is repeated until high-density Ethernet communication data transmission is completed.
2. The method for implementing high-density Ethernet communication data transmission according to claim 1, wherein: Implementing data caching of the first array or the second array according to the data cache flag specifically includes: the array length flags of the first array and the second array are initially equal to 1, and caching the first array or the second array is determined according to the array cache flag; when the array cache flag is equal to 0, the first array is cached; when the array cache flag is equal to 1, the second array is cached; the array length flag is updated, and it is determined whether the updated array length flag is less than or equal to the maximum transmission array length / 16; if the updated array length flag is less than or equal to the maximum transmission array length / 16, the above process is repeated until the data length is greater than the maximum transmission array length / 16, thereby completing data caching of the first array or the second array.
3. The method for implementing high-density Ethernet communication data transmission according to claim 2, wherein: The update formula of the array length flag is DataNumber'=(DataNumber+1), wherein DataNumber' is the array length flag after update, and DataNumber is the array length flag before update.
4. The method for implementing high-density Ethernet communication data transmission according to claim 3, wherein: Implementing data transmission of the first array or the second array according to the data transmission flag specifically includes: when the data transmission flag is equal to 0 and the array cache flag is 0, caching the first array; when the data transmission flag is equal to 0 and the array cache flag is 1, caching the second array; judging whether the first array or the second array has been cached; when the caching of the first array is completed, sending the first array, at this time the data cache flag of the first array is 1, the data transmission flag is 1, and the data transmission function is entered; when the first array is sent, the data transmission flag of the first array is set to 0, and the data cache flag is set to 0; when the caching of the second array is completed, sending the second array, at this time the data cache flag of the second array is 0, the data transmission flag is 1, and the data transmission function is entered; when the second array is sent, the data transmission flag of the second array is set to 0, and the data cache flag is set to 1.
5. The method for implementing high-density Ethernet communication data transmission according to claim 4, characterized in that: The actual transmission rate can be calculated based on (Mx*Nx / Tx) bits / s, where Mx is the length of the maximum transmission array.
6. A system for implementing high-density Ethernet communication data transmission, characterized in that: The system for implementing high-density Ethernet communication data transmission uses the method for implementing high-density Ethernet communication data transmission according to any one of claims 1 to 5 to perform data transmission.
Citation Information
Patent Citations
Data processing method and device and processing chip
CN113806280A
Ethernet physical layer interface inner ring detection method
CN116016248A