Performance optimization method and system for transmission network, and storage medium
Customer data is sorted and adjusted through the client module, and combined with the correctness inspection and confirmation mechanism of the server, it solves the problem of insufficient performance of the transmission network and realizes efficient and timely data transmission and processing.
Patent Information
- Application Number
- CN202411596245.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2044-11-11
AI Technical Summary
The prior art has failed to effectively improve the performance of the transmission network to ensure the timeliness of the server processing of customer data.
The client module sorts and sends customer data according to characteristic values from small to large. The server performs a correctness check and sends a confirmation message. The client adjusts the data sending strategy according to the confirmation situation and monitoring time, including retransmission and increase in characteristic values.
Through uninterruptible transmission of customer data, the transmission efficiency of the transmission network is improved, and the timely processing of customer data is ensured. At the same time, the data scale of network speed and customer data can be accurately set, and the performance of the transmission network can be improved.
Smart Images

Figure CN119363738A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data transmission, and in particular relates to a performance optimization method, system and storage medium for a transmission network. Background Art
[0002] The transmission network is used to transmit the client's customer data to the server. The server processes the received customer data and provides related services to the client. The performance of the transmission network is related to the client's user experience.
[0003] The patent application with publication number WO2018133402A1 discloses a service transmission method, network device and network system, wherein the method includes: a first network device obtains a FlexE customer service and obtains clock information corresponding to the customer service, the first network device maps the customer service and clock information to the time slot of the FlexE frame, the customer service and clock information occupy the same and / or different time slots, the first network device sends the FlexE frame to the second network device, and the patent application can realize the transparent transmission of service clock information in the flexible Ethernet. In addition, the patent application with publication number WO2018171599A1 provides a method and network side node for transmitting data, which is conducive to improving the reliability of data transmission between network side nodes, the method includes: a first network side node receives at least one data packet from a second network side node, the first network side node sends reception status information to the second network side node according to at least one data packet, wherein at least one data packet and the unreceived data packet are radio resource control RRC data packets, and / or at least one data packet and the unreceived data packet are data packets transmitted through signaling radio bearer SRB; and / or at least one data packet and the unreceived data packet are data packets of the first terminal device. However, none of the above patent applications considers how to improve the performance of the transmission network to ensure the timeliness of the server processing customer data. Summary of the invention
[0004] The client module sends the client data to the server module in sequence, monitors and processes each sent client data, the server module performs a correctness check on the received client data, and sends a confirmation message to the client module. If the confirmation message of the sent client data is not received, the client module sends the sent client data to the server module again. When the monitoring time corresponding to the sent client data reaches the preset elapsed time 2, the client module increases the characteristic value of the next client data to be sent by a preset specific value. The present invention aims to ensure the timeliness of the server module in processing client data.
[0005] In order to achieve the above-mentioned object of the invention, the present invention provides the following performance optimization method for a transmission network, which mainly includes the following steps:
[0006] The client module sorts the plurality of customer data in ascending order according to the corresponding characteristic values, and sends the plurality of customer data and the characteristic values corresponding to the plurality of customer data to the server module in sequence based on the sorting result, and starts monitoring processing at the same time as the first customer data is sent;
[0007] While the sending process of the client module is in progress, the server module performs a correctness check on the received client data, and if the check result is correct, sends a confirmation message to the client module, the confirmation message including the characteristic value of the received client data;
[0008] Regarding the sent customer data, the client module determines whether a confirmation message is received. If a confirmation message is received, the monitoring process for the sent customer data is terminated. If a confirmation message is not received, when the monitoring time corresponding to the sent customer data is an integer multiple of the preset elapsed time one, the sent customer data is sent to the server module again. When the monitoring time corresponding to the sent customer data reaches the preset elapsed time two, the next step is continued.
[0009] The client module increases the characteristic value of the next customer data to be sent by a preset specific value, and after receiving the next customer data, the server module checks whether the difference between the characteristic value of the next customer data and the characteristic value of the last received customer data is greater than half of the specific value. If so, the last received customer data and all previous customer data are deleted.
[0010] As a preferred technical solution of the present invention, before the client module sends the first customer data to the server module, it also includes: the client module divides the complete business data to be sent into several customer data, and repeatedly uses values from 1 to N1 to assign corresponding characteristic values to the several customer data.
[0011] As a preferred technical solution of the present invention, the specific value is N1 / 2
[0012] As a preferred technical solution of the present invention, the monitoring processing performed by the client module includes: setting the flag value to 1, increasing the flag value by 1 every preset time interval, resetting the flag value to 1 after the flag value is N2, continuing to update the flag value, and in the process of updating the flag value, for each customer data, recording the flag value at the time when the customer data is sent, using the flag value at the current time to subtract the flag value at the time when the customer data is sent to obtain the monitoring value of the customer data, and the monitoring time of the customer data is the result value of multiplying the monitoring value of the customer data by the time interval.
[0013] As a preferred technical solution of the present invention, the entire sending process of the client module corresponds to several consecutive preset time periods, and the control end module performs the following steps in each time period:
[0014] The control end module sets the initial value of the network speed to a first speed, and the client module sequentially sends a plurality of client data and characteristic values corresponding to the plurality of client data to the server end module based on the first speed;
[0015] Regarding the repeatedly sent client data, when the monitoring time corresponding to the repeatedly sent client data does not reach the elapsed time 2 and the client module receives a confirmation message of the repeatedly sent client data, the control end module sets the network speed to a second speed greater than the first speed, and sends a client data to the server end module based on the second speed. Then, the control end module sets the network speed to a third speed less than the first speed, and sends a client data to the server end module based on the third speed. Then, the control end module sets the network speed to the first speed, and sends several client data to the server end module in sequence based on the first speed. Before the end of the time period, the control end module repeats this step. After the end of the time period, the control end module determines the initial value of the network speed for the next time period.
[0016] As a preferred technical solution of the present invention, after the time period ends, the control end module determines the initial value of the network speed in the next time period, including the following steps:
[0017] The control end module determines whether there is client data that needs to be sent. If not, the third speed of the current time period is used as the initial value of the network speed of the next time period. If yes, it is determined whether the result of multiplying the first performance indicator when the network speed is the second speed and the preset value is greater than the first performance indicator when the network speed is the first speed. If yes, it is determined whether the second performance indicator is greater than the preset second performance indicator threshold. If yes, the first speed of the current time period is used as the initial value of the network speed of the next time period. If not, the second speed of the current time period is used as the initial value of the network speed of the next time period.
[0018] In the case where the result value of multiplying the first performance indicator when the network speed is the second speed and the preset value is less than or equal to the first performance indicator when the network speed is the first speed, determine whether the result value of multiplying the first performance indicator when the network speed is the third speed and the preset value is greater than the first performance indicator when the network speed is the first speed. If so, determine whether the second performance indicator is greater than a preset second performance indicator threshold. If so, use the third speed of the current time period as the initial value of the network speed of the next time period. If so, use the first speed of the current time period as the initial value of the network speed of the next time period.
[0019] When the result of multiplying the first performance indicator when the network speed is the third speed and the preset value is less than or equal to the first performance indicator when the network speed is the first speed, determine whether the second performance indicator is greater than the preset second performance indicator threshold. If so, take the third speed of the current time period as the initial value of the network speed of the next time period; if not, take the first speed of the current time period as the initial value of the network speed of the next time period.
[0020] As a preferred technical solution of the present invention, the first performance indicator refers to the ratio of the total number of all client data sent by the client module to the total time for all client data to reach the server module, and the second performance indicator refers to the ratio of the total number of client data sent by the client module but not received by the server module and determined by the server module to be incorrect divided by the total number of all client data sent by the client module.
[0021] As a preferred technical solution of the present invention, the client module adjusts the data size of the client data to be sent in the entire sending process through the following steps:
[0022] Regarding the repeatedly sent client data, the client module sets the data size of the client data to be sent to a minimum value when the monitoring time corresponding to the repeatedly sent client data reaches the elapsed time 2 and no confirmation message of the repeatedly sent client data has been received;
[0023] After a preset detection time has passed, the client module determines different erroneous client data sequences, the erroneous client data sequences are composed of a number of erroneous client data with corresponding feature values being continuous, and the erroneous client data are client data that has been sent and the corresponding monitoring time reaches the elapsed time 2 and the client module has not received a corresponding confirmation message;
[0024] The client module accumulates the number of erroneous client data in different erroneous client data sequences, divides the accumulated result by the number of erroneous client data sequences to obtain a calculation result, and sets the data size of the client data to be sent to the product of the minimum value and the calculation result.
[0025] The present invention also provides a performance optimization system for a transmission network, comprising the following modules:
[0026] The client module is used to sort the plurality of customer data in ascending order according to the corresponding characteristic values, and send the plurality of customer data and the characteristic values corresponding to the plurality of customer data to the server module in sequence based on the sorting result, and start monitoring processing when sending the first customer data;
[0027] It is also used to determine whether a confirmation message has been received for the sent customer data. If a confirmation message has been received, the monitoring process for the sent customer data is terminated. If a confirmation message has not been received, the sent customer data is sent to the server module again when the monitoring time corresponding to the sent customer data is an integer multiple of the preset elapsed time one. When the monitoring time corresponding to the sent customer data reaches the preset elapsed time two, the characteristic value of the next customer data to be sent is increased by a preset specific value.
[0028] The server module is used to check the correctness of the received client data while the sending process of the client module is in progress, and if the check result is correct, send a confirmation message to the client module, the confirmation message includes the characteristic value of the received client data, and after receiving the next client data, check whether the difference between the characteristic value of the next client data and the characteristic value of the last received client data is greater than half of a specific value, and if so, delete the last received client data and all previous client data;
[0029] A network module, used to transmit the client data of the client module to the server module;
[0030] The control end module is used to perform control processing within the time period corresponding to the entire sending process of the client module.
[0031] The present invention also provides a storage medium, wherein the storage medium stores program instructions, wherein when the program instructions are executed, the device where the storage medium is located is controlled to execute any one of the above methods.
[0032] Compared with the prior art, the beneficial effects of the present invention are at least as follows:
[0033] In the present invention, first, the client module sends several client data to the server module in sequence, and starts monitoring and processing while sending the first client data; secondly, the server module performs a correctness check on the received client data, and sends a confirmation message to the client module if there is no problem with the check result; again, regarding the client data that has been sent, the client module determines whether the confirmation message is received, and if it is not received, when the monitoring time corresponding to the client data that has been sent is an integer multiple of the preset elapsed time one, the client data that has been sent is sent to the server module again; finally, when the monitoring time corresponding to the client data that has been sent reaches the preset elapsed time two, the client module increases the characteristic value of the next client data to be sent by a preset specific value, and the server module checks whether the difference between the characteristic value of the next client data and the characteristic value of the last received client data is greater than one-half of the specific value. The present invention ensures that the transmission network has a high transmission efficiency by transmitting client data uninterruptedly, and can also improve the timeliness of processing client data. In addition, the present invention can also accurately set the network speed and the data size of the client data, thereby achieving the effect of improving the performance of the transmission network. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A flow chart of the steps of the method for optimizing the performance of a transmission network according to the present invention;
[0035] Figure 2 It is a structural diagram of the composition of the performance optimization system for the transmission network of the present invention. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0037] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script.
[0038] refer to Figure 1 As shown, the present invention provides a performance optimization method for a transmission network, which is implemented by executing the following main steps:
[0039] Step 1: The client module sorts a number of customer data in ascending order according to the corresponding characteristic values, and sends a number of customer data and characteristic values corresponding to the customer data to the server module in sequence based on the sorting result, and starts monitoring processing when sending the first customer data;
[0040] Step 2: While the client module is sending, the server module performs a correctness check on the received client data. If the check result is correct, a confirmation message is sent to the client module, and the confirmation message includes the characteristic value of the received client data.
[0041] Step 3: With respect to the sent customer data, the client module determines whether a confirmation message is received. If a confirmation message is received, the monitoring process for the sent customer data is terminated. If a confirmation message is not received, when the monitoring time corresponding to the sent customer data is an integer multiple of the preset elapsed time one, the sent customer data is sent to the server module again. When the monitoring time corresponding to the sent customer data reaches the preset elapsed time two, the next step is continued.
[0042] Step 4, the client module increases the characteristic value of the next customer data to be sent by a preset specific value, and after receiving the next customer data, the server module checks whether the difference between the characteristic value of the next customer data and the characteristic value of the last received customer data is greater than half of the specific value. If so, the last received customer data and all previous customer data are deleted.
[0043] Specifically, in step 1, each customer data to be sent by the client module corresponds to a characteristic value. The client module sorts several customer data in the order of the corresponding characteristic values from small to large to obtain the sorting result. Based on the sorting result, the client module sequentially sends several customer data and the characteristic values corresponding to the several customer data to the server module. It should be noted that the client module starts monitoring processing at the same time as sending the first customer data. The monitoring processing will be described in detail below. In step 2, at the same time as the sending process of the client module, the server module performs a correctness check on the received customer data. For example, the client module adds check data to the customer data. The check data is the data after the hash operation is performed on the business data in the customer data. Therefore, after receiving the customer data, the server module can perform the same hash operation on the business data in the customer data. By judging whether the operation result is consistent with the check data, the customer data is judged to be correct. If there is no problem with the check result, the server module sends a confirmation message to the client module. The confirmation message includes the characteristic value of the customer data that has been received. It should be noted that the server module always processes a certain number of customer data after receiving a certain number of customer data with continuous corresponding characteristic values. The processing result is what the client module needs. In step 3, regarding the client data that has been sent, the client module determines whether its confirmation message has been received. If it has been received, the client data that has been sent will no longer be monitored and processed. If it has not been received, when the monitoring time corresponding to the client data that has been sent is an integer multiple of the elapsed time one, the client data that has been sent will be sent to the server module again. That is to say, before the monitoring time corresponding to the client data that has been sent reaches the elapsed time two, each time the monitoring time corresponding to the client data that has been sent increases by the elapsed time one, the client data that has been sent will be sent to the server module again. It should be noted that after resending the client data that has been sent, the client module then sends the client data whose corresponding characteristic value has not yet been sent and is the smallest, and when the monitoring time corresponding to the client data that has been sent reaches the elapsed time two, step 4 is continued, wherein the elapsed time two is greater than the elapsed time one, and the elapsed time one and the elapsed time two are set according to the actual application scenario.In step 4, the client module increases the characteristic value of the next client data to be sent by a preset specific value. For ease of understanding, for example, the client module sends client data A, client data B, and client data C to the server module in sequence, wherein the characteristic values corresponding to client data A, client data B, and client data C are 0, 1, and 2, respectively. If the client module has not received its confirmation message when the monitoring time corresponding to client data B reaches time 2, then the client module increases the characteristic value of client data D to be sent by a specific value. The value of the specific value will be described below. After that, after receiving the next client data, the server module continues with the above example. The next client data, i.e., client data D, is sent to the server. The client data D is received, and the difference between the characteristic value of the next client data and the characteristic value of the last received client data is checked to see whether it is greater than one-half of a specific value. If it is, it means that the last received client data and all the client data before the last received client data are discontinuous. It should be noted that these client data actually refer to the client data that have not been processed by the server module. Because the result of processing these client data is inaccurate, the last received client data and all the client data before the last received client data are deleted. Continuing with the above example, the client data to be deleted is all the unprocessed client data received before the client data D. Through the above method, uninterrupted transmission of client data can be achieved without waiting for the confirmation message of the last client data to be received before sending the next client data. This not only ensures that the transmission network has a high transmission efficiency, but also enables the client data to be processed in a timely manner.
[0044] Furthermore, before the client module sends the first client data to the server module, the method further includes: the client module divides the complete service data to be sent into a plurality of client data, and repeatedly uses values from 1 to N1 to assign corresponding characteristic values to the plurality of client data;
[0045] Furthermore, the above-mentioned specific value is N1 / 2.
[0046] Specifically, the processing performed by the client module before sending the first customer data to the server module is introduced here. The client module divides the complete business data to be sent into several customer data, each of which includes a part of the complete business data and the above-mentioned inspection data about this part of the business data, and repeatedly uses the values from 1 to N1 to assign corresponding feature values to several customer data. The smaller the corresponding feature value, the earlier the customer data should be sent. For ease of understanding, for example, if N1 is 300 and all the customer data are 600, then the feature values corresponding to the first 300 customer data are 1 to 300, and the feature values corresponding to the last 300 customer data are also 1 to 300. On this basis, in this embodiment, the above-mentioned specific value is set to N1 / 2.
[0047] Furthermore, the monitoring processing performed by the client module includes: setting the flag value to 1, increasing the flag value by 1 at each preset time interval, resetting the flag value to 1 after the flag value is N2, continuing to update the flag value, and in the process of updating the flag value, for each customer data, recording the flag value of the time when the customer data is sent, using the flag value at the current time minus the flag value at the time when the customer data is sent to obtain the monitoring value of the customer data, and the monitoring time of the customer data is the result value of multiplying the monitoring value of the customer data by the time interval.
[0048] Specifically, here is introduced how to use a flag value to obtain the monitoring time corresponding to each customer data, set the flag value to 1, and repeatedly use the values from 1 to N2 to continuously update the flag value. Specifically, the flag value is increased by 1 every preset time interval, and after the flag value reaches N2, the flag value is reset to 1, and the flag value is continuously updated, wherein the time interval is set in the actual application scenario, and in the process of continuously updating the flag value, for each customer data, the flag value of the time when the customer data is sent is recorded, and the flag value of the time when the customer data is sent is subtracted from the flag value of the current time to obtain the monitoring value of the customer data. The monitoring time of the customer data refers to the result value of multiplying the monitoring value of the customer data and the time interval. Through the above method, only one flag value is set to obtain the monitoring time corresponding to all customer data, without separately monitoring the sending time of each customer data and the time from each customer data being sent to the present, which can reduce the processing burden of the transmission network and improve the performance of the transmission network.
[0049] Furthermore, the entire sending process of the client module corresponds to a number of consecutive preset time periods, and the control end module performs the following steps in each time period:
[0050] Step 1: The control end module sets the initial value of the network speed to a first speed, and the client module sequentially sends a number of client data and a number of characteristic values corresponding to the client data to the server end module based on the first speed;
[0051] Step 2, regarding the repeatedly sent client data, when the monitoring time corresponding to the repeatedly sent client data has not reached the elapsed time 2 and the client module receives a confirmation message of the repeatedly sent client data, the control end module sets the network speed to a second speed greater than the first speed, and sends a client data to the server end module based on the second speed, then the control end module sets the network speed to a third speed less than the first speed, and sends a client data to the server end module based on the third speed, then the control end module sets the network speed to the first speed, and sends several client data to the server end module in sequence based on the first speed, before the end of the time period, the control end module repeats this step, and after the end of the time period, the control end module determines the initial value of the network speed for the next time period.
[0052] Specifically, before finishing sending the client data to the server module, the client module has been sending the client data according to the description of the above steps 1 to 4. In fact, the entire sending process of the client module corresponds to several continuous preset time periods, and the time periods are set in the actual application scenarios. For ease of understanding, for example, the client module has been sending the client data according to the description of the above steps 1 to 4 between 9 a.m. and 11 a.m., and if the time period is half an hour, then the entire sending process of the client module corresponds to 4 time periods, namely 9 a.m. to 9:30 a.m., 9:30 a.m. to 10 a.m., 10 a.m. to 10:30 a.m., and 10:30 a.m. to 11 a.m.
[0053] Here we introduce the processing performed by the control end module in each time period. In step 1, the control end module sets the initial value of the network speed to the first speed. It should be noted that the control end module can set the network speed to one of several preset speeds, and the several speeds are set under actual application scenarios. In the first time period, the initial value of the network speed, i.e., the first speed, can be set manually. The first speed can be any one of several speeds. After that, the client module sends several client data and several characteristic values corresponding to the client data to the server end module in sequence based on the first speed. In step 2, if the client data is repeatedly sent to the server module, and before the monitoring time corresponding to the repeatedly sent client data reaches the elapsed time 2, the client module receives a confirmation message of the repeatedly sent client data, then the control module sets the network speed to a second speed greater than the first speed, and sends a client data to the server module based on the second speed, where the second speed is a speed adjacent to the first speed and greater than the first speed among several speeds, then the control module sets the network speed to a third speed less than the first speed, and sends a client data to the server module based on the third speed, where the third speed is a speed adjacent to the first speed and less than the first speed among several speeds, then the control module sets the network speed to the first speed. Based on the first speed, a number of client data are sent to the server module in sequence. Before the time period ends, the control module repeats step 2. After the time period ends, the control module determines the initial value of the network speed for the next time period. The determination process will be described below. The initial value of the network speed for the next time period may be any one of the first speed, the second speed, and the third speed of the first time period. For ease of understanding, for example, after the first time period ends, the control module determines that the initial value of the network speed for the next time period is the second speed of the first time period. Then, when the control module sets the initial value of the network speed to the first speed in the next time period, the value of the first speed at this time is the same as the value of the second speed of the first time period.
[0054] Furthermore, after the time period ends, the control end module determines the initial value of the network speed in the next time period, including the following steps:
[0055] Step 1, the control end module determines whether there is client data to be sent, if not, the third speed of the current time period is used as the initial value of the network speed of the next time period, if yes, determine whether the result of multiplying the first performance indicator when the network speed is the second speed and the preset value is greater than the first performance indicator when the network speed is the first speed, if greater, determine whether the second performance indicator is greater than the preset second performance indicator threshold, if yes, the first speed of the current time period is used as the initial value of the network speed of the next time period, if no, the second speed of the current time period is used as the initial value of the network speed of the next time period;
[0056] Step 2: When the result value of multiplying the first performance indicator when the network speed is the second speed by the preset value is less than or equal to the first performance indicator when the network speed is the first speed, determine whether the result value of multiplying the first performance indicator when the network speed is the third speed by the preset value is greater than the first performance indicator when the network speed is the first speed. If so, determine whether the second performance indicator is greater than a preset second performance indicator threshold. If so, use the third speed of the current time period as the initial value of the network speed of the next time period. If so, use the first speed of the current time period as the initial value of the network speed of the next time period.
[0057] Step 3: when the result of multiplying the first performance indicator when the network speed is the third speed and the preset value is less than or equal to the first performance indicator when the network speed is the first speed, determine whether the second performance indicator is greater than a preset second performance indicator threshold value; if so, use the third speed of the current time period as the initial value of the network speed of the next time period; if not, use the first speed of the current time period as the initial value of the network speed of the next time period;
[0058] Specifically, the process of determining the initial value of the network speed of the next time period by the control end module at the end of the current time period is introduced here. The network speed refers to the amount of data transmitted by the transmission network per unit time. In step 1, the control end module determines whether there is client data that needs to be sent. If not, the third speed of the current time period is used as the initial value of the network speed of the next time period. The reason why there is no client data that needs to be sent may be that the client data is not yet ready, for example, the characteristic value of the client data has not been modified. If so, it is determined whether the result of multiplying the first performance indicator when the network speed is the second speed and the preset value is greater than the first performance indicator when the network speed is the first speed. The preset value here is set in the actual application scenario. If it is greater than, it is determined whether the second performance indicator is greater than the preset second performance indicator threshold. If so, the first speed of the current time period is used as the initial value of the network speed of the next time period. If not, the second speed of the current time period is used as the initial value of the network speed of the next time period. In step 2, when the result value of multiplying the first performance indicator when the network speed is the second speed by the preset value is less than or equal to the first performance indicator when the network speed is the first speed, it is determined whether the result value of multiplying the first performance indicator when the network speed is the third speed by the preset value is greater than the first performance indicator when the network speed is the first speed, where the preset value is also set in the actual application scenario, if yes, it is determined whether the second performance indicator is greater than the preset second performance indicator threshold, if yes, the third speed of the current time period is regarded as the initial value of the network speed of the next time period, if no, the first speed of the current time period is regarded as the initial value of the network speed of the next time period. In step 3, when the result value of multiplying the first performance indicator when the network speed is the third speed by the preset value is less than or equal to the first performance indicator when the network speed is the first speed, it is determined whether the second performance indicator is greater than the preset second performance indicator threshold, if yes, the third speed of the current time period is regarded as the initial value of the network speed of the next time period, if no, the first speed of the current time period is regarded as the initial value of the network speed of the next time period, where the above-mentioned second performance indicator threshold is set in the actual application scenario. The above method can accurately determine the network speed in each time period by comprehensively considering the first performance index corresponding to different network speeds and the overall second performance index, thereby improving the performance of the transmission network.
[0059] Further, the first performance indicator refers to the ratio of the total number of all client data sent by the client module to the total time for all client data to reach the server module, and the second performance indicator refers to the ratio of the total number of client data sent by the client module but not received by the server module and determined to be incorrect by the server module divided by the total number of all client data sent by the client module.
[0060] Specifically, the calculation method of the above-mentioned first performance indicator and the above-mentioned second performance indicator is introduced here, wherein the first performance indicator corresponds to the network speed. For ease of understanding, the calculation method of the first performance indicator when the network speed is the first speed is illustrated by way of example. The first performance indicator when the network speed is the first speed is the ratio of the total number of all customer data sent by the client module to the total time for all customer data to arrive at the server module when the network speed is the first speed. The total time for all customer data to arrive at the server module is actually the time from when the first customer data is sent to when the last customer data arrives at the server module. The second performance indicator corresponds to the entire time period. The second performance indicator is the ratio of the total number of customer data sent by the client module but not received by the server module, and the total number of customer data received by the server module but judged to be incorrect, divided by the total number of all customer data sent by the client module.
[0061] Furthermore, during the entire sending process, the client module adjusts the data size of the client data to be sent through the following steps:
[0062] Step 1: With respect to the repeatedly sent client data, when the monitoring time corresponding to the repeatedly sent client data reaches the elapsed time 2 and the client module has not received a confirmation message for the repeatedly sent client data, the client module sets the data size of the client data to be sent to the minimum value;
[0063] Step 2: After a preset detection time has passed, the client module determines different error client data sequences, where the error client data sequences are composed of a number of error client data with corresponding feature values being continuous, and the error client data is the client data that has been sent and the corresponding monitoring time reaches the elapsed time 2 and the client module has not received the corresponding confirmation message;
[0064] Step 3: The client module accumulates the number of erroneous client data in different erroneous client data sequences, divides the accumulated result by the number of erroneous client data sequences to obtain a calculation result, and sets the data size of the client data to be sent to the product of the minimum value and the calculation result.
[0065] Specifically, although the client module has divided the complete business data to be sent into several customer data before sending the first customer data to the server module, the client module can also change the data scale of the customer data to be sent during the entire sending process. The data scale can be measured by the number of bits. Here, a method for the client module to adjust the data scale of the customer data to be sent is introduced. This method can be performed after the client module has sent a certain number of customer data to the server module. In step 1, for the repeatedly sent customer data, if the monitoring time corresponding to the repeatedly sent customer data reaches the elapsed time 2, and the client module has not received the confirmation message of the repeatedly sent customer data, the client module sets the data scale of the customer data to be sent to the minimum value. It should be noted that the client module sets several data scales in advance, and the minimum value here is the minimum value among the several data scales. In step 2, after a preset detection time has passed, the detection time is set in the actual application scenario, and the client module determines different error client data sequences, wherein the error client data sequence is composed of a number of error client data with corresponding characteristic values being continuous, and the error client data is the client data that has been sent when the corresponding monitoring time reaches the elapsed time 2 and the client module has not received its confirmation message. In step 3, the client module accumulates the number of error client data in different error client data sequences, divides the accumulated result by the number of error client data sequences, to obtain the calculation result, calculates the product of the above minimum value and the calculation result, and sets the product as the data scale of the client data to be sent. If the product is different from the value of any of the data scales among the several data scales, then the data scale closest to the product is set as the data scale of the client data to be sent, and then returns to step 1 to continue execution. Through the above method, the data scale of the client data to be sent can be adjusted to an appropriate size during the transmission process, and the amount of client data that cannot be received or is determined to be erroneous can be minimized, thereby improving the performance of the transmission network.
[0066] According to another aspect of the embodiment of the present invention, Figure 2 As shown, a performance optimization system for a transmission network is also provided, including a client module, a server module, a network module, and a control module, which are used to implement the performance optimization method for a transmission network as described above.
[0067] The specific functions of each module are as follows:
[0068] The client module is used to sort the plurality of customer data in ascending order according to the corresponding characteristic values, and send the plurality of customer data and the characteristic values corresponding to the plurality of customer data to the server module in sequence based on the sorting result, and start monitoring processing when sending the first customer data;
[0069] It is also used to determine whether a confirmation message has been received for the sent customer data. If a confirmation message has been received, the monitoring process for the sent customer data is terminated. If a confirmation message has not been received, the sent customer data is sent to the server module again when the monitoring time corresponding to the sent customer data is an integer multiple of the preset elapsed time one. When the monitoring time corresponding to the sent customer data reaches the preset elapsed time two, the characteristic value of the next customer data to be sent is increased by a preset specific value.
[0070] The server module is used to check the correctness of the received client data while the sending process of the client module is in progress, and if the check result is correct, send a confirmation message to the client module, the confirmation message includes the characteristic value of the received client data, and after receiving the next client data, check whether the difference between the characteristic value of the next client data and the characteristic value of the last received client data is greater than half of a specific value, and if so, delete the last received client data and all previous client data;
[0071] A network module, used to transmit the client data of the client module to the server module;
[0072] The control end module is used to perform control processing within the time period corresponding to the entire sending process of the client module.
[0073] According to another aspect of an embodiment of the present invention, a storage medium is provided, wherein the storage medium stores program instructions, wherein when the program instructions are executed, a device where the storage medium is located is controlled to execute any one of the above methods.
[0074] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0075] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The above-mentioned program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0076] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0077] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
[0078] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A performance optimization method for a transmission network, applied to a performance optimization system for a transmission network, comprising a client module, a server module, a network module, and a control module, characterized in that: The method comprises the following steps: The client module sorts the plurality of customer data in ascending order according to the corresponding characteristic values, and sends the plurality of customer data and the characteristic values corresponding to the plurality of customer data to the server module in sequence based on the sorting result, and starts monitoring processing at the same time as the first customer data is sent; While the sending process of the client module is in progress, the server module performs a correctness check on the received client data, and if the check result is correct, sends a confirmation message to the client module, the confirmation message including the characteristic value of the received client data; Regarding the sent customer data, the client module determines whether a confirmation message is received. If a confirmation message is received, the monitoring process for the sent customer data is terminated. If a confirmation message is not received, when the monitoring time corresponding to the sent customer data is an integer multiple of the preset elapsed time one, the sent customer data is sent to the server module again. When the monitoring time corresponding to the sent customer data reaches the preset elapsed time two, the next step is continued. The client module increases the characteristic value of the next customer data to be sent by a preset specific value, and after receiving the next customer data, the server module checks whether the difference between the characteristic value of the next customer data and the characteristic value of the last received customer data is greater than half of the specific value. If so, the last received customer data and all previous customer data are deleted.
2. The method according to claim 1, characterized in that: Before the client module sends the first client data to the server module, the method further includes: the client module divides the complete service data to be sent into a plurality of client data, and repeatedly uses values from 1 to N1 to assign corresponding characteristic values to the plurality of client data.
3. The method according to claim 2, characterized in that The specific value is N1 / 2.
4. The method according to claim 1, characterized in that The monitoring process performed by the client module includes: setting the flag value to 1, increasing the flag value by 1 every preset time interval, resetting the flag value to 1 after the flag value is N2, continuing to update the flag value, and in the process of updating the flag value, for each customer data, recording the flag value at the time when the customer data is sent, using the flag value at the current time to subtract the flag value at the time when the customer data is sent to obtain the monitoring value of the customer data, and the monitoring time of the customer data is the result value of multiplying the monitoring value of the customer data by the time interval.
5. The method according to claim 1, characterized in that: The entire sending process of the client module corresponds to a number of consecutive preset time periods, and the control end module performs the following steps in each time period: The control end module sets the initial value of the network speed to a first speed, and the client module sequentially sends a plurality of client data and characteristic values corresponding to the plurality of client data to the server end module based on the first speed; Regarding the repeatedly sent client data, when the monitoring time corresponding to the repeatedly sent client data does not reach the elapsed time 2 and the client module receives a confirmation message of the repeatedly sent client data, the control end module sets the network speed to a second speed greater than the first speed, and sends a client data to the server end module based on the second speed. Then, the control end module sets the network speed to a third speed less than the first speed, and sends a client data to the server end module based on the third speed. Then, the control end module sets the network speed to the first speed, and sends several client data to the server end module in sequence based on the first speed. Before the end of the time period, the control end module repeats this step. After the end of the time period, the control end module determines the initial value of the network speed for the next time period.
6. The method according to claim 5, characterized in that After the time period ends, the control end module determines the initial value of the network speed in the next time period, including the following steps: The control end module determines whether there is client data that needs to be sent. If not, the third speed of the current time period is used as the initial value of the network speed of the next time period. If yes, it is determined whether the result of multiplying the first performance indicator when the network speed is the second speed and the preset value is greater than the first performance indicator when the network speed is the first speed. If yes, it is determined whether the second performance indicator is greater than the preset second performance indicator threshold. If yes, the first speed of the current time period is used as the initial value of the network speed of the next time period. If not, the second speed of the current time period is used as the initial value of the network speed of the next time period. In the case where the result value of multiplying the first performance indicator when the network speed is the second speed and the preset value is less than or equal to the first performance indicator when the network speed is the first speed, determine whether the result value of multiplying the first performance indicator when the network speed is the third speed and the preset value is greater than the first performance indicator when the network speed is the first speed. If so, determine whether the second performance indicator is greater than a preset second performance indicator threshold. If so, use the third speed of the current time period as the initial value of the network speed of the next time period. If so, use the first speed of the current time period as the initial value of the network speed of the next time period. When the result of multiplying the first performance indicator when the network speed is the third speed and the preset value is less than or equal to the first performance indicator when the network speed is the first speed, determine whether the second performance indicator is greater than the preset second performance indicator threshold. If so, take the third speed of the current time period as the initial value of the network speed of the next time period; if not, take the first speed of the current time period as the initial value of the network speed of the next time period.
7. The method according to claim 6, characterized in that The first performance indicator refers to the ratio of the total number of all client data sent by the client module to the total time for all client data to reach the server module, and the second performance indicator refers to the ratio of the total number of client data sent by the client module but not received by the server module and determined by the server module to be incorrect divided by the total number of all client data sent by the client module.
8. The method according to claim 1, characterized in that: During the entire sending process, the client module adjusts the data size of the client data to be sent through the following steps: Regarding the repeatedly sent client data, the client module sets the data size of the client data to be sent to a minimum value when the monitoring time corresponding to the repeatedly sent client data reaches the elapsed time 2 and no confirmation message of the repeatedly sent client data has been received; After a preset detection time has passed, the client module determines different erroneous client data sequences, the erroneous client data sequences are composed of a number of erroneous client data with corresponding feature values being continuous, and the erroneous client data are client data that has been sent and the corresponding monitoring time reaches the elapsed time 2 and the client module has not received a corresponding confirmation message; The client module accumulates the number of erroneous client data in different erroneous client data sequences, divides the accumulated result by the number of erroneous client data sequences to obtain a calculation result, and sets the data size of the client data to be sent to the product of the minimum value and the calculation result.
9. A system for optimizing the performance of a transmission network, for implementing the method according to any one of claims 1 to 8, characterized in that: Includes the following modules: The client module is used to sort the plurality of customer data in ascending order according to the corresponding characteristic values, and send the plurality of customer data and the characteristic values corresponding to the plurality of customer data to the server module in sequence based on the sorting result, and start monitoring processing when sending the first customer data; It is also used to determine whether a confirmation message has been received for the sent customer data. If a confirmation message has been received, the monitoring process for the sent customer data is terminated. If a confirmation message has not been received, the sent customer data is sent to the server module again when the monitoring time corresponding to the sent customer data is an integer multiple of the preset elapsed time one. When the monitoring time corresponding to the sent customer data reaches the preset elapsed time two, the characteristic value of the next customer data to be sent is increased by a preset specific value. The server module is used to check the correctness of the received client data while the sending process of the client module is in progress, and if the check result is correct, send a confirmation message to the client module, the confirmation message includes the characteristic value of the received client data, and after receiving the next client data, check whether the difference between the characteristic value of the next client data and the characteristic value of the last received client data is greater than half of a specific value, and if so, delete the last received client data and all previous client data; A network module, used to transmit the client data of the client module to the server module; The control end module is used to perform control processing within the time period corresponding to the entire sending process of the client module.
10. A storage medium, characterized in that: The storage medium stores program instructions, wherein when the program instructions are executed, the device where the storage medium is located is controlled to execute the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Service transmission method, network device, and network system
WO2018133402A1
Data transmission method and network-side node
WO2018171599A1
Reliable data transmission method and device thereof
CN102137027A
Real-time media data transmission method, device and system
CN103905331A
Big data transmission method and system
CN110995697A