Data transmission optimization method and system based on high-performance CPO switch
By generating a switch adjacent relationship mapping table and evaluating the link quality index, dynamically selecting the optimal transmission link, the problem of insufficient efficiency and stability of static link selection strategies in dynamic network environments is solved, and efficient and stable data transmission is achieved.
Patent Information
- Application Number
- CN202510864688.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-26
- Publication Date
- 2025-09-02
AI Technical Summary
The existing data transmission methods rely on static link selection strategies and cannot optimize data transmission links in dynamically changing network environments, resulting in insufficient transmission efficiency and stability.
By generating a switch adjacent relationship mapping table, multiple initial transmission links are generated based on the starting and target MAC addresses, and link quality is evaluated using the network quality index and transmission overhead index, and the optimal transmission link is dynamically selected.
Effectively balance network performance and transmission overhead, improve the efficiency and stability of data transmission, and adapt to changes in dynamic network environments.
Smart Images

Figure CN120583030A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data transmission, and in particular to a data transmission optimization method and system based on a high-performance CPO switch. Background Art
[0002] By tightly integrating optical components with switch chips, CPO switches significantly improve data transmission rates and energy efficiency, providing strong support for next-generation network infrastructure. However, fully leveraging the hardware advantages of CPO switches and further optimizing data transmission efficiency remains a pressing technical challenge.
[0003] Existing data transmission methods usually rely on static link selection strategies, such as those based on the shortest path algorithm or simple load balancing mechanism. Although these methods can meet basic data transmission needs to a certain extent, they cannot optimize the data transmission link in the face of dynamically changing network environments. Summary of the Invention
[0004] The present application provides a data transmission optimization method and system based on a high-performance CPO switch to solve the problems raised by the above background technology.
[0005] In a first aspect, the present application provides a data transmission optimization method based on a high-performance CPO switch, comprising: Get the source MAC address and destination MAC address of the data to be transmitted; Generate a switch adjacency mapping table based on the start MAC address and the target MAC address; Generate multiple initial transmission links based on the start MAC address, the target MAC address and the switch adjacency mapping table; For each of the initial transmission links, generating a network quality index of the initial transmission link based on a preset network quality index generation method, generating a transmission overhead index of the initial transmission link based on a preset transmission overhead index generation method, and generating a link quality index of the initial transmission link based on the network quality index and the transmission overhead index; A target transmission link is determined among the initial transmission links based on the link quality index of each of the initial transmission links, and the data to be transmitted is transmitted based on the target transmission link.
[0006] In one possible implementation, generating the network quality index of the initial transmission link based on a preset network quality index generation method includes: Obtaining network quality information between each sub-transmission link of the initial transmission link, wherein a link between two adjacent switches of the initial transmission link constitutes a sub-transmission link of the initial transmission link, and the network quality information includes available bandwidth, delay duration, and packet loss rate; Generating a transmission capability index based on each of the available bandwidths, generating a transmission rate index based on each of the delay durations, and generating a transmission stability index based on each of the packet loss rates; The transmission capability index, the transmission rate index and the transmission stability index are weighted and summed to obtain the network quality index; wherein the weight coefficient of the transmission stability index is greater than the weight coefficient of the transmission capability index, and the weight coefficient of the transmission capability index is greater than the weight coefficient of the transmission rate index.
[0007] In one possible implementation, generating a transmission capability index based on each available bandwidth, generating a transmission rate index based on each delay duration, and generating a transmission stability index based on each packet loss rate includes: Calculating a first standard deviation between the available bandwidths, and determining a ratio between a maximum available bandwidth among the available bandwidths and the first standard deviation as the transmission capability index; Calculating the sum of the delay durations, and determining the reciprocal of the sum of the delay durations as the transmission rate index; A second standard deviation between the packet loss rates is calculated, and a reciprocal of a product of the second standard deviation and a minimum packet loss rate among the packet loss rates is determined as the transmission stability index.
[0008] In one possible implementation, generating the transmission cost index of the initial transmission link based on a preset transmission cost index generation method includes: Obtaining the MTU of each switch in the initial transmission link, determining the minimum MTU among the MTUs as the target MTU, and subtracting IP header bytes from the target MTU to obtain the payload of each switch; Obtaining a total number of bytes of the data to be transmitted, and determining a number of fragments of the data to be transmitted based on the total number of bytes and the payload; Determine the product of the number of fragments and the IP header bytes as the protocol header byte overhead; Determine the sum of the delay durations of the sub-transmission links of the initial transmission link as the single-slice transmission delay duration; a link between two adjacent switches of the initial transmission link constitutes a sub-transmission link of the initial transmission link; Determining a reassembly delay duration based on the number of fragments and the single-fragment transmission delay duration; For each fragment of the data to be transmitted, generating a transmission success probability corresponding to the fragment based on the packet loss rate corresponding to each of the sub-transmission links; Generating a retransmission probability of the initial transmission link based on the transmission success probability corresponding to each of the slices; The transmission overhead index is generated based on the protocol header byte overhead, the reassembly delay duration, and the retransmission probability.
[0009] In one possible implementation, generating the transmission overhead index based on the protocol header byte overhead, the reassembly delay duration, and the retransmission probability includes: Determining whether the retransmission probability is greater than a preset retransmission probability; If so, determining that the transmission overhead index is infinite; If not, calculating the sum of the bytes between the protocol header byte overhead and the total bytes, and determining a ratio of the protocol header byte overhead to the sum of the bytes as a byte overhead index; pass Generates a time overhead index; where, is the time cost index, is the reorganization delay duration, is the single-slice transmission delay; Determining the retransmission probability as a retransmission overhead index; The byte overhead index, the time overhead index and the retransmission overhead index are weighted and summed to obtain the transmission overhead index; wherein, the weight coefficient of the retransmission overhead index is greater than the weight coefficient of the byte overhead index, and the weight coefficient of the byte overhead index is greater than the weight coefficient of the time overhead index.
[0010] In one possible implementation, generating the transmission success probability corresponding to the slice based on the packet loss rate corresponding to each of the sub-transmission links includes: pass Generate the transmission success probability; wherein, is the transmission success probability, Indicates that the initial transmission link includes sub-transmission links, Indicates the The corresponding packet loss rate of each sub-link.
[0011] In one possible implementation, generating the retransmission probability of the initial transmission link based on the transmission success probability corresponding to each of the fragments includes: pass Generate a retransmission probability of the initial transmission link; wherein, is the retransmission probability, Indicates the number of shards.
[0012] In a second aspect, the present application provides a data transmission optimization system based on a high-performance CPO switch, comprising: An acquisition module is used to obtain the starting MAC address and the destination MAC address of the data to be transmitted; A first generating module, configured to generate a switch adjacency mapping table based on the start MAC address and the target MAC address; A second generating module, configured to generate a plurality of initial transmission links based on the start MAC address, the target MAC address and the switch adjacency mapping table; a third generating module, configured to generate, for each of the initial transmission links, a network quality index of the initial transmission link based on a preset network quality index generating method, generate a transmission overhead index of the initial transmission link based on a preset transmission overhead index generating method, and generate a link quality index of the initial transmission link based on the network quality index and the transmission overhead index; A determination module is configured to determine a target transmission link among the initial transmission links based on a link quality index of each of the initial transmission links, and transmit the data to be transmitted based on the target transmission link.
[0013] The present application provides a data transmission optimization method and system based on a high-performance CPO switch, the method comprising: obtaining a starting MAC address and a destination MAC address of data to be transmitted; generating a switch adjacency mapping table based on the starting MAC address and the destination MAC address; generating multiple initial transmission links based on the starting MAC address, the destination MAC address, and the switch adjacency mapping table; for each of the initial transmission links, generating a network quality index of the initial transmission link based on a preset network quality index generation method, generating a transmission overhead index of the initial transmission link based on a preset transmission overhead index generation method, and generating a link quality index of the initial transmission link based on the network quality index and the transmission overhead index; determining a target transmission link from each of the initial transmission links based on the link quality index of each of the initial transmission links, and transmitting the data to be transmitted based on the target transmission link. The method, firstly, dynamically generates a switch adjacency mapping table and generates multiple initial transmission links based on the starting MAC address and the destination MAC address, thereby solving the problem that traditional static link selection strategies cannot adapt to dynamic network environments and providing basic support for link optimization. Then, for each initial transmission link, the network quality index and transmission cost index are calculated based on preset network quality index and transmission cost index generation methods, respectively, to comprehensively evaluate the link's performance and transmission cost, ensuring the scientific and accurate link selection. Secondly, a link quality index is generated by taking a weighted sum of the reciprocals of the network quality index and transmission cost index, and the target transmission link with the highest link quality index is preferentially selected. This effectively balances the relationship between network performance and transmission cost, helping to improve the efficiency and stability of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0015] Figure 1 A flowchart of a data transmission optimization method based on a high-performance CPO switch provided in an embodiment of the present application; Figure 2 A schematic block diagram of the structure of a data transmission optimization system based on a high-performance CPO switch provided in an embodiment of the present application; Figure 3 A schematic block diagram of the structure of a terminal device provided in an embodiment of the present application.
[0016] Specific real-time method The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0017] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, combined, or partially merged, so the actual execution order may vary depending on the actual situation.
[0018] It should also be understood that the terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit the present application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0019] It should be further understood that the term "and / or" used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0020] The following describes some real-time methods of the present application in detail with reference to the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0021] See also Figure 1 , Figure 1 A flow chart of a data transmission optimization method based on a high-performance CPO switch provided in an embodiment of the present application is shown as follows: Figure 1 As shown, the data transmission optimization method based on a high-performance CPO switch provided in an embodiment of the present application includes steps S1 to S5.
[0022] Step S1: Obtain the source MAC address and destination MAC address of the data to be transmitted.
[0023] Step S2: Generate a switch adjacency mapping table based on the start MAC address and the target MAC address.
[0024] Step S3: Generate multiple initial transmission links based on the start MAC address, the target MAC address and the switch adjacency mapping table.
[0025] Step S4: For each of the initial transmission links, generate the network quality index of the initial transmission link based on a preset network quality index generation method, generate the transmission overhead index of the initial transmission link based on a preset transmission overhead index generation method, and generate the link quality index of the initial transmission link based on the network quality index and the transmission overhead index.
[0026] Step S5: determining a target transmission link among the initial transmission links based on the link quality index of each of the initial transmission links, and transmitting the data to be transmitted based on the target transmission link.
[0027] It should be noted that the execution subject of this embodiment can be a server or a data transmission optimization system based on a high-performance CPO switch. The following description will be made using a server as an example.
[0028] In this embodiment, it specifically includes: In the above step S1, after receiving the transmission instruction of the data to be transmitted, the server parses the data message of the data to be transmitted to obtain the starting MAC address and the target MAC address of the data to be transmitted, and the data to be transmitted is transmitted from the starting MAC address to the target MAC address.
[0029] In the above step S2, after obtaining the start MAC address and the target MAC address, the server generates the switch adjacency mapping table based on the switch topology diagram between the start MAC address and the target MAC address.
[0030] In the above step S3, the server generates a plurality of initial transmission links based on the start MAC address, the target MAC address and the switch adjacency mapping table.
[0031] In the above-mentioned step S4, for each of the initial transmission links, the server first generates a network quality index of the initial transmission link based on a preset network quality index generation method, and then generates a transmission overhead index of the initial transmission link based on a preset transmission overhead index generation method. Finally, the network quality index and the inverse of the transmission overhead index are weightedly summed to obtain the link quality index of the initial transmission link; wherein, the weight coefficient corresponding to the network quality index is greater than the weight coefficient corresponding to the inverse of the transmission overhead index.
[0032] In the above step S5, the initial transmission link corresponding to the maximum link quality index is determined as the target transmission link, and the data to be transmitted is transmitted based on the target transmission link.
[0033] The method provided in this embodiment, first, dynamically generates a switch adjacency mapping table, and generates multiple initial transmission links in combination with the starting MAC address and the target MAC address, thereby solving the problem that the traditional static link selection strategy cannot adapt to the dynamic network environment and providing basic support for link optimization. Then, for each initial transmission link, based on the preset network quality index generation method and transmission overhead index generation method, the network quality index and transmission overhead index are calculated respectively, and the performance status and transmission cost of the link are comprehensively evaluated, ensuring the scientific nature and accuracy of the link selection. Secondly, by performing a weighted summation on the inverse of the network quality index and the transmission overhead index, a link quality index is generated, and the target transmission link with the highest link quality index is preferentially selected, which effectively balances the relationship between network performance and transmission overhead, and helps to improve the efficiency and stability of data transmission.
[0034] In some embodiments, the generating of the network quality index of the initial transmission link based on a preset network quality index generating method includes the following steps: Obtaining network quality information between each sub-transmission link of the initial transmission link, wherein a link between two adjacent switches of the initial transmission link constitutes a sub-transmission link of the initial transmission link, and the network quality information includes available bandwidth, delay duration, and packet loss rate; Generating a transmission capability index based on each of the available bandwidths, generating a transmission rate index based on each of the delay durations, and generating a transmission stability index based on each of the packet loss rates; The transmission capability index, the transmission rate index and the transmission stability index are weighted and summed to obtain the network quality index; wherein the weight coefficient of the transmission stability index is greater than the weight coefficient of the transmission capability index, and the weight coefficient of the transmission capability index is greater than the weight coefficient of the transmission rate index.
[0035] The method provided in this embodiment first provides an accurate data basis for link quality assessment by separately obtaining network quality information for each sub-transmission link of the initial transmission link. Then, a transmission capacity index is generated based on the available bandwidth, a transmission rate index is generated based on the delay duration, and a transmission stability index is generated based on the packet loss rate. This quantifies the performance characteristics of the link from multiple dimensions, ensuring the scientific and comprehensive nature of the assessment results. Finally, a network quality index is generated by performing a weighted summation of the transmission capacity index, the transmission rate index, and the transmission stability index. Combined with the reasonable allocation of weight coefficients, this effectively balances the stability, throughput, and transmission efficiency of the link.
[0036] The step of generating a transmission capability index based on each available bandwidth, generating a transmission rate index based on each delay duration, and generating a transmission stability index based on each packet loss rate comprises the following steps: Calculating a first standard deviation between the available bandwidths, and determining a ratio between a maximum available bandwidth among the available bandwidths and the first standard deviation as the transmission capability index; Calculating the sum of the delay durations, and determining the reciprocal of the sum of the delay durations as the transmission rate index; A second standard deviation between the packet loss rates is calculated, and a reciprocal of a product of the second standard deviation and a minimum packet loss rate among the packet loss rates is determined as the transmission stability index.
[0037] It can be understood that the above-mentioned method of generating a transmission capacity index based on each available bandwidth, generating a transmission rate index based on each delay period, and generating a transmission stability index based on each packet loss rate, first, by calculating the first standard deviation between the available bandwidths of each sub-transmission link, and using the ratio of the maximum available bandwidth to the first standard deviation as the transmission capacity index, it is possible to effectively reflect the bandwidth fluctuation of the link. Then, by calculating the sum of the delay periods of each sub-transmission link, and using the inverse of the sum of the delay periods as the transmission rate index, it is possible to intuitively evaluate the transmission speed of the link. Finally, by calculating the second standard deviation between the packet loss rates of each sub-transmission link, and using the inverse of the product of the second standard deviation and the minimum packet loss rate as the transmission stability index, it is possible to accurately measure the transmission reliability of the link.
[0038] In some embodiments, generating the transmission cost index of the initial transmission link based on a preset transmission cost index generation method includes the following steps: Obtaining the MTU of each switch in the initial transmission link, determining the minimum MTU among the MTUs as the target MTU, and subtracting IP header bytes from the target MTU to obtain the payload of each switch; wherein the MTU is the maximum transmission unit; Obtaining a total number of bytes of the data to be transmitted, and determining a number of fragments of the data to be transmitted based on the total number of bytes and the payload; specifically, rounding up a ratio between the total number of bytes and the payload to obtain the number of fragments; Determine the product of the number of fragments and the IP header bytes as the protocol header byte overhead; Determine the sum of the delay durations of the sub-transmission links of the initial transmission link as the single-slice transmission delay duration; a link between two adjacent switches of the initial transmission link constitutes a sub-transmission link of the initial transmission link; Determining a reassembly delay based on the number of fragments and the single-fragment transmission delay; specifically, subtracting 1 from the number of fragments to obtain a difference in the number of fragments, and determining the product of the difference in the number of fragments and the single-fragment transmission delay as the reassembly delay; For each fragment of the data to be transmitted, a transmission success probability corresponding to the fragment is generated based on the packet loss rate corresponding to each sub-transmission link; specifically, by Generate the transmission success probability; wherein, is the transmission success probability, Indicates that the initial transmission link includes sub-transmission links, Indicates the The corresponding packet loss rate of each sub-link; The retransmission probability of the initial transmission link is generated based on the transmission success probability corresponding to each of the fragments; specifically, by Generate a retransmission probability of the initial transmission link; wherein, is the retransmission probability, Indicates the number of shards; The transmission overhead index is generated based on the protocol header byte overhead, the reassembly delay duration, and the retransmission probability.
[0039] It can be understood that the above-mentioned method of generating the transmission overhead index of the initial transmission link based on the preset transmission overhead index generation method, first, by obtaining the minimum MTU of each switch in the initial transmission link and calculating the effective load in combination with the IP header bytes, the fragmentation requirements of the data packet can be accurately evaluated, thereby providing basic data support for subsequent transmission overhead calculations. Then, based on the total bytes and effective load of the data to be transmitted, the number of fragments is determined, and the protocol header byte overhead is calculated, which can quantify the additional data volume overhead brought by fragmented transmission, providing an important basis for optimizing link selection. Secondly, by calculating the single-fragment transmission delay of the initial transmission link and determining the reassembly delay in combination with the number of fragments, the impact of fragmented transmission on delay can be comprehensively evaluated. Finally, by generating the fragment transmission success probability based on the packet loss rate of the sub-transmission link, and further calculating the retransmission probability of the initial transmission link, a scientific basis is provided for selecting a low-overhead, high-efficiency transmission link, which significantly improves the stability and performance of data transmission.
[0040] The step of generating the transmission overhead index based on the protocol header byte overhead, the reassembly delay duration, and the retransmission probability comprises the following steps: Determining whether the retransmission probability is greater than a preset retransmission probability; If so, determining that the transmission overhead index is infinite; If not, calculating the sum of the bytes between the protocol header byte overhead and the total bytes, and determining a ratio of the protocol header byte overhead to the sum of the bytes as a byte overhead index; pass Generates a time overhead index; where, is the time cost index, is the reorganization delay duration, is the single-slice transmission delay; Determining the retransmission probability as a retransmission overhead index; The byte overhead index, the time overhead index and the retransmission overhead index are weighted and summed to obtain the transmission overhead index; wherein, the weight coefficient of the retransmission overhead index is greater than the weight coefficient of the byte overhead index, and the weight coefficient of the byte overhead index is greater than the weight coefficient of the time overhead index.
[0041] It can be understood that the above-mentioned method of generating the transmission overhead index based on the protocol header byte overhead, the reassembly delay and the retransmission probability, first, by judging whether the retransmission probability is greater than the preset retransmission probability and directly marking the situation exceeding the threshold as infinite overhead, can effectively eliminate links with high retransmission risks and avoid performance degradation and resource waste caused by frequent retransmissions. Then, by calculating the ratio between the protocol header byte overhead and the total bytes to generate the byte overhead index, it can quantify the additional data volume overhead brought by fragmented transmission, providing an important basis for evaluating the data transmission efficiency of the link. Secondly, by generating the time overhead index based on the reassembly delay and the single-fragment transmission delay, it can accurately evaluate the impact of fragmented transmission on delay. Finally, by performing weighted summation of the byte overhead index, the time overhead index and the retransmission overhead index to generate the transmission overhead index, and combining with the reasonable allocation of weight coefficients, it can comprehensively and scientifically evaluate the transmission overhead of the link, providing an accurate basis for selecting low-overhead, high-efficiency transmission links, and significantly improving the stability and performance of data transmission.
[0042] See also Figure 2 , Figure 2 The schematic block diagram of the structure of the data transmission optimization system 100 based on the high-performance CPO switch provided in the embodiment of the present application is as follows: Figure 2 As shown, the data transmission optimization system 100 based on a high-performance CPO switch provided in an embodiment of the present application includes: The acquisition module 110 is configured to acquire the originating MAC address and the destination MAC address of the data to be transmitted.
[0043] The first generating module 120 is configured to generate a switch adjacency mapping table based on the start MAC address and the target MAC address.
[0044] The second generating module 130 is configured to generate a plurality of initial transmission links based on the start MAC address, the target MAC address, and the switch adjacency mapping table.
[0045] The third generation module 140 is used to generate, for each of the initial transmission links, a network quality index of the initial transmission link based on a preset network quality index generation method, generate a transmission overhead index of the initial transmission link based on a preset transmission overhead index generation method, and generate a link quality index of the initial transmission link based on the network quality index and the transmission overhead index.
[0046] The determination module 150 is configured to determine a target transmission link among the initial transmission links based on the link quality index of each of the initial transmission links, and transmit the data to be transmitted based on the target transmission link.
[0047] It should be noted that technical personnel in the relevant technical field can clearly understand that for the convenience and conciseness of description, the specific working process of the system and each module described above can refer to the process in the aforementioned data transmission optimization method embodiment based on high-performance CPO switch, and will not be repeated here.
[0048] The data transmission optimization system 100 based on the high performance CPO switch provided in the above embodiment can be implemented in the form of a computer program. The computer program can be used in Figure 3 The system runs on the terminal device 200 shown.
[0049] See also Figure 3 , Figure 3 This is a schematic block diagram of the structure of a terminal device 200 provided in an embodiment of the present application. The terminal device 200 includes a processor 201 and a memory 202. The processor 201 and the memory 202 are connected via a device bus 203, wherein the memory 202 can include a non-volatile storage medium and an internal memory.
[0050] The non-volatile storage medium can store a computer program. The computer program includes program instructions, and when the program instructions are executed by the processor 201, the processor 201 can execute any of the above-mentioned data transmission optimization methods based on a high-performance CPO switch.
[0051] The processor 201 is used to provide computing and control capabilities to support the operation of the entire terminal device 200.
[0052] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor 201, the processor 201 can execute any of the above-mentioned data transmission optimization methods based on the high-performance CPO switch.
[0053] Those skilled in the art will understand that Figure 3The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the terminal device 200 involved in the solution of the present application. The specific terminal device 200 can include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0054] It should be understood that the processor 201 can be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc.
[0055] In some embodiments, the processor 201 is configured to execute a computer program stored in the memory to implement the following steps: Get the source MAC address and destination MAC address of the data to be transmitted; Generate a switch adjacency mapping table based on the start MAC address and the target MAC address; Generate multiple initial transmission links based on the start MAC address, the target MAC address and the switch adjacency mapping table; For each of the initial transmission links, generating a network quality index of the initial transmission link based on a preset network quality index generation method, generating a transmission overhead index of the initial transmission link based on a preset transmission overhead index generation method, and generating a link quality index of the initial transmission link based on the network quality index and the transmission overhead index; A target transmission link is determined among the initial transmission links based on the link quality index of each of the initial transmission links, and the data to be transmitted is transmitted based on the target transmission link.
[0056] It should be noted that technical personnel in the relevant field can clearly understand that for the convenience and conciseness of description, the specific working process of the terminal device 200 described above can refer to the process of the aforementioned data transmission optimization method based on high-performance CPO switch, and will not be repeated here.
[0057] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by one or more processors, the one or more processors implement the data transmission optimization method based on a high-performance CPO switch as provided in an embodiment of the present application.
[0058] The computer-readable storage medium can be an internal storage unit of the terminal device 200 in the aforementioned embodiment, such as a hard disk or memory of the terminal device 200. The computer-readable storage medium can also be an external storage device of the terminal device 200, such as a plug-in hard disk, a smart memory card (SMC), a secure digital (SD) card, a flash card, etc. equipped with the terminal device 200.
[0059] The above is only a specific implementation method of this application, but the scope of protection of this application is not limited to this. Any person skilled in the art can easily conceive of various equivalent modifications or replacements within the technical scope disclosed in this application, and such modifications or replacements should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A data transmission optimization method based on a high-performance CPO switch, characterized in that: include: Get the source MAC address and destination MAC address of the data to be transmitted; Generate a switch adjacency mapping table based on the start MAC address and the target MAC address; Generate multiple initial transmission links based on the start MAC address, the target MAC address and the switch adjacency mapping table; For each of the initial transmission links, generating a network quality index of the initial transmission link based on a preset network quality index generation method, generating a transmission overhead index of the initial transmission link based on a preset transmission overhead index generation method, and generating a link quality index of the initial transmission link based on the network quality index and the transmission overhead index; A target transmission link is determined among the initial transmission links based on the link quality index of each of the initial transmission links, and the data to be transmitted is transmitted based on the target transmission link.
2. The data transmission optimization method based on a high-performance CPO switch according to claim 1, characterized in that: Generating the network quality index of the initial transmission link based on a preset network quality index generation method includes: Obtaining network quality information between each sub-transmission link of the initial transmission link, wherein a link between two adjacent switches of the initial transmission link constitutes a sub-transmission link of the initial transmission link, and the network quality information includes available bandwidth, delay duration, and packet loss rate; Generating a transmission capability index based on each of the available bandwidths, generating a transmission rate index based on each of the delay durations, and generating a transmission stability index based on each of the packet loss rates; The transmission capability index, the transmission rate index and the transmission stability index are weighted and summed to obtain the network quality index; wherein the weight coefficient of the transmission stability index is greater than the weight coefficient of the transmission capability index, and the weight coefficient of the transmission capability index is greater than the weight coefficient of the transmission rate index.
3. The data transmission optimization method based on a high-performance CPO switch according to claim 2, characterized in that: Generating a transmission capability index based on each available bandwidth, generating a transmission rate index based on each delay duration, and generating a transmission stability index based on each packet loss rate includes: Calculating a first standard deviation between the available bandwidths, and determining a ratio between a maximum available bandwidth among the available bandwidths and the first standard deviation as the transmission capability index; Calculating the sum of the delay durations, and determining the reciprocal of the sum of the delay durations as the transmission rate index; A second standard deviation between the packet loss rates is calculated, and a reciprocal of a product of the second standard deviation and a minimum packet loss rate among the packet loss rates is determined as the transmission stability index.
4. The data transmission optimization method based on a high-performance CPO switch according to claim 1, characterized in that: Generating the transmission overhead index of the initial transmission link based on a preset transmission overhead index generation method includes: Obtaining the MTU of each switch in the initial transmission link, determining the minimum MTU among the MTUs as the target MTU, and subtracting IP header bytes from the target MTU to obtain the payload of each switch; Obtaining a total number of bytes of the data to be transmitted, and determining a number of fragments of the data to be transmitted based on the total number of bytes and the payload; Determine the product of the number of fragments and the IP header bytes as the protocol header byte overhead; Determine the sum of the delay durations of the sub-transmission links of the initial transmission link as the single-slice transmission delay duration; a link between two adjacent switches of the initial transmission link constitutes a sub-transmission link of the initial transmission link; Determining a reassembly delay duration based on the number of fragments and the single-fragment transmission delay duration; For each fragment of the data to be transmitted, generating a transmission success probability corresponding to the fragment based on the packet loss rate corresponding to each of the sub-transmission links; Generating a retransmission probability of the initial transmission link based on the transmission success probability corresponding to each of the slices; The transmission overhead index is generated based on the protocol header byte overhead, the reassembly delay duration, and the retransmission probability.
5. The data transmission optimization method based on a high-performance CPO switch according to claim 4, characterized in that: Generating the transmission overhead index based on the protocol header byte overhead, the reassembly delay duration, and the retransmission probability includes: Determining whether the retransmission probability is greater than a preset retransmission probability; If so, determining that the transmission overhead index is infinite; If not, calculating the sum of the bytes between the protocol header byte overhead and the total bytes, and determining a ratio of the protocol header byte overhead to the sum of the bytes as a byte overhead index; pass Generate time overhead index; where, is the time cost index, is the reorganization delay duration, is the single-slice transmission delay; Determining the retransmission probability as a retransmission overhead index; The byte overhead index, the time overhead index and the retransmission overhead index are weighted and summed to obtain the transmission overhead index; wherein, the weight coefficient of the retransmission overhead index is greater than the weight coefficient of the byte overhead index, and the weight coefficient of the byte overhead index is greater than the weight coefficient of the time overhead index.
6. The data transmission optimization method based on a high-performance CPO switch according to claim 4, characterized in that: Generating the transmission success probability corresponding to the slice based on the packet loss rate corresponding to each of the sub-transmission links includes: pass Generate the transmission success probability; wherein, is the transmission success probability, Indicates that the initial transmission link includes sub-transmission links, Indicates the The corresponding packet loss rate of each sub-link.
7. The data transmission optimization method based on a high-performance CPO switch according to claim 6, characterized in that: Generating the retransmission probability of the initial transmission link based on the transmission success probability corresponding to each of the fragments includes: pass Generate a retransmission probability of the initial transmission link; wherein, is the retransmission probability, Indicates the number of shards.
8. A data transmission optimization system based on a high-performance CPO switch, characterized in that: include: An acquisition module is used to obtain the starting MAC address and the destination MAC address of the data to be transmitted; A first generating module, configured to generate a switch adjacency mapping table based on the start MAC address and the target MAC address; A second generating module, configured to generate a plurality of initial transmission links based on the start MAC address, the target MAC address and the switch adjacency mapping table; a third generating module, configured to generate, for each of the initial transmission links, a network quality index of the initial transmission link based on a preset network quality index generating method, generate a transmission overhead index of the initial transmission link based on a preset transmission overhead index generating method, and generate a link quality index of the initial transmission link based on the network quality index and the transmission overhead index; A determination module is configured to determine a target transmission link among the initial transmission links based on a link quality index of each of the initial transmission links, and transmit the data to be transmitted based on the target transmission link.
Citation Information
Patent Citations
Congestion control method, system and device, computer equipment and storage medium
CN118900253A
Network routing using a retransmission-time-based link metric
US20090238075A1
Method and device in a packet switched network
US6606303B1