Method and system for realizing high-density Ethernet communication data transmission
By testing and adjusting the Ethernet communication data transmission rate, and using the buffering mode and flag bits of the two arrays to alternately operate, the problem of low efficiency of the Ethernet chip is solved, and high-density data transmission and reliability transmission rate are improved.
Patent Information
- Application Number
- CN202310769236.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-27
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2043-06-27
AI Technical Summary
The actual use efficiency of existing Ethernet chips is low, resulting in the transmission rate being only 30%-50% of the design speed, and the efficiency is unbalanced and the adaptability is limited.
By testing the data transmission rate of Ethernet communication, selecting the shortest transmission cycle and changing the array length, recording the length of the maximum transmission array and the actual usage transmission rate, using data storage and processing modes where the two arrays are buffered, based on data cache Data cache and send alternately with the send flag bits to improve the transmission rate.
The data transmission is high density, the actual usage transmission rate of Ethernet chips is improved, the reliability of data transmission is ensured, and the actual usage transmission rate is increased by Mx/16 times.
Smart Images

Figure CN119210644A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Ethernet communication data processing, and in particular to a method and system for implementing high-density Ethernet communication data transmission. Background Art
[0002] Traditional Ethernet data transmission channels all use a simple data transmission method to transmit single data according to the mode and transmission rate supported by the chip. The transmission rate of ordinary Ethernet chips is 10Mbps / 100Mbps. In order to realize the transmission of computing data in the chip, a high-speed synchronous serial input / output port is usually used to transmit data to the communication chip, and the communication chip then sends the data to an external device for observation or storage.
[0003] Existing technical solutions all use the 10Mbps / 100Mbps network speed designed for Ethernet chips for data transmission, but the actual application speed is only 30%-50% of the designed speed. At the same time, the 10Mbps or 100Mbps network speed during the use of the Ethernet chip depends on the adaptability of both the Ethernet sender and the receiver. Most applications based on Ethernet chips are only suitable for 10Mbps, that is, the theoretical actual application network speed is only 30%-50% of the 10Mbps network speed in most cases. Therefore, the theoretical network speed is only 3-5Mbps; at the same time, due to the chip hardware design, the actual use efficiency is even lower.
[0004] In the existing circuit boards used in actual applications, the actual use efficiency of Ethernet chips is extremely low. Due to the limited adaptability of the chips in actual use, the designs of various circuit boards may vary, resulting in uneven actual use efficiency. Summary of the invention
[0005] The present invention provides a method and system for realizing high-density Ethernet communication data transmission, which can solve the technical problem of low actual use efficiency of Ethernet chips in the prior art.
[0006] According to one aspect of the present invention, a method for implementing high-density Ethernet communication data transmission is provided, and the method for implementing high-density Ethernet communication data transmission includes: testing the Ethernet communication data transmission rate, transmitting N1 groups of arrays within a first time T1, transmitting N2 groups of arrays within a second time T2, ..., transmitting Nn groups of arrays within an Nth time Tn, calculating the transmission period (T1 / N1), (T2 / N2), ..., (Tn / Nn) of each array in turn, selecting the shortest transmission period (Tx / Nx) from the transmission periods of each array, changing the array length corresponding to the shortest transmission period, if the array transmission period remains unchanged after multiple changes in the array length, recording the length of the maximum transmission array and calculating the actual use transmission rate; if the array transmission cycle changes after the array length is changed multiple times, the shortest transmission cycle is selected from the transmission cycles of the remaining arrays, and 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 are buffered with 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 bit and the data sending flag bit, when the first array performs data combination caching, the second array performs data sending, when the second array is sent, the first array performs data sending, and the second array performs data combination caching, and the above process is repeated until the high-density Ethernet communication data transmission is completed.
[0007] Furthermore, 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, and 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.
[0008] Furthermore, 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.
[0009] Furthermore, 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 first array is cached, sending the first array, at which 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 second array is cached, sending the second array, at which 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.
[0010] Furthermore, the actual transmission rate can be calculated based on (Mx*Nx / Tx) bits / s, where Mx is the length of the maximum transmission array.
[0011] According to another aspect of the present invention, a system for implementing high-density Ethernet communication data transmission is provided. The system for implementing high-density Ethernet communication data transmission uses the above-mentioned method for implementing high-density Ethernet communication data transmission to perform data transmission.
[0012] By applying the technical solution of the present invention, a method for implementing high-density Ethernet communication data transmission is provided. The method tests the data transmission rate. If the array transmission cycle remains unchanged after multiple changes in the array length, the length of the maximum transmission array is recorded as Mxbits, and the original transmission rate is calculated as (16*Nx / Tx)bits / s. Now that the array length has been 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, and high-density data transmission is achieved. In addition, the mutual conversion and coordination of the data cache flag bit and the data transmission flag bit are used to achieve 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 perform the cache or transmission work, and the reliability of data transmission is achieved. Therefore, compared with the prior art, the implementation method of high-density Ethernet communication data transmission provided by the present invention can realize the high density of transmission data, greatly improve the actual transmission rate of the Ethernet chip, and at the same time ensure the reliability of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The included drawings are used to provide a further understanding of the embodiments of the present invention, which constitute a part of the specification, are used to illustrate the embodiments of the present invention, and together with the text description, explain the principles of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0014] Figure 1 A flowchart of array cache composition provided according to a specific embodiment of the present invention is shown;
[0015] Figure 2 A data transmission flag bit conversion and judgment flow chart provided according to a specific embodiment of the present invention is shown;
[0016] Figure 3 A data sending flow chart provided according to a specific embodiment of the present invention is shown. DETAILED DESCRIPTION
[0017] It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present invention and its application or use. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[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, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0019] Unless otherwise specifically stated, the relative arrangement of the parts and steps described in these embodiments, numerical expressions and numerical values do not limit the scope of the present invention. At the same time, it should be understood that, for ease of description, the sizes of the various parts shown in the accompanying drawings are not drawn according to the actual proportional relationship. The technology, method and equipment known to ordinary technicians in the relevant field may not be discussed in detail, but in appropriate cases, the technology, method and equipment should be regarded as a part of the authorization specification. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a limitation. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once a certain item is defined in an accompanying drawing, it does not need to be further discussed in subsequent drawings.
[0020] like Figures 1 to 3 As shown, according to a specific embodiment of the present invention, a method for implementing high-density Ethernet communication data transmission is provided, and the method for implementing high-density Ethernet communication data transmission includes: testing the Ethernet communication data transmission rate, transmitting N1 groups of arrays within a first time T1, transmitting N2 groups of arrays within a second time T2, ..., transmitting Nn groups of arrays within an Nth time Tn, calculating the transmission period (T1 / N1), (T2 / N2), ..., (Tn / Nn) of each array in turn, selecting the shortest transmission period (Tx / Nx) from the transmission periods of each array, changing the array length corresponding to the shortest transmission period, if the array transmission period remains unchanged after multiple changes in the array length, recording the length of the maximum transmission array and calculating the actual use Use transmission rate; if the array transmission cycle changes after the array length is changed multiple times, the shortest transmission cycle is selected from the transmission cycles of the remaining arrays, and 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 are buffered with 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 bit and the data sending flag bit, when the first array performs data combination caching, the second array performs data sending, when the second array is sent, the first array performs data sending, and the second array performs data combination caching, and the above process is repeated until the 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 cycle remains unchanged after changing the array length multiple times, the length of the maximum transmission array is recorded as Mxbits, and the original transmission rate is calculated as (16*Nx / Tx)bits / s. Now that 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, and high-density data transmission is realized. 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 perform the cache or transmission work, and the reliability of data transmission is realized. Therefore, compared with the prior art, the method for implementing high-density Ethernet communication data transmission provided by the present invention can realize the high density of transmission 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 invention, when performing a data transmission test, N1 groups of arrays are transmitted within a first time T1, N2 groups of arrays are transmitted within a second time T2, ..., and Nn groups of arrays are transmitted within an Nth time Tn. Usually, a group of data contains 16 bits of data, and the transmission periods of the arrays are (T1 / N1), (T2 / N2), ... (Tn / Nn), respectively. The case with the shortest transmission period is selected, which is assumed to be (Tx / Nx); then, in this case, the array length is changed multiple times, and the transmission time is measured. If, after changing the array length multiple times (i.e., changing Nx), the array transmission period remains unchanged at (Tx / Nx), then the maximum transmission array length under multiple changes is recorded as Mxbits, and the original transmission rate is calculated to be (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. If the transmission cycle is the shortest, assuming it is (Tx / Nx), if the array transmission cycle will change as long as the array length is changed, then in the remaining data transmission cycles (excluding the transmission cycle (Tx / Nx), select the shortest data transmission cycle (Ty / Ny), repeat the above operation, that is, after changing the array length multiple times (that is, changing Ny), the array transmission cycle remains unchanged (Ty / Ny), then record the maximum transmission array length under multiple changes as Mybits, and calculate the original transmission rate as (16*Ny / Ty)bits / s, now that the array length has been increased, the actual transmission rate is (My*Ny / Ty) bits / s; it can be seen that the actual transmission rate has increased by My / 16 times. If the transmission cycle is the shortest, assuming it is (Ty / Ny), if the array length is changed, the array transmission cycle will also change accordingly. At this time, in the remaining data transmission cycles (excluding the transmission cycles (Tx / Nx) and (Ty / Ny)), the shortest data transmission cycle (Tz / Nz) is selected, and the above operation is repeated until the maximum transmission array length and the actual transmission rate are obtained.
[0023] Furthermore, in the present invention, after obtaining the length of the maximum transmission array and the actually used transmission rate, a data storage and data processing mode in which two arrays buffer each other can be adopted. Based on the length of the maximum transmission array and the actually used transmission rate, the first array and the second array data are cached and sent alternately 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.
[0024] In the present invention, if Figure 1As shown, 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, and data caching of the first array or the second array is completed.
[0025] The update formula of the array length flag is DataNumber'=(DataNumber+1), where DataNumber' is the array length flag after update, and DataNumber is the array length flag before update.
[0026] Further, in the present invention, if Figure 2 and Figure 3 As shown, the data transmission of the first array or the second array is realized according to the data transmission flag bit, which specifically includes: when the data transmission flag bit is equal to 0 and the array cache flag bit is 0, caching the first array; when the data transmission flag bit is equal to 0 and the array cache flag bit is 1, caching the second array; judging whether the first array or the second array has been cached; when the first array is cached, sending the first array, at this time the data cache 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 sent, the data transmission flag bit of the first array is set to 0, and the data cache flag bit is set to 0; when the second array is cached, sending the second array, at this time the data cache 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 sent, the data transmission flag bit of the second array is set to 0, and the data cache flag bit is set to 1.
[0027] According to another aspect of the present invention, a system for implementing high-density Ethernet communication data transmission is provided. The system for implementing high-density Ethernet communication data transmission uses the above-mentioned method for implementing high-density Ethernet communication data transmission to perform data transmission.
[0028] By applying this configuration mode, a high-density Ethernet communication data transmission implementation system is provided. The system tests the data transmission rate. If the array transmission cycle remains unchanged after multiple changes in the array length, the maximum transmission array length is recorded as Mxbits, and the original transmission rate is calculated as (16*Nx / Tx)bits / s. Now that 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, and high-density data transmission is realized. 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 perform the cache or transmission work, and the reliability of data transmission is realized. Therefore, compared with the prior art, the high-density Ethernet communication data transmission implementation system provided by the present invention can realize the high density of transmission data, greatly improve the actual transmission rate of the Ethernet chip, and at the same time ensure the reliability of data transmission.
[0029] In order to further understand the present invention, the following Figures 1 to 3 The implementation method of high-density Ethernet communication data transmission provided by the present invention is described in detail.
[0030] like Figures 1 to 3 As shown, according to a specific embodiment of the present invention, a method for implementing high-density Ethernet communication data transmission is provided, and the method includes the following steps.
[0031] The data transmission rate of Ethernet communication is tested. N1 groups of arrays are transmitted in the first time T1, N2 groups of arrays are transmitted in the second time T2, ..., and Nn groups of arrays are transmitted in the Nth time Tn. Usually, a group of data contains 16 bits of data, and the transmission periods of the arrays are (T1 / N1), (T2 / N2), ... (Tn / Nn), respectively. The case with 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 at (Tx / Nx) after multiple changes in the array length (that is, changing Nx), the maximum transmission array length under multiple changes is recorded as Mxbits, and the original transmission rate is calculated to be (16*Nx / Tx)bits / s. Now that the array length has been 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. If the transmission cycle is the shortest, assuming it is (Tx / Nx), if the array transmission cycle will change as long as the array length is changed, then in the remaining data transmission cycles (excluding the transmission cycle (Tx / Nx), select the shortest data transmission cycle (Ty / Ny), repeat the above operation, that is, after changing the array length multiple times (that is, changing Ny), the array transmission cycle remains unchanged (Ty / Ny), then record the maximum transmission array length under multiple changes as Mybits, and calculate the original transmission rate as (16*Ny / Ty)bits / s, now that the array length has been increased, the actual transmission rate is (My*Ny / Ty) bits / s; it can be seen that the actual transmission rate has increased by My / 16 times. If the transmission cycle is the shortest, assuming it is (Ty / Ny), if the array length is changed, the array transmission cycle will also change accordingly. At this time, in the remaining data transmission cycles (excluding the transmission cycles (Tx / Nx) and (Ty / Ny)), the shortest data transmission cycle (Tz / Nz) is selected, and the above operation is repeated until the maximum transmission array length and the actual transmission rate are obtained.
[0032] In order to realize the transmission of high-density data, a data storage and data processing mode in which two arrays buffer each other is adopted. The array combination of A array (first array) / B array (second array) is executed respectively, and the data of B array / A array is sent at the same time. In this way, the two arrays buffer each other. When the A array (first array) is combined, the B array (second array) executes the sending instruction, ensuring that during the sending process of the B array (second array), the data combination will not fail due to the need to combine a new array; at the same time, since the data transmission rate test has been completed before the instantiation array is sent, when the A array (first array) / B array (second array) is sent alternately, the previous array has been sent within one control cycle. When the data is cached, the data sending flag is set to 1. When the data sending is completed, the data sending flag is set to 0, which will not cause data loss, thereby realizing reliable data transmission of high-density data.
[0033] In this embodiment, at a certain moment, data caching of array A (first array) is executed according to the data cache flag and the data sending flag, and array B (second array) executes a sending instruction. At this time, the array length flag of array A (first array) is initially equal to 1, the array cache flag is equal to 0, array A (first 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, and data caching of array A (first array) is completed; at the same time, the data cache flag of array B (second array) is 0, the data sending flag is 1, and the data sending function is entered. When array B (second array) is sent, the data sending flag of array B (second array) is set to 0 and the data cache flag is set to 1.
[0034] Next, the data of array B (second array) is cached, and array A (first array) executes the sending instruction. At this time, the array length flag of array B (second array) is initially equal to 1, the array cache flag is equal to 1, and array B (second array) is cached. The array length flag is updated to determine 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 cache of array B (second array) is completed; at the same time, the data cache flag of array A (first array) is 1, the data sending flag is 1, and the data sending function is entered. When array A (first array) is sent, the data sending flag of array A (first array) is set to 0, and the data cache flag is set to 0. By analogy, the above process is repeated to complete the high-density Ethernet communication data transmission.
[0035] In summary, the present invention provides a method for implementing high-density Ethernet communication data transmission. The method tests the data transmission rate. If the array transmission cycle remains unchanged after multiple changes in the array length, the length of the maximum transmission array is recorded as Mxbits, and the original transmission rate is calculated as (16*Nx / Tx)bits / s. Now that the array length has been 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, and high-density data transmission is achieved. In addition, the mutual conversion and coordination of the data cache flag bit and the data transmission flag bit are used to achieve 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 perform the cache or transmission work, and the reliability of data transmission is achieved. Therefore, compared with the prior art, the implementation method of high-density Ethernet communication data transmission provided by the present invention can realize the high density of transmission data, greatly improve the actual transmission rate of the Ethernet chip, and at the same time ensure the reliability of data transmission.
[0036] In the description of the present invention, it is necessary to understand that the directions or positional relationships indicated by directional words such as "front, back, up, down, left, right", "lateral, vertical, perpendicular, horizontal" and "top, bottom" are usually based on the directions or positional relationships shown in the drawings. They are only for the convenience of describing the present invention and simplifying the description. Unless otherwise specified, these directional words do not indicate or imply that the devices or elements referred to must have a specific direction or be constructed and operated in a specific direction. Therefore, they cannot be understood as limiting the scope of protection of the present invention. The directional words "inside and outside" refer to the inside and outside relative to the contours of each component itself.
[0037] For ease of description, spatially relative terms such as "above", "above", "on the upper surface of", "above", etc. may be used here to describe the spatial positional relationship between a device or feature and other devices or features as shown in the figure. It should be understood that spatially relative terms are intended to include different orientations of the device in use or operation in addition to the orientation described in the figure. For example, if the device in the accompanying drawings is inverted, the device described as "above other devices or structures" or "above other devices or structures" will be positioned as "below other devices or structures" or "below other devices or structures". Thus, the exemplary term "above" can include both "above" and "below". The device can also be positioned in other different ways (rotated 90 degrees or in other orientations), and the spatially relative descriptions used here are interpreted accordingly.
[0038] In addition, it should be noted that the use of terms such as "first" and "second" to limit components is only for the convenience of distinguishing the corresponding components. If not otherwise stated, the above terms have no special meaning and therefore cannot be understood as limiting the scope of protection of the present invention.
[0039] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
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 data transmission rate of Ethernet communication is tested. N1 arrays are transmitted in the first time T1, N2 arrays are transmitted in the second time T2, ..., Nn arrays are transmitted in the Nth time Tn, and the transmission periods (T1 / N1), (T2 / N2), ..., (Tn / Nn) of each array are calculated in turn. The shortest transmission period (Tx / Nx) is selected from the transmission periods of each array, and 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, and 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 used, 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, characterized in that: 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 judging whether to cache the first array or the second array is based on the array cache flag; when the array cache flag is equal to 0, the first array is cached, and when the array cache flag is equal to 1, the second array is cached; 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, 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, characterized in that: The updating formula of the array length flag is DataNumber'=(DataNumber+1), wherein DataNumber' is the array length flag after the update, and DataNumber is the array length flag before the update.
4. The method for implementing high-density Ethernet communication data transmission according to claim 3, characterized in that: Implementing data transmission of the first array or the second array according to the data transmission flag bit specifically includes: when the data transmission flag bit is equal to 0 and the array cache flag bit is 0, caching the first array; when the data transmission flag bit is equal to 0 and the array cache flag bit is 1, caching the second array; judging whether the first array or the second array has been cached; when the first array is cached, sending the first array, at this time the data cache flag bit of the first array is 1, the data transmission flag bit is 1, and entering the data transmission function, when the first array is sent, the data transmission flag bit of the first array is set to 0, and the data cache flag bit is set to 0; when the second array is cached, sending the second array, at this time the data cache flag bit of the second array is 0, the data transmission flag bit is 1, and entering the data transmission function, when the second array is sent, the data transmission flag bit of the second array is set to 0, and the data cache flag bit is set to 1.
5. The method for implementing high-density Ethernet communication data transmission according to claim 4, characterized in that: The actually used transmission rate may be obtained by calculation according to (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 high-density Ethernet communication data transmission implementation system uses the high-density Ethernet communication data transmission implementation method 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
Data compression, caching and uploading method and device in real-time positioning system
CN116033491A
Data transmission method and apparatus, terminal device, and computer-readable storage medium
WO2022227895A1