CN117914797A - Data transmission delay adjusting method and data transmission delay adjusting device - Google Patents
Data transmission delay adjusting method and data transmission delay adjusting device Download PDFInfo
- Publication number
- CN117914797A CN117914797A CN202410083770.0A CN202410083770A CN117914797A CN 117914797 A CN117914797 A CN 117914797A CN 202410083770 A CN202410083770 A CN 202410083770A CN 117914797 A CN117914797 A CN 117914797A
- Authority
- CN
- China
- Prior art keywords
- data
- transmission
- delay
- target
- receiving end
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/28—Flow control; Congestion control in relation to timing considerations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/29—Flow control; Congestion control using a combination of thresholds
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application provides a data transmission delay adjusting method and a data transmission delay adjusting device, wherein the method comprises the following steps: acquiring current network performance parameters of a data transmitting end and a data receiving end and network load between the data transmitting end and the data receiving end; according to the magnitude of the network load, the magnitude of an initial performance parameter threshold is adjusted to obtain a target performance parameter threshold; under the condition that the current network performance parameter is larger than the target performance parameter threshold, determining that delay exists in data transmission between the data sending end and the data receiving end, and outputting a delay signal; and acquiring a current adjustment parameter corresponding to the current network performance parameter, and adjusting the current network performance parameter by adopting the current adjustment parameter to reduce the data transmission delay between the data transmitting end and the data receiving end. The method solves the problem of connection loss caused by data transmission delay.
Description
Technical Field
The present application relates to the field of communications, and more particularly, to a method for adjusting data transmission delay, an apparatus for adjusting data transmission delay, and a communication system.
Background
Communication delay refers to the time that elapses from the transmission of data from a sender to the reception of data by a receiver during data transmission, and may be caused by a number of factors including data transmission distance, network congestion, packet processing time, etc.
Since excessive delay may result in a loss of connection between the sender and the receiver, a method is needed to solve the above-mentioned problems.
Disclosure of Invention
The main objective of the present application is to provide a method for adjusting data transmission delay, a device for adjusting data transmission delay, and a communication system, so as to at least solve the problem of connection loss caused by data transmission delay in the prior art.
According to an aspect of the present application, there is provided a method for adjusting data transmission delay, including: acquiring current network performance parameters of a data sending end and a data receiving end and network load between the data sending end and the data receiving end, wherein the current network performance parameters are used for representing transmission performance between the data sending end and the data receiving end at the current moment, and the data sending end is used for transmitting target data to the data receiving end; according to the size of the network load, the size of an initial performance parameter threshold is adjusted to obtain a target performance parameter threshold, wherein the initial performance parameter threshold is a preset parameter used for determining whether delay exists in data transmission between the data sending end and the data receiving end; determining that delay exists in data transmission between the data sending end and the data receiving end under the condition that the current network performance parameter is larger than the target performance parameter threshold value, and outputting a delay signal, wherein the delay signal is used for representing that delay exists in data transmission between the data sending end and the data receiving end; and acquiring a current adjustment parameter corresponding to the current network performance parameter, and adjusting the current network performance parameter by adopting the current adjustment parameter so as to reduce the data transmission delay between the data transmitting end and the data receiving end.
Optionally, adjusting the initial performance parameter threshold according to the magnitude of the network load to obtain a target performance parameter threshold, including: under the condition that the network load is smaller than a load threshold, increasing the initial performance parameter threshold to a first target value to obtain the target performance parameter threshold; and under the condition that the network load is greater than or equal to the load threshold, reducing the initial performance parameter threshold to a second target value to obtain the target performance parameter threshold, wherein the second target value is smaller than the first target value.
Optionally, obtaining the current adjustment parameter corresponding to the current network performance parameter includes: inputting the current network performance parameters into a neural network model to obtain the current adjustment parameters, wherein the neural network model is trained by machine learning through a plurality of sets of historical data, and each set of data in the plurality of sets of historical data comprises: the system comprises a historical network performance parameter and a historical adjustment parameter, wherein the historical network performance parameter is used for representing transmission performance between a data sending end and a data receiving end at a historical moment, and the historical adjustment parameter is used for adjusting the historical network performance parameter so as to reduce data transmission delay between the data sending end and the data receiving end.
Optionally, there are multiple transmission paths between the data transmitting end and the data receiving end, and after determining that there is a delay in data transmission between the data transmitting end and the data receiving end and outputting a delay signal, the method further includes: and transmitting the target data by adopting a plurality of transmission paths according to a preset communication protocol, wherein the preset communication protocol is an equal cost multi-path routing protocol or a link aggregation group protocol.
Optionally, after determining that there is a delay in data transmission between the data transmitting end and the data receiving end and outputting a delay signal, the method further includes: determining a transmission priority of the target data according to the current network performance parameter, wherein the transmission priority comprises a first priority, a second priority and a third priority; and sequentially transmitting the target data according to the third priority, the second priority and the first priority.
Optionally, the current network performance parameter includes at least a quality parameter, where the quality parameter is used to evaluate network performance of data transmission between the data sending end and the data receiving end, and determining, according to the current network performance parameter, a transmission priority of the target data includes: determining whether the quality parameter is smaller than a first parameter threshold, and determining the transmission priority of the target data as the first priority when the quality parameter is smaller than the first parameter threshold; determining whether the quality parameter is smaller than a second parameter threshold value under the condition that the quality parameter is larger than or equal to the first parameter threshold value, wherein the second parameter threshold value is larger than the first parameter threshold value; determining that the transmission priority of the target data is the second priority when the quality parameter is greater than or equal to the first parameter threshold and less than the second parameter threshold; and under the condition that the quality parameter is larger than or equal to the second parameter threshold, determining the transmission priority of the target data as the third priority.
Optionally, the data receiving end includes a buffer, where the buffer is used to store data, and the method further includes: adjusting the storage amount of the buffer area to a third target value under the condition that the transmission priority of the target data is the first priority; adjusting the storage amount of the buffer area to a fourth target value under the condition that the transmission priority of the target data is the second priority, wherein the fourth target value is larger than the third target value; and under the condition that the transmission priority of the target data is the third priority, adjusting the storage amount of the buffer area to a fifth target value, wherein the fifth target value is larger than the fourth target value.
Optionally, after determining that there is a delay in data transmission between the data transmitting end and the data receiving end and outputting a delay signal, the method further includes: determining whether the data stored in the buffer area is identical to the target data; and stopping receiving the target data sent by the data sending end under the condition that the data stored in the buffer area is the same as the target data.
According to another aspect of the present application, there is provided an adjusting apparatus of data transmission delay, including: the system comprises an acquisition unit, a data transmission unit and a data receiving unit, wherein the acquisition unit is used for acquiring current network performance parameters of a data transmission end and a data receiving end and network loads between the data transmission end and the data receiving end, the current network performance parameters are used for representing transmission performance between the data transmission end and the data receiving end at the current moment, and the data transmission end is used for transmitting target data to the data receiving end; the first adjusting unit is used for adjusting the initial performance parameter threshold according to the magnitude of the network load to obtain a target performance parameter threshold, wherein the initial performance parameter threshold is a preset parameter used for determining whether delay exists in data transmission between the data sending end and the data receiving end; a first determining unit, configured to determine that there is a delay in data transmission between the data transmitting end and the data receiving end when the current network performance parameter is greater than the target performance parameter threshold, and output a delay signal, where the delay signal is used to characterize that there is a delay in data transmission between the data transmitting end and the data receiving end; and the second adjusting unit is used for acquiring the current adjusting parameter corresponding to the current network performance parameter, and adjusting the current network performance parameter by adopting the current adjusting parameter so as to reduce the data transmission delay between the data transmitting end and the data receiving end.
According to still another aspect of the present application, there is provided a communication system including: one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing any of the methods.
By applying the technical scheme of the application, firstly, the current network performance parameters of the data sending end and the data receiving end and the network load between the data sending end and the data receiving end are obtained; according to the magnitude of the network load, the magnitude of the initial performance parameter threshold is adjusted to obtain a target performance parameter threshold; then, under the condition that the current network performance parameter is larger than the target performance parameter threshold, determining that delay exists in data transmission between the data sending end and the data receiving end, and outputting a delay signal; and finally, acquiring a current adjustment parameter corresponding to the current network performance parameter, and adjusting the current network performance parameter by adopting the current adjustment parameter to reduce the data transmission delay between the data transmitting end and the data receiving end. The threshold is dynamically adjusted according to the network load size instead of using a fixed threshold to detect excessive delay, the accuracy of detecting the data transmission delay can be improved in the process of judging according to the current network performance parameter and the threshold, and then the current network performance parameter is adjusted by adopting the current adjustment parameter, so that the lost connection is relieved by too much delay, and the problem of connection loss caused by the data transmission delay is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application. In the drawings:
fig. 1 is a block diagram showing a hardware configuration of a mobile terminal performing a method of adjusting data transmission delay according to an embodiment of the present application;
Fig. 2 is a flow chart illustrating a method for adjusting data transmission delay according to an embodiment of the present application;
Fig. 3 is a schematic flowchart of a method for adjusting data transmission delay according to an embodiment of the present application;
fig. 4 is a block diagram showing a structure of an apparatus for adjusting data transmission delay according to an embodiment of the present application.
Wherein the above figures include the following reference numerals:
102. a processor; 104. a memory; 106. a transmission device; 108. and an input/output device.
Detailed Description
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the application herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As described in the background art, in the prior art, excessive delay may cause connection loss between a sender and a receiver, and in order to solve the above problem, embodiments of the present application provide a data transmission delay adjustment method, a data transmission delay adjustment device, and a communication system.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal according to a method for adjusting data transmission delay according to an embodiment of the present application. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a method for adjusting data transmission delay in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, implement the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as a NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In the present embodiment, a method for adjusting data transmission delay running on a mobile terminal, a computer terminal, or a similar computing device is provided, it should be noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different from that herein.
Fig. 2 is a flowchart of a method of adjusting data transmission delay according to an embodiment of the present application. As shown in fig. 2, the method comprises the steps of:
step S201, current network performance parameters of a data sending end and a data receiving end and network loads between the data sending end and the data receiving end are obtained, wherein the current network performance parameters are used for representing transmission performance between the data sending end and the data receiving end at the current moment, and the data sending end is used for transmitting target data to the data receiving end;
Specifically, the network performance parameters may include, but are not limited to, the following: bandwidth, delay, packet loss rate, throughput and network jitter, wherein bandwidth refers to the maximum speed of network transmission data, and is measured by the number of bits transmitted per second, and the higher the bandwidth, the faster the network transmission speed; delay refers to the time required by data from a transmitting end to a receiving end, measured in milliseconds, the lower the delay, the faster the network response speed; the packet loss rate refers to the proportion of data packets lost by the network when transmitting data, and the lower the packet loss rate is, the more reliable the network transmission is; throughput refers to the data quantity which can be transmitted by a network in unit time, and the higher the throughput is, the higher the network transmission efficiency is; network jitter refers to the instability of the network in transmitting data, measured by the variance of the time interval of the data packet reaching the receiving end, and the smaller the jitter, the more stable the network transmission. The network load refers to the load and pressure born by the network in the data transmission process, the size of the network load depends on factors such as data transmission quantity, network bandwidth, network topology structure, network equipment performance and the like, the size of the network load directly influences the speed and stability of data transmission, and especially the influence on data transmission with high real-time requirements is larger.
Step S202, according to the magnitude of the network load, the magnitude of an initial performance parameter threshold is adjusted to obtain a target performance parameter threshold, wherein the initial performance parameter threshold is a preset parameter used for determining whether delay exists in data transmission between the data sending end and the data receiving end;
Specifically, different target performance parameter thresholds are set according to different network load sizes, so that delay detection under the condition of different network load sizes can be met.
Step S203, determining that there is a delay in data transmission between the data sending end and the data receiving end and outputting a delay signal when the current network performance parameter is greater than the target performance parameter threshold, wherein the delay signal is used for representing that there is a delay in data transmission between the data sending end and the data receiving end;
Specifically, the target performance parameter threshold may be set in a network monitoring tool, for example: cacti. When the current network performance parameter exceeds the target performance parameter threshold, the system can send out an alarm, and an administrator can be notified through an email, a short message or other instant communication tools by configuring the real-time alarm system.
Step S204, obtaining the current adjustment parameter corresponding to the current network performance parameter, and adjusting the current network performance parameter by adopting the current adjustment parameter to reduce the data transmission delay between the data transmitting end and the data receiving end.
In particular, in the case where the current network performance parameter includes bandwidth, the delay of data transmission may be reduced by increasing the network bandwidth. In the case that the current network performance parameters include configuration parameters of the router and the switch, the configuration parameters of the router and the switch can be adjusted, so that the transmission time of the data packet in the network is reduced. The adjusted network bandwidth value and the configuration parameter value are the current adjustment parameters corresponding to the current network performance parameters.
Through the embodiment, a method for adjusting data transmission delay is provided, firstly, current network performance parameters of a data sending end and a data receiving end and network load between the data sending end and the data receiving end are obtained; according to the magnitude of the network load, the magnitude of the initial performance parameter threshold is adjusted to obtain a target performance parameter threshold; then, under the condition that the current network performance parameter is larger than the target performance parameter threshold, determining that delay exists in data transmission between the data sending end and the data receiving end, and outputting a delay signal; and finally, acquiring a current adjustment parameter corresponding to the current network performance parameter, and adjusting the current network performance parameter by adopting the current adjustment parameter to reduce the data transmission delay between the data transmitting end and the data receiving end. The threshold is dynamically adjusted according to the network load, instead of using a fixed threshold to detect excessive delay, the accuracy of detecting the data transmission delay can be improved in the process of judging according to the current network performance parameter and the threshold, and then the current network performance parameter is adjusted by adopting the current adjustment parameter, so that the lost connection is reduced due to excessive delay recovery, and the problem of connection loss caused by the data transmission delay is solved.
In a specific implementation process, the step S202 may be implemented by the following steps: step S2021, when the network load is less than the load threshold, increasing the initial performance parameter threshold to a first target value to obtain the target performance parameter threshold; step S2022, when the network load is equal to or greater than the load threshold, of decreasing the initial performance parameter threshold to a second target value, to obtain the target performance parameter threshold, wherein the second target value is smaller than the first target value. The method can further meet the accuracy of delay detection under the condition of different network load sizes.
In particular, in the case that the network load is smaller than the load threshold, it is indicated that the network load is lighter, and the adaptive threshold may be automatically increased, so that the delay alarm signal is not triggered due to normal delay fluctuation, that is, false positives may be reduced. The network load is larger than or equal to the load threshold, so that the network load is relatively heavy, the self-adaptive threshold can be automatically reduced, and potential performance problems can be timely found even under the condition of relatively small delay, namely false negatives can be reduced.
In order to further timely and efficiently obtain the current adjustment parameters corresponding to the current network performance parameters, the step S204 of the present application may be implemented by the following steps: step S2041, inputting the current network performance parameter into a neural network model to obtain the current adjustment parameter, where the neural network model is trained by machine learning using a plurality of sets of historical data, and each set of data in the plurality of sets of historical data includes: the system comprises a historical network performance parameter and a historical adjustment parameter, wherein the historical network performance parameter is used for representing transmission performance between the data sending end and the data receiving end at a historical moment, and the historical adjustment parameter is used for adjusting the historical network performance parameter so as to reduce data transmission delay between the data sending end and the data receiving end.
Specifically, in practical application, the training process of the neural network model is as follows: first, a large amount of historical data is collected about network performance, such as: the device reports frequency data of the data, the data amount in the network, etc. And then carrying out denoising and outlier preprocessing on the data, extracting key characteristic values as data input of an initial model, continuously learning and adapting to network change behaviors by the system, and improving prediction and judgment to obtain the neural network model. Inputting a large amount of data of the current network performance parameters obtained by real-time monitoring into the neural network model, and obtaining the current adjustment parameters corresponding to the current network performance parameters.
The data transmitting end and the data receiving end have a plurality of transmission paths therebetween, and the step S203 may be implemented in other manners, for example: in step S205, the target data is transmitted by using a plurality of transmission paths according to a predetermined communication protocol, where the predetermined communication protocol is an equal cost multi-path routing protocol or a link aggregation group protocol. The method adopts a preset communication protocol to disperse the flow to different paths, so that congestion can be avoided, and the time delay is further reduced.
In particular, the Equal Cost Multi-Path (ECMP routing protocol) is a routing algorithm for selecting multiple Equal paths in a network. In conventional routing protocols, when a router encounters multiple equivalent paths, only one of the paths is typically selected for data transmission. The ECMP protocol allows the router to simultaneously utilize a plurality of equivalent paths for data transmission when encountering the paths, thereby improving the bandwidth utilization rate and the load balancing capability of the network. The working principle of the ECMP protocol is that a plurality of equivalent paths are stored for the same destination network in a routing table of a router, and one path is selected for forwarding according to a certain load balancing algorithm when a data packet arrives. The link aggregation group protocol (Link Aggregation Group, abbreviated LAG routing protocol) is a protocol for combining multiple physical links into a single logical link. This technique may provide higher bandwidth, redundancy, and load balancing, thereby improving the performance and reliability of the network. LAG routing protocols allow multiple physical links to be logically combined into one larger link, thereby increasing overall bandwidth and reliability. When one of the physical links fails, the data can be automatically switched to other normal links, thereby ensuring the connectivity of the network. In the LAG routing protocol, data transmission between multiple physical links is load balanced by a specific algorithm. According to different conditions, such as a source IP address, a destination IP address, a source port, a destination port and the like, data are distributed to different physical links so as to realize the maximum utilization of bandwidth and the balanced distribution of network traffic. Common LAG routing protocols include LACP (Link Aggregation Control Protocol), PAGP (Port Aggregation Protocol) and static link aggregation.
In some embodiments, the following steps may be implemented after the step S203: step S206, determining the transmission priority of the target data according to the current network performance parameter, wherein the transmission priority comprises a first priority, a second priority and a third priority; step S207, transmitting the target data in sequence according to the third priority, the second priority and the first priority. The method can ensure that important data is processed preferentially in the transmission process by determining the transmission priority, and further improve the efficiency and the speed of data transmission.
Specifically, the method can further reduce the risk of data loss, increase the transmission priority of important data, reduce the risk of data loss, ensure that the important data can be transmitted and received in time, optimize the network transmission flow, improve the network quality and reduce the network congestion and delay.
The current network performance parameter at least includes a quality parameter, where the quality parameter is used to evaluate the network performance of the data transmission between the data transmitting end and the data receiving end, and the step S206 may be implemented by: step S2061 of determining whether the quality parameter is smaller than a first parameter threshold, and determining the transmission priority of the target data as the first priority if the quality parameter is smaller than the first parameter threshold; step S2062 of determining whether the quality parameter is smaller than a second parameter threshold value, which is larger than the first parameter threshold value, when the quality parameter is equal to or larger than the first parameter threshold value; step S2063 of determining the transmission priority of the target data as the second priority when the quality parameter is equal to or greater than the first parameter threshold and is less than the second parameter threshold; in step S2064, when the quality parameter is equal to or greater than the second parameter threshold, the transmission priority of the target data is determined to be the third priority. According to the method, the transmission priority of the target data is determined according to the size of the quality parameter, so that the important data can be further ensured to be transmitted timely and reliably.
In particular, the quality parameter may be quality of experience or quality of service, where quality of experience (Quality of Experience, abbreviated as QoE) refers to the overall quality of experience of a user when using a certain service or product. It is not only concerned with technical indicators but also the user's perception and satisfaction with the service. For example: reliability of service, response speed, interface friendliness, audiovisual quality, interactive experience, etc. QoE is a subjective concept because it depends on the user's personal experience and desire. For example, for video streaming services, qoE may be affected by factors such as video quality, buffering delay, smoothness of play, etc. Quality of service (Quality of Service, abbreviated QoS) refers to the quality of service that the system provides for a particular data flow in network communications. The method comprises the technical indexes of reliability, bandwidth, time delay, jitter and the like of the network. QoS ensures stability and reliability of data transmission through network devices and protocols, thereby ensuring that a specific quality of service meets the needs of users. When the quality parameter is smaller than the first parameter threshold, indicating that the data priority is general and the first priority is the first priority, and only allocating general resources is needed; when the quality parameter is greater than or equal to the first parameter threshold and less than the second parameter threshold, indicating that the data priority is medium, namely the second priority, and allocating medium resources; and when the quality parameter is greater than or equal to the second parameter threshold, indicating that the data priority is higher, preferentially allocating higher resources, and preferentially transmitting.
The data receiving end includes a buffer area, where the buffer area is used to store data, and in one embodiment, the method may further be implemented by the following steps: step S2081, adjusting the storage amount of the buffer to a third target value when the transmission priority of the target data is the first priority; step S2082, when the transmission priority of the target data is the second priority, adjusting the storage amount of the buffer to a fourth target value, wherein the fourth target value is greater than the third target value; in step S2083, when the transmission priority of the target data is the third priority, the storage amount of the buffer is adjusted to a fifth target value, where the fifth target value is greater than the fourth target value. According to the method, the size of the storage space of the buffer area can be adjusted according to the data priority of the target data, so that the key data delay in the buffer area is further reduced.
In particular, in a network environment, for critical traffic (e.g., real-time communication or high priority data transmission), the system may allocate more buffer resources to ensure that the transmission of such data is as smooth as possible and to reduce latency. Further, the sending rate of the data may also be adjusted when signs of congestion are detected to avoid congestion and packet loss.
In yet another embodiment, the step S203 further includes: step S2084, determining whether the data stored in the buffer area is the same as the target data; in step S2085, when the data stored in the buffer is the same as the target data, the reception of the target data transmitted from the data transmitting terminal is stopped. According to the method, the data is directly acquired from the buffer zone of the data receiving end, so that the delay of acquiring the data from the remote data transmitting end can be further avoided.
In particular, caching is a method of storing temporary copy data in order to quickly provide target data in subsequent requests. Caches are typically used to store frequently accessed data, such as web pages, files, database query results, and the like. When data is requested, the system first checks if there is a copy of the data in the cache. If so, the data is directly provided from the cache, and the delay of acquiring the data from the original position of a remote server and the like is avoided.
In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the method for adjusting data transmission delay of the present application will be described in detail below with reference to specific embodiments.
The embodiment relates to a specific data transmission delay adjustment method, as shown in fig. 3, including the following steps:
step S1: continuously monitoring delay indexes of the network to perform delay monitoring;
step S2: determining when the connection experiences excessive delay or detecting that the connection is lost due to a network problem;
Step S3: according to the detected problem, adjusting a delay parameter to mitigate excessive delay and restore connection;
step S4: communicating with the network device or endpoint involved, exchanging feedback information;
Step S5: in case of connection timeout or packet loss, starting retransmission or reestablishing connection using optimized delay settings;
Step S6: priority ordering is carried out on key traffic or broadband resources are effectively allocated by combining quality parameters, so that timely and reliable transmission of important data is ensured;
Step S7: cooperating with network elements such as routers, switches, load balancers, firewalls, etc., to effect connection restoration.
The embodiment of the application also provides a device for adjusting the data transmission delay, and the device for adjusting the data transmission delay can be used for executing the method for adjusting the data transmission delay provided by the embodiment of the application. The device is used for realizing the above embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The following describes an apparatus for adjusting data transmission delay according to an embodiment of the present application.
Fig. 4 is a schematic diagram of an apparatus for adjusting data transmission delay according to an embodiment of the present application. As shown in fig. 4, the apparatus includes:
an obtaining unit 10, configured to obtain current network performance parameters of a data sending end and a data receiving end and a network load between the data sending end and the data receiving end, where the current network performance parameters are used to characterize transmission performance between the data sending end and the data receiving end at a current time, and the data sending end is used to transmit target data to the data receiving end;
Specifically, the network performance parameters may include, but are not limited to, the following: bandwidth, delay, packet loss rate, throughput and network jitter, wherein bandwidth refers to the maximum speed of network transmission data, and is measured by the number of bits transmitted per second, and the higher the bandwidth, the faster the network transmission speed; delay refers to the time required by data from a transmitting end to a receiving end, measured in milliseconds, the lower the delay, the faster the network response speed; the packet loss rate refers to the proportion of data packets lost by the network when transmitting data, and the lower the packet loss rate is, the more reliable the network transmission is; throughput refers to the data quantity which can be transmitted by a network in unit time, and the higher the throughput is, the higher the network transmission efficiency is; network jitter refers to the instability of the network in transmitting data, measured by the variance of the time interval of the data packet reaching the receiving end, and the smaller the jitter, the more stable the network transmission. The network load refers to the load and pressure born by the network in the data transmission process, the size of the network load depends on factors such as data transmission quantity, network bandwidth, network topology structure, network equipment performance and the like, the size of the network load directly influences the speed and stability of data transmission, and especially the influence on data transmission with high real-time requirements is larger.
A first adjusting unit 20, configured to adjust an initial performance parameter threshold according to the magnitude of the network load, to obtain a target performance parameter threshold, where the initial performance parameter threshold is a preset parameter for determining whether delay exists in data transmission between the data transmitting end and the data receiving end;
Specifically, different target performance parameter thresholds are set according to different network load sizes, so that delay detection under the condition of different network load sizes can be met.
A first determining unit 30, configured to determine that there is a delay in data transmission between the data transmitting end and the data receiving end when the current network performance parameter is greater than the target performance parameter threshold, and output a delay signal, where the delay signal is used to characterize that there is a delay in data transmission between the data transmitting end and the data receiving end;
Specifically, the target performance parameter threshold may be set in a network monitoring tool, for example: cacti. When the current network performance parameter exceeds the target performance parameter threshold, the system can send out an alarm, and an administrator can be notified through an email, a short message or other instant communication tools by configuring the real-time alarm system.
The second adjusting unit 40 is configured to obtain a current adjustment parameter corresponding to the current network performance parameter, and adjust the current network performance parameter by using the current adjustment parameter, so as to reduce a data transmission delay between the data transmitting end and the data receiving end.
In particular, in the case where the current network performance parameter includes bandwidth, the delay of data transmission may be reduced by increasing the network bandwidth. In the case that the current network performance parameters include configuration parameters of the router and the switch, the configuration parameters of the router and the switch can be adjusted, so that the transmission time of the data packet in the network is reduced. The adjusted network bandwidth value and the configuration parameter value are the current adjustment parameters corresponding to the current network performance parameters.
Through the embodiment, an adjusting device for data transmission delay is provided, and an acquiring unit acquires current network performance parameters of a data transmitting end and a data receiving end and network load between the data transmitting end and the data receiving end; the first adjusting unit adjusts the initial performance parameter threshold according to the magnitude of the network load to obtain a target performance parameter threshold; the first determining unit determines that delay exists in data transmission between the data transmitting end and the data receiving end and outputs a delay signal under the condition that the current network performance parameter is larger than a target performance parameter threshold value; the second adjusting unit obtains the current adjusting parameters corresponding to the current network performance parameters, and adjusts the current network performance parameters by adopting the current adjusting parameters so as to reduce the data transmission delay between the data transmitting end and the data receiving end. The threshold is dynamically adjusted according to the network load, instead of using a fixed threshold to detect excessive delay, the accuracy of detecting the data transmission delay can be improved in the process of judging according to the current network performance parameter and the threshold, and then the current network performance parameter is adjusted by adopting the current adjustment parameter, so that the lost connection is reduced due to excessive delay recovery, and the problem of connection loss caused by the data transmission delay is solved.
In a specific implementation process, the first adjusting unit includes an increasing module and a decreasing module, where the increasing module is configured to increase the initial performance parameter threshold to a first target value to obtain the target performance parameter threshold when the network load is smaller than a load threshold; the reduction module is configured to reduce the initial performance parameter threshold to a second target value to obtain the target performance parameter threshold when the network load is greater than or equal to the load threshold, where the second target value is smaller than the first target value. The device can further meet the accuracy of delay detection under the condition of different network load sizes.
In particular, in the case that the network load is smaller than the load threshold, it is indicated that the network load is lighter, and the adaptive threshold may be automatically increased, so that the delay alarm signal is not triggered due to normal delay fluctuation, that is, false positives may be reduced. The network load is larger than or equal to the load threshold, so that the network load is relatively heavy, the self-adaptive threshold can be automatically reduced, and potential performance problems can be timely found even under the condition of relatively small delay, namely false negatives can be reduced.
In order to further obtain the current adjustment parameters corresponding to the current network performance parameters timely and efficiently, the second adjustment unit of the present application includes an input module, configured to input the current network performance parameters into a neural network model to obtain the current adjustment parameters, where the neural network model is trained by machine learning using multiple sets of historical data, and each set of data in the multiple sets of historical data includes: the system comprises a historical network performance parameter and a historical adjustment parameter, wherein the historical network performance parameter is used for representing transmission performance between the data sending end and the data receiving end at a historical moment, and the historical adjustment parameter is used for adjusting the historical network performance parameter so as to reduce data transmission delay between the data sending end and the data receiving end.
Specifically, in practical application, the training process of the neural network model is as follows: first, a large amount of historical data is collected about network performance, such as: the device reports frequency data of the data, the data amount in the network, etc. And then carrying out denoising and outlier preprocessing on the data, extracting key characteristic values as data input of an initial model, continuously learning and adapting to network change behaviors by the system, and improving prediction and judgment to obtain the neural network model. Inputting a large amount of data of the current network performance parameters obtained by real-time monitoring into the neural network model, and obtaining the current adjustment parameters corresponding to the current network performance parameters.
The device further comprises a first transmission unit, which is used for transmitting the target data by adopting a plurality of transmission paths according to a preset communication protocol, wherein the preset communication protocol is an equivalent multi-path routing protocol or a link aggregation group protocol. The device adopts a preset communication protocol to disperse the flow to different paths, so that congestion can be avoided, and the time delay is further reduced.
In particular, the Equal Cost Multi-Path (ECMP routing protocol) is a routing algorithm for selecting multiple Equal paths in a network. In conventional routing protocols, when a router encounters multiple equivalent paths, only one of the paths is typically selected for data transmission. The ECMP protocol allows the router to simultaneously utilize a plurality of equivalent paths for data transmission when encountering the paths, thereby improving the bandwidth utilization rate and the load balancing capability of the network. The working principle of the ECMP protocol is that a plurality of equivalent paths are stored for the same destination network in a routing table of a router, and one path is selected for forwarding according to a certain load balancing algorithm when a data packet arrives. The link aggregation group protocol (Link Aggregation Group, abbreviated LAG routing protocol) is a protocol for combining multiple physical links into a single logical link. This technique may provide higher bandwidth, redundancy, and load balancing, thereby improving the performance and reliability of the network. LAG routing protocols allow multiple physical links to be logically combined into one larger link, thereby increasing overall bandwidth and reliability. When one of the physical links fails, the data can be automatically switched to other normal links, thereby ensuring the connectivity of the network. In the LAG routing protocol, data transmission between multiple physical links is load balanced by a specific algorithm. According to different conditions, such as a source IP address, a destination IP address, a source port, a destination port and the like, data are distributed to different physical links so as to realize the maximum utilization of bandwidth and the balanced distribution of network traffic. Common LAG routing protocols include LACP (Link Aggregation Control Protocol), PAGP (Port Aggregation Protocol) and static link aggregation.
In some embodiments, the apparatus further includes a second determining unit and a second transmitting unit, where the second determining unit is configured to determine a transmission priority of the target data according to a current network performance parameter, where the transmission priority includes a first priority, a second priority, and a third priority; the second transmission unit is configured to sequentially transmit the target data in order of the third priority, the second priority, and the first priority. The device can ensure that important data is processed preferentially in the transmission process by determining the transmission priority, and further improve the efficiency and the speed of data transmission.
Specifically, the method can further reduce the risk of data loss, increase the transmission priority of important data, reduce the risk of data loss, ensure that the important data can be transmitted and received in time, optimize the network transmission flow, improve the network quality and reduce the network congestion and delay.
The current network performance parameter at least includes a quality parameter, the quality parameter is used for evaluating network performance of data transmission between the data transmitting end and the data receiving end, the second determining unit includes a first determining module, a second determining module, a third determining module and a fourth determining module, wherein the first determining module is used for determining whether the quality parameter is smaller than a first parameter threshold value, and determining that the transmission priority of the target data is the first priority when the quality parameter is smaller than the first parameter threshold value; the second determining module is configured to determine whether the quality parameter is smaller than a second parameter threshold when the quality parameter is greater than or equal to the first parameter threshold, where the second parameter threshold is greater than the first parameter threshold; the third determining module is configured to determine, when the quality parameter is greater than or equal to the first parameter threshold and less than the second parameter threshold, a transmission priority of the target data as the second priority; the fourth determining module is configured to determine, when the quality parameter is equal to or greater than the second parameter threshold, a transmission priority of the target data as the third priority. The device determines the transmission priority of the target data according to the size of the quality parameter, and can further ensure that important data is transmitted timely and reliably.
In particular, the quality parameter may be quality of experience or quality of service, where quality of experience (Quality of Experience, abbreviated as QoE) refers to the overall quality of experience of a user when using a certain service or product. It is not only concerned with technical indicators but also the user's perception and satisfaction with the service. For example: reliability of service, response speed, interface friendliness, audiovisual quality, interactive experience, etc. QoE is a subjective concept because it depends on the user's personal experience and desire. For example, for video streaming services, qoE may be affected by factors such as video quality, buffering delay, smoothness of play, etc. Quality of service (Quality of Service, abbreviated QoS) refers to the quality of service that the system provides for a particular data flow in network communications. The method comprises the technical indexes of reliability, bandwidth, time delay, jitter and the like of the network. QoS ensures stability and reliability of data transmission through network devices and protocols, thereby ensuring that a specific quality of service meets the needs of users. When the quality parameter is smaller than the first parameter threshold, indicating that the data priority is general and the first priority is the first priority, and only allocating general resources is needed; when the quality parameter is greater than or equal to the first parameter threshold and less than the second parameter threshold, indicating that the data priority is medium, namely the second priority, and allocating medium resources; and when the quality parameter is greater than or equal to the second parameter threshold, indicating that the data priority is higher, preferentially allocating higher resources, and preferentially transmitting.
The data receiving end includes a buffer area, where the buffer area is used to store data, in one embodiment, the apparatus further includes a third adjusting unit, a fourth adjusting unit, and a fifth adjusting unit, where the third adjusting unit is used to adjust the storage amount of the buffer area to a third target value when the transmission priority of the target data is the first priority; a fourth adjusting unit, configured to adjust, when the transmission priority of the target data is the second priority, the storage amount of the buffer to a fourth target value, where the fourth target value is greater than the third target value; and a fifth adjusting unit configured to adjust the storage amount of the buffer to a fifth target value when the transmission priority of the target data is the third priority, where the fifth target value is greater than the fourth target value. The device can adjust the storage capacity of the buffer area according to the data priority of the target data, and further reduce the key data delay in the buffer area.
In particular, in a network environment, for critical traffic (e.g., real-time communication or high priority data transmission), the system may allocate more buffer resources to ensure that the transmission of such data is as smooth as possible and to reduce latency. Further, the sending rate of the data may also be adjusted when signs of congestion are detected to avoid congestion and packet loss.
In yet another embodiment, the apparatus further includes a third determining unit and a processing unit, where the third determining unit is configured to determine whether the data stored in the buffer area is the same as the target data; and the processing unit is used for stopping receiving the target data sent by the data sending end when the data stored in the buffer area is the same as the target data. The device can further avoid the delay of acquiring the data from a remote data transmitting end by directly acquiring the data from the buffer area of the data receiving end.
In particular, caching is a method of storing temporary copy data in order to quickly provide target data in subsequent requests. Caches are typically used to store frequently accessed data, such as web pages, files, database query results, and the like. When data is requested, the system first checks if there is a copy of the data in the cache. If so, the data is directly provided from the cache, and the delay of acquiring the data from the original position of a remote server and the like is avoided.
The data transmission delay adjusting device comprises a processor and a memory, wherein the acquisition unit, the first adjusting unit, the determining unit, the second adjusting unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions. The modules are all located in the same processor; or the above modules may be located in different processors in any combination.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel may be provided with one or more, and the data transfer delay is adjusted by adjusting the kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a computer readable storage medium, which comprises a stored program, wherein the program is used for controlling a device where the computer readable storage medium is located to execute the method for adjusting the data transmission delay.
Specifically, the method for adjusting the data transmission delay includes:
step S201, current network performance parameters of a data sending end and a data receiving end and network loads between the data sending end and the data receiving end are obtained, wherein the current network performance parameters are used for representing transmission performance between the data sending end and the data receiving end at the current moment, and the data sending end is used for transmitting target data to the data receiving end;
Specifically, the network performance parameters may include, but are not limited to, the following: bandwidth, delay, packet loss rate, throughput and network jitter, wherein bandwidth refers to the maximum speed of network transmission data, and is measured by the number of bits transmitted per second, and the higher the bandwidth, the faster the network transmission speed; delay refers to the time required by data from a transmitting end to a receiving end, measured in milliseconds, the lower the delay, the faster the network response speed; the packet loss rate refers to the proportion of data packets lost by the network when transmitting data, and the lower the packet loss rate is, the more reliable the network transmission is; throughput refers to the data quantity which can be transmitted by a network in unit time, and the higher the throughput is, the higher the network transmission efficiency is; network jitter refers to the instability of the network in transmitting data, measured by the variance of the time interval of the data packet reaching the receiving end, and the smaller the jitter, the more stable the network transmission. The network load refers to the load and pressure born by the network in the data transmission process, the size of the network load depends on factors such as data transmission quantity, network bandwidth, network topology structure, network equipment performance and the like, the size of the network load directly influences the speed and stability of data transmission, and especially the influence on data transmission with high real-time requirements is larger.
Step S202, according to the magnitude of the network load, the magnitude of an initial performance parameter threshold is adjusted to obtain a target performance parameter threshold, wherein the initial performance parameter threshold is a preset parameter used for determining whether delay exists in data transmission between the data sending end and the data receiving end;
Specifically, different target performance parameter thresholds are set according to different network load sizes, so that delay detection under the condition of different network load sizes can be met.
Step S203, determining that there is a delay in data transmission between the data sending end and the data receiving end and outputting a delay signal when the current network performance parameter is greater than the target performance parameter threshold, wherein the delay signal is used for representing that there is a delay in data transmission between the data sending end and the data receiving end;
Specifically, the target performance parameter threshold may be set in a network monitoring tool, for example: cacti. When the current network performance parameter exceeds the target performance parameter threshold, the system can send out an alarm, and an administrator can be notified through an email, a short message or other instant communication tools by configuring the real-time alarm system.
Step S204, obtaining the current adjustment parameter corresponding to the current network performance parameter, and adjusting the current network performance parameter by adopting the current adjustment parameter to reduce the data transmission delay between the data transmitting end and the data receiving end.
In particular, in the case where the current network performance parameter includes bandwidth, the delay of data transmission may be reduced by increasing the network bandwidth. In the case that the current network performance parameters include configuration parameters of the router and the switch, the configuration parameters of the router and the switch can be adjusted, so that the transmission time of the data packet in the network is reduced. The adjusted network bandwidth value and the configuration parameter value are the current adjustment parameters corresponding to the current network performance parameters.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program runs to execute the method for adjusting the data transmission delay.
Specifically, the method for adjusting the data transmission delay includes:
step S201, current network performance parameters of a data sending end and a data receiving end and network loads between the data sending end and the data receiving end are obtained, wherein the current network performance parameters are used for representing transmission performance between the data sending end and the data receiving end at the current moment, and the data sending end is used for transmitting target data to the data receiving end;
Specifically, the network performance parameters may include, but are not limited to, the following: bandwidth, delay, packet loss rate, throughput and network jitter, wherein bandwidth refers to the maximum speed of network transmission data, and is measured by the number of bits transmitted per second, and the higher the bandwidth, the faster the network transmission speed; delay refers to the time required by data from a transmitting end to a receiving end, measured in milliseconds, the lower the delay, the faster the network response speed; the packet loss rate refers to the proportion of data packets lost by the network when transmitting data, and the lower the packet loss rate is, the more reliable the network transmission is; throughput refers to the data quantity which can be transmitted by a network in unit time, and the higher the throughput is, the higher the network transmission efficiency is; network jitter refers to the instability of the network in transmitting data, measured by the variance of the time interval of the data packet reaching the receiving end, and the smaller the jitter, the more stable the network transmission. The network load refers to the load and pressure born by the network in the data transmission process, the size of the network load depends on factors such as data transmission quantity, network bandwidth, network topology structure, network equipment performance and the like, the size of the network load directly influences the speed and stability of data transmission, and especially the influence on data transmission with high real-time requirements is larger.
Step S202, according to the magnitude of the network load, the magnitude of an initial performance parameter threshold is adjusted to obtain a target performance parameter threshold, wherein the initial performance parameter threshold is a preset parameter used for determining whether delay exists in data transmission between the data sending end and the data receiving end;
Specifically, different target performance parameter thresholds are set according to different network load sizes, so that delay detection under the condition of different network load sizes can be met.
Step S203, determining that there is a delay in data transmission between the data sending end and the data receiving end and outputting a delay signal when the current network performance parameter is greater than the target performance parameter threshold, wherein the delay signal is used for representing that there is a delay in data transmission between the data sending end and the data receiving end;
Specifically, the target performance parameter threshold may be set in a network monitoring tool, for example: cacti. When the current network performance parameter exceeds the target performance parameter threshold, the system can send out an alarm, and an administrator can be notified through an email, a short message or other instant communication tools by configuring the real-time alarm system.
Step S204, obtaining the current adjustment parameter corresponding to the current network performance parameter, and adjusting the current network performance parameter by adopting the current adjustment parameter to reduce the data transmission delay between the data transmitting end and the data receiving end.
In particular, in the case where the current network performance parameter includes bandwidth, the delay of data transmission may be reduced by increasing the network bandwidth. In the case that the current network performance parameters include configuration parameters of the router and the switch, the configuration parameters of the router and the switch can be adjusted, so that the transmission time of the data packet in the network is reduced. The adjusted network bandwidth value and the configuration parameter value are the current adjustment parameters corresponding to the current network performance parameters.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program stored in the memory and capable of running on the processor, wherein the processor realizes at least the following steps when executing the program:
step S201, current network performance parameters of a data sending end and a data receiving end and network loads between the data sending end and the data receiving end are obtained, wherein the current network performance parameters are used for representing transmission performance between the data sending end and the data receiving end at the current moment, and the data sending end is used for transmitting target data to the data receiving end;
step S202, according to the magnitude of the network load, the magnitude of an initial performance parameter threshold is adjusted to obtain a target performance parameter threshold, wherein the initial performance parameter threshold is a preset parameter used for determining whether delay exists in data transmission between the data sending end and the data receiving end;
Step S203, determining that there is a delay in data transmission between the data sending end and the data receiving end and outputting a delay signal when the current network performance parameter is greater than the target performance parameter threshold, wherein the delay signal is used for representing that there is a delay in data transmission between the data sending end and the data receiving end;
Step S204, obtaining the current adjustment parameter corresponding to the current network performance parameter, and adjusting the current network performance parameter by adopting the current adjustment parameter to reduce the data transmission delay between the data transmitting end and the data receiving end.
The device herein may be a server, PC, PAD, cell phone, etc.
The application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with at least the following method steps:
step S201, current network performance parameters of a data sending end and a data receiving end and network loads between the data sending end and the data receiving end are obtained, wherein the current network performance parameters are used for representing transmission performance between the data sending end and the data receiving end at the current moment, and the data sending end is used for transmitting target data to the data receiving end;
step S202, according to the magnitude of the network load, the magnitude of an initial performance parameter threshold is adjusted to obtain a target performance parameter threshold, wherein the initial performance parameter threshold is a preset parameter used for determining whether delay exists in data transmission between the data sending end and the data receiving end;
Step S203, determining that there is a delay in data transmission between the data sending end and the data receiving end and outputting a delay signal when the current network performance parameter is greater than the target performance parameter threshold, wherein the delay signal is used for representing that there is a delay in data transmission between the data sending end and the data receiving end;
Step S204, obtaining the current adjustment parameter corresponding to the current network performance parameter, and adjusting the current network performance parameter by adopting the current adjustment parameter to reduce the data transmission delay between the data transmitting end and the data receiving end.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
1) Firstly, acquiring current network performance parameters of a data sending end and a data receiving end and network load between the data sending end and the data receiving end; according to the magnitude of the network load, the magnitude of the initial performance parameter threshold is adjusted to obtain a target performance parameter threshold; then, under the condition that the current network performance parameter is larger than the target performance parameter threshold, determining that delay exists in data transmission between the data sending end and the data receiving end, and outputting a delay signal; and finally, acquiring a current adjustment parameter corresponding to the current network performance parameter, and adjusting the current network performance parameter by adopting the current adjustment parameter to reduce the data transmission delay between the data transmitting end and the data receiving end. The threshold is dynamically adjusted according to the network load, instead of using a fixed threshold to detect excessive delay, the accuracy of detecting the data transmission delay can be improved in the process of judging according to the current network performance parameter and the threshold, and then the current network performance parameter is adjusted by adopting the current adjustment parameter, so that the lost connection is reduced due to excessive delay recovery, and the problem of connection loss caused by the data transmission delay is solved.
2) According to the data transmission delay adjusting device, the acquiring unit acquires current network performance parameters of the data transmitting end and the data receiving end and network loads between the data transmitting end and the data receiving end; the first adjusting unit adjusts the initial performance parameter threshold according to the magnitude of the network load to obtain a target performance parameter threshold; the first determining unit determines that delay exists in data transmission between the data transmitting end and the data receiving end and outputs a delay signal under the condition that the current network performance parameter is larger than a target performance parameter threshold value; the second adjusting unit obtains the current adjusting parameters corresponding to the current network performance parameters, and adjusts the current network performance parameters by adopting the current adjusting parameters so as to reduce the data transmission delay between the data transmitting end and the data receiving end. The threshold is dynamically adjusted according to the network load, instead of using a fixed threshold to detect excessive delay, the accuracy of detecting the data transmission delay can be improved in the process of judging according to the current network performance parameter and the threshold, and then the current network performance parameter is adjusted by adopting the current adjustment parameter, so that the lost connection is reduced due to excessive delay recovery, and the problem of connection loss caused by the data transmission delay is solved.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims (10)
1. A method for adjusting data transmission delay, comprising:
acquiring current network performance parameters of a data sending end and a data receiving end and network load between the data sending end and the data receiving end, wherein the current network performance parameters are used for representing transmission performance between the data sending end and the data receiving end at the current moment, and the data sending end is used for transmitting target data to the data receiving end;
according to the size of the network load, the size of an initial performance parameter threshold is adjusted to obtain a target performance parameter threshold, wherein the initial performance parameter threshold is a preset parameter used for determining whether delay exists in data transmission between the data sending end and the data receiving end;
determining that delay exists in data transmission between the data sending end and the data receiving end under the condition that the current network performance parameter is larger than the target performance parameter threshold value, and outputting a delay signal, wherein the delay signal is used for representing that delay exists in data transmission between the data sending end and the data receiving end;
And acquiring a current adjustment parameter corresponding to the current network performance parameter, and adjusting the current network performance parameter by adopting the current adjustment parameter so as to reduce the data transmission delay between the data transmitting end and the data receiving end.
2. The method of claim 1, wherein adjusting the initial performance parameter threshold according to the magnitude of the network load to obtain the target performance parameter threshold comprises:
Under the condition that the network load is smaller than a load threshold, increasing the initial performance parameter threshold to a first target value to obtain the target performance parameter threshold;
and under the condition that the network load is greater than or equal to the load threshold, reducing the initial performance parameter threshold to a second target value to obtain the target performance parameter threshold, wherein the second target value is smaller than the first target value.
3. The method of claim 1, wherein obtaining the current adjustment parameter corresponding to the current network performance parameter comprises:
Inputting the current network performance parameters into a neural network model to obtain the current adjustment parameters, wherein the neural network model is trained by machine learning through a plurality of sets of historical data, and each set of data in the plurality of sets of historical data comprises: the system comprises a historical network performance parameter and a historical adjustment parameter, wherein the historical network performance parameter is used for representing transmission performance between a data sending end and a data receiving end at a historical moment, and the historical adjustment parameter is used for adjusting the historical network performance parameter so as to reduce data transmission delay between the data sending end and the data receiving end.
4. The method of claim 1, wherein there are a plurality of transmission paths between the data transmitting end and the data receiving end, and wherein after determining that there is a delay in data transmission between the data transmitting end and the data receiving end and outputting a delay signal, the method further comprises:
And transmitting the target data by adopting a plurality of transmission paths according to a preset communication protocol, wherein the preset communication protocol is an equal cost multi-path routing protocol or a link aggregation group protocol.
5. The method of claim 1, wherein after determining that there is a delay in data transmission between the data transmitting end and the data receiving end and outputting a delay signal, the method further comprises:
Determining a transmission priority of the target data according to the current network performance parameter, wherein the transmission priority comprises a first priority, a second priority and a third priority;
and sequentially transmitting the target data according to the third priority, the second priority and the first priority.
6. The method of claim 5, wherein the current network performance parameters include at least quality parameters for evaluating network performance of data transmission between the data transmitting end and the data receiving end, determining the transmission priority of the target data according to the current network performance parameters, comprising:
determining whether the quality parameter is smaller than a first parameter threshold, and determining the transmission priority of the target data as the first priority when the quality parameter is smaller than the first parameter threshold;
determining whether the quality parameter is smaller than a second parameter threshold value under the condition that the quality parameter is larger than or equal to the first parameter threshold value, wherein the second parameter threshold value is larger than the first parameter threshold value;
Determining that the transmission priority of the target data is the second priority when the quality parameter is greater than or equal to the first parameter threshold and less than the second parameter threshold;
and under the condition that the quality parameter is larger than or equal to the second parameter threshold, determining the transmission priority of the target data as the third priority.
7. The method of claim 5, wherein the data receiving end includes a buffer for storing data, the method further comprising:
adjusting the storage amount of the buffer area to a third target value under the condition that the transmission priority of the target data is the first priority;
adjusting the storage amount of the buffer area to a fourth target value under the condition that the transmission priority of the target data is the second priority, wherein the fourth target value is larger than the third target value;
And under the condition that the transmission priority of the target data is the third priority, adjusting the storage amount of the buffer area to a fifth target value, wherein the fifth target value is larger than the fourth target value.
8. The method of claim 7, wherein after determining that there is a delay in data transmission between the data transmitting end and the data receiving end and outputting a delay signal, the method further comprises:
Determining whether the data stored in the buffer area is identical to the target data;
and stopping receiving the target data sent by the data sending end under the condition that the data stored in the buffer area is the same as the target data.
9. An apparatus for adjusting data transmission delay, comprising:
The system comprises an acquisition unit, a data transmission unit and a data receiving unit, wherein the acquisition unit is used for acquiring current network performance parameters of a data transmission end and a data receiving end and network loads between the data transmission end and the data receiving end, the current network performance parameters are used for representing transmission performance between the data transmission end and the data receiving end at the current moment, and the data transmission end is used for transmitting target data to the data receiving end;
the first adjusting unit is used for adjusting the initial performance parameter threshold according to the magnitude of the network load to obtain a target performance parameter threshold, wherein the initial performance parameter threshold is a preset parameter used for determining whether delay exists in data transmission between the data sending end and the data receiving end;
a first determining unit, configured to determine that there is a delay in data transmission between the data transmitting end and the data receiving end when the current network performance parameter is greater than the target performance parameter threshold, and output a delay signal, where the delay signal is used to characterize that there is a delay in data transmission between the data transmitting end and the data receiving end;
And the second adjusting unit is used for acquiring the current adjusting parameter corresponding to the current network performance parameter, and adjusting the current network performance parameter by adopting the current adjusting parameter so as to reduce the data transmission delay between the data transmitting end and the data receiving end.
10. A communication system, comprising: one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the method of any of claims 1-8.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410083770.0A CN117914797A (en) | 2024-01-19 | 2024-01-19 | Data transmission delay adjusting method and data transmission delay adjusting device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410083770.0A CN117914797A (en) | 2024-01-19 | 2024-01-19 | Data transmission delay adjusting method and data transmission delay adjusting device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN117914797A true CN117914797A (en) | 2024-04-19 |
Family
ID=90683621
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410083770.0A Pending CN117914797A (en) | 2024-01-19 | 2024-01-19 | Data transmission delay adjusting method and data transmission delay adjusting device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117914797A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118921408A (en) * | 2024-10-11 | 2024-11-08 | 无锡冠亚恒温制冷技术有限公司 | Method and system for improving transmission utilization rate of equipment data interface |
-
2024
- 2024-01-19 CN CN202410083770.0A patent/CN117914797A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118921408A (en) * | 2024-10-11 | 2024-11-08 | 无锡冠亚恒温制冷技术有限公司 | Method and system for improving transmission utilization rate of equipment data interface |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11582163B2 (en) | System for early system resource constraint detection and recovery | |
| US11677665B2 (en) | Systems and methods for identifying candidate flows in data packet networks | |
| US10148492B2 (en) | Data center bridging network configuration and management | |
| US9479384B2 (en) | Data stream scheduling method, device, and system | |
| US10158575B2 (en) | System for bandwidth optimization with high priority traffic awareness and control | |
| CN111526089B (en) | A device for data fusion transmission and scheduling based on variable length granularity | |
| US20140281018A1 (en) | Dynamic Optimization of TCP Connections | |
| CN105991462A (en) | Transmission control protocol (TCP) data packet transmission method, transmission device and system | |
| US10404603B2 (en) | System and method of providing increased data optimization based on traffic priority on connection | |
| US11290379B2 (en) | Egress traffic steering controller | |
| CN104092625B (en) | A kind of self adaptation being used in DCN asks dispatching method in batches | |
| EP3878141A1 (en) | Traffic steering device | |
| CN117914797A (en) | Data transmission delay adjusting method and data transmission delay adjusting device | |
| US10574796B2 (en) | System for dynamic selection and application of TCP congestion avoidance flavors | |
| CN112671662A (en) | Data stream acceleration method, electronic device, and storage medium | |
| WO2023246203A1 (en) | Network data processing method and apparatus, and computer readable storage medium | |
| US11483249B2 (en) | Systems and methods for dynamic optimization of network congestion control | |
| CN119728578A (en) | Data flow adjustment method, device, storage medium and electronic device | |
| CN118041833A (en) | Communication link quality assessment method, device, equipment and storage medium | |
| JP6200870B2 (en) | Data transfer control device, method and program | |
| Bays et al. | Flow based load balancing: Optimizing web servers resource utilization | |
| CN119814793B (en) | Load balancing method, system, device and storage medium | |
| WO2019124290A1 (en) | Transmit data volume control device, method, and recording medium | |
| CN120281809A (en) | Intelligent heartbeat keep-alive method, device, terminal and storage medium | |
| HK40075672B (en) | Method and apparatus for controlling network transmission, computer device, and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |