CN117998457A - Data transmission optimization method and device - Google Patents

Data transmission optimization method and device Download PDF

Info

Publication number
CN117998457A
CN117998457A CN202410204278.4A CN202410204278A CN117998457A CN 117998457 A CN117998457 A CN 117998457A CN 202410204278 A CN202410204278 A CN 202410204278A CN 117998457 A CN117998457 A CN 117998457A
Authority
CN
China
Prior art keywords
data
transmission
channel
quality
data packet
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
Application number
CN202410204278.4A
Other languages
Chinese (zh)
Inventor
朱梦南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202410204278.4A priority Critical patent/CN117998457A/en
Publication of CN117998457A publication Critical patent/CN117998457A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a data transmission optimization method and device. Wherein the method comprises the following steps: acquiring a quality index of a link, and adjusting the size of a data packet according to the quality index; acquiring the data type of data in the data packet, and determining the priority of the data packet based on the data type, wherein the priority is used for determining the transmission sequence of the data packet; acquiring the channel quality of a channel, and determining the channel with the channel quality larger than a first quality threshold as a target channel, wherein the channel is a communication path for transmitting data on a link; acquiring transmission load and transmission capacity of a target channel, and distributing transmission tasks of the target channel according to the transmission load and the transmission capacity, wherein the transmission load represents data flow in the target channel; and transmitting data based on the transmission task by utilizing the target channel according to the priority of the data packet. The invention solves the technical problems that the Bluetooth transmission rate is low and the requirements of large data volume and high rate can not be met in the related technology.

Description

Data transmission optimization method and device
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a data transmission optimization method and apparatus.
Background
In order to enhance the accuracy and security of data, bluetooth transmission has been developed, which has the advantage of not requiring a data line and not requiring network support. In addition, it has the characteristics of low power consumption and high reliability, and is especially suitable for data transmission of mobile phones. However, the transmission rate of bluetooth is low, and the requirements of large data volume and high rate cannot be satisfied.
Aiming at the problem that the Bluetooth transmission rate in the related technology is low and the requirements of large data volume and high rate cannot be met, no effective solution is proposed at present.
Disclosure of Invention
The embodiment of the invention provides a data transmission optimization method and device, which at least solve the technical problems that the Bluetooth transmission rate is low and the requirements of large data volume and high rate cannot be met in the related technology.
According to an aspect of an embodiment of the present invention, there is provided a data transmission optimization method including: acquiring a quality index of a link, and adjusting the size of a data packet according to the quality index, wherein the link is a physical connection structure of connection equipment in network communication, and the data packet is a data unit transmitted in the network communication; acquiring a data type of data in the data packet, and determining a priority of the data packet based on the data type, wherein the priority is used for determining a transmission sequence of the data packet; acquiring the channel quality of a channel, and determining the channel with the channel quality greater than a first quality threshold as a target channel, wherein the channel is a communication path for transmitting data on the link; acquiring transmission load and transmission capacity of the target channel, and distributing transmission tasks of the target channel according to the transmission load and the transmission capacity, wherein the transmission load represents data traffic in the target channel; and transmitting the data based on the transmission task by utilizing the target channel according to the priority of the data packet.
Optionally, adjusting the size of the data packet according to the quality index includes: comparing the quality index with an index threshold to obtain a comparison result; when the comparison result shows that the quality index is larger than an index threshold, increasing the size of the data packet until the size of the data packet reaches a first optimal threshold; and when the comparison result shows that the quality index is smaller than the index threshold, reducing the size of the data packet until the size of the data packet reaches a second optimal threshold, wherein the second optimal threshold is smaller than the first optimal threshold.
Optionally, determining the priority of the data packet based on the data type includes: determining that the priority of the data packet is a high priority when the data type indicates that the transmission age of the data is not greater than an age threshold; and determining the priority of the data packet as the high priority when the data type indicates that the transmission requirement of the data is that the transmission is completed within a preset time length.
Optionally, determining the channel with the channel quality greater than the first quality threshold as a target channel includes at least one of: determining the channel with the interference value lower than an interference threshold as the target channel; determining the channel with the signal-to-noise ratio value higher than a signal-to-noise threshold value as the target channel; and determining the channel with the error rate lower than the error rate threshold as the target channel, wherein the error rate is the probability of error when the data is transmitted through the channel.
Optionally, after determining that the channel with the channel quality greater than the first quality threshold is a target channel, the method further includes: acquiring the current channel quality of the target channel according to a preset period; and when the current channel quality is lower than a second quality threshold, switching the data transmitted by the target channel to other target channels with the current channel quality larger than the first quality threshold for transmission, wherein the second quality threshold is smaller than the first quality threshold.
Optionally, allocating a transmission task of the target channel according to the transmission load and the transmission capability includes: determining a current data traffic of the target channel based on the transmission load; determining a total data traffic for the target channel based on the transmission capability; and calculating the transmission task of the target channel according to the current data flow and the total data flow.
Optionally, the data transmission optimization method further includes: acquiring the transmission state of the data in the target channel; determining that the transmission state indicates that the data transmitted in error in the transmission process is data to be retransmitted; and retransmitting the data to be retransmitted.
Optionally, the data transmission optimization method further includes: acquiring distance data between a sending device and a receiving device of the data; adjusting transmission power of a device according to the distance data and the channel quality, wherein the device comprises the transmitting device and the receiving device; transmitting the data based on the transmission power.
Optionally, the data transmission optimization method further includes: acquiring the activity of the data transmission in the target channel; and controlling the equipment to enter a low power consumption mode when the activity degree is determined to be lower than an activity degree threshold value, wherein the low power consumption mode refers to that the equipment enters a standby or sleep state.
According to another aspect of the embodiment of the present invention, there is also provided a data transmission optimizing apparatus, including: the first acquisition unit is used for acquiring the quality index of a link and adjusting the size of a data packet according to the quality index, wherein the link is a physical connection structure of connection equipment in network communication, and the data packet is a data unit transmitted in the network communication; a second obtaining unit, configured to obtain a data type of data in the data packet, and determine a priority of the data packet based on the data type, where the priority is used to determine a transmission order of the data packet; a third obtaining unit, configured to obtain a channel quality of a channel, and determine that the channel with the channel quality greater than a first quality threshold is a target channel, where the channel is a communication path for transmitting data on the link; a fourth obtaining unit, configured to obtain a transmission load and a transmission capability of the target channel, and allocate a transmission task of the target channel according to the transmission load and the transmission capability, where the transmission load represents a data traffic in the target channel; and the first transmission unit is used for transmitting the data based on the transmission task by utilizing the target channel according to the priority of the data packet.
Optionally, the first acquisition unit includes: the first acquisition module is used for comparing the quality index with an index threshold value to obtain a comparison result; the first adjusting module is used for increasing the size of the data packet when the comparison result shows that the quality index is larger than the index threshold value, until the size of the data packet reaches a first optimal threshold value; and the second adjusting module is used for reducing the size of the data packet when the comparison result shows that the quality index is smaller than the index threshold value, and the size of the data packet reaches a second optimal threshold value, wherein the second optimal threshold value is smaller than the first optimal threshold value.
Optionally, the second obtaining unit includes: a first determining module, configured to determine that the priority of the data packet is a high priority when the data type indicates that transmission age of the data is not greater than an age threshold; and the second determining module is used for determining the priority of the data packet as the high priority when the data type indicates that the transmission requirement of the data is that the transmission is completed within a preset time length.
Optionally, the third obtaining unit includes at least one of: a third determining module, configured to determine that the channel with an interference value lower than an interference threshold is the target channel; a fourth determining module, configured to determine that the channel with a signal-to-noise ratio value higher than a signal-to-noise threshold is the target channel; and a fifth determining module, configured to determine that the channel with the bit error rate lower than the bit error rate threshold is the target channel, where the bit error rate is a probability of an error occurring when the data is transmitted through the channel.
Optionally, the data transmission optimizing apparatus further includes: the second acquisition module is used for acquiring the current channel quality of the target channel according to a preset period after determining that the channel with the channel quality larger than a first quality threshold is the target channel; and the switching module is used for switching the data transmitted by the target channel to other target channels with the current channel quality being greater than the first quality threshold for transmission when the current channel quality is lower than a second quality threshold, wherein the second quality threshold is smaller than the first quality threshold.
Optionally, the fourth obtaining unit includes: a sixth determining module, configured to determine a current data traffic of the target channel based on the transmission load; a seventh determining module, configured to determine a total data traffic of the target channel based on the transmission capability; and the third acquisition module is used for calculating the transmission task of the target channel according to the current data flow and the total data flow.
Optionally, the data transmission optimizing apparatus further includes: a fifth acquiring unit, configured to acquire a transmission state of the data in the target channel; a determining unit, configured to determine that the transmission state indicates that the data transmitted in error in the transmission process is data to be retransmitted; and the second transmission unit is used for retransmitting the data to be retransmitted.
Optionally, the data transmission optimizing apparatus further includes: a sixth acquisition unit configured to acquire distance data between a transmitting device and a receiving device of the data; an adjusting unit configured to adjust transmission power of an apparatus according to the distance data and the channel quality, wherein the apparatus includes the transmitting apparatus and the receiving apparatus; and a third transmission unit configured to transmit the data based on the transmission power.
Optionally, the data transmission optimizing apparatus further includes: a seventh obtaining unit, configured to obtain an activity level of the data transmission in the target channel; and the control unit is used for controlling the equipment to enter a low-power-consumption mode when the activity degree is lower than an activity degree threshold value, wherein the low-power-consumption mode refers to that the equipment enters a standby state or a sleep state.
According to another aspect of the embodiment of the present invention, there is also provided a data transmission optimization system, which uses any one of the above-mentioned data transmission optimization methods.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium including a stored program, wherein the program performs any one of the above-described data transmission optimization methods.
According to another aspect of the embodiment of the present invention, there is further provided a processor, where the processor is configured to execute a program, where the program executes any one of the data transmission optimization methods described above.
In the embodiment of the invention, the quality index of a link is obtained, and the size of a data packet is adjusted according to the quality index, wherein the link is a physical connection structure of connecting equipment in network communication, and the data packet is a data unit transmitted in the network communication; acquiring the data type of data in the data packet, and determining the priority of the data packet based on the data type, wherein the priority is used for determining the transmission sequence of the data packet; acquiring the channel quality of a channel, and determining the channel with the channel quality larger than a first quality threshold as a target channel, wherein the channel is a communication path for transmitting data on a link; acquiring transmission load and transmission capacity of a target channel, and distributing transmission tasks of the target channel according to the transmission load and the transmission capacity, wherein the transmission load represents data flow in the target channel; and transmitting data based on the transmission task by utilizing the target channel according to the priority of the data packet. According to the technical scheme, the purposes of dynamically adjusting the size of the data packet according to the link quality index in network communication, dynamically distributing the transmission task according to the transmission load and the transmission capacity of the channel, and selecting the channel with higher channel quality to transmit data according to the priority of the data packet based on the transmission task are achieved, the technical effect of transmitting more data in a given time is achieved, the channel utilization rate is improved, the data throughput of the network is increased, the data transmission efficiency is improved, and the technical problem that the Bluetooth transmission rate in the related art is lower and the requirements of a large amount of data and high rate cannot be met 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 and do not constitute a limitation on the application. In the drawings:
Fig. 1 is a block diagram of a hardware structure of a mobile terminal of a data transmission optimization method according to an embodiment of the present invention;
Fig. 2 is a flow chart of a data transmission optimization method according to an embodiment of the present invention;
FIG. 3 is a flow chart of an alternative data transmission optimization method according to an embodiment of the invention;
Fig. 4 is a schematic diagram of a data transmission optimizing apparatus according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention 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 invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention 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 such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described 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.
For convenience of description, the following will describe some terms or terminology involved in the embodiments of the present invention:
Packet transmission technology: packet transmission technology is a data transmission scheme that breaks data into a series of packets (or called packets) that are then transmitted over a network. Such transmission schemes are commonly used in network environments such as the internet and local area networks. In packet transmission technology, data is divided into packets of different sizes, each of which contains address information for transmission and reception, and a part of the data. The data packets can reach the destination through different paths in the transmission process, and are reassembled into the original data at the receiving end. Advantages of packet transmission techniques include flexibility, reliability, and efficiency. Since data packets can be transmitted through different paths, data can be successfully transmitted even if network congestion occurs or some paths are not available. In addition, packet transmission techniques can also improve network utilization because data packets can be transmitted in parallel.
Sliding window protocol: a data transmission protocol is characterized in that a window range is maintained by a transmitting end and a receiving end, and the window range is used for limiting the speed of transmitting data by the transmitting end and the speed of receiving data by the receiving end. The transmitting end and the receiving end are provided with a window with a fixed size, the window of the transmitting end represents a data range which can be transmitted, and the window of the receiving end represents a data range which can be received. When the transmitting end transmits data, the transmitting end can transmit the data outside the window only after the receiving end confirms that the data inside the window is received. When the receiving end receives the data, the receiving end can only send confirmation information to the sending end after receiving the data in the window, and the confirmation information indicates successful receiving. The sliding window protocol can effectively control the data transmission speed and avoid data loss and overload. Meanwhile, the data transmission efficiency can be improved, and the transmission delay can be reduced. In network communication, a sliding window protocol is widely used in data transmission protocols such as TCP.
As described in the background art, the transmission rate of bluetooth in the related art is low, and the requirements of large data volume and high rate cannot be satisfied. In view of the above drawbacks, the embodiments of the present invention provide a data transmission optimization method and apparatus.
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 invention 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 of a data transmission optimization method according to an embodiment of the present invention. 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 data transmission optimization method 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.
According to an embodiment of the present invention, there is provided a method embodiment of a data transmission optimization method, it should be noted that the steps shown in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
Fig. 2 is a flowchart of a data transmission optimization method according to an embodiment of the present invention, as shown in fig. 2, the method includes the steps of:
Step S202, obtaining the quality index of the link, and adjusting the size of the data packet according to the quality index, wherein the link is a physical connection structure of the connection device in the network communication, and the data packet is a data unit transmitted in the network communication.
Optionally, the quality index includes, but is not limited to: the RSSI value, the packet loss rate, the error rate and the like can judge the index value of the current network state.
For example, it may be determined whether the current network condition is good by the following link quality index values: 1) Signal Strength (RSSI): signal strength is typically used to measure the power level of a wireless signal, a higher RSSI value typically means a stronger signal, which may mean that the network conditions are good; 2) Signal-to-noise ratio (SNR): signal-to-noise ratio is the ratio of signal strength to background noise strength, a higher SNR value generally indicates better signal quality, as the signal is easier to detect and resolve in noise; 3) Packet Loss Rate (Packet Loss Rate): the packet loss rate refers to the proportion of the lost data packets in the transmission process to the total transmission number, and the low packet loss rate generally means that the network is stable and the data transmission is more reliable; 4) Delay (Latency) or Round Trip Time (RTT): delay or RTT is the time required for a data packet to return from a sender to a receiver, and a low network delay generally means that the network reacts quickly and the user experience is better; 5) Throughput (Throughput): throughput is the amount of data that a network can successfully transmit per unit time, high throughput indicates that the network can transmit data at a higher speed, and generally indicates that the network condition is good; 6) Error Rate (Error Rate): bit Error Rate (BER) or Packet Error Rate (PER) measures the amount of data transmitted in error, a lower error rate generally means higher network quality; 7) Channel interference (CHANNEL INTERFERENCE): assessing possible interference on the network, including interference from other wireless devices, a lower interference level generally indicates better network conditions; 8) Network congestion: the network congestion degree can be evaluated by monitoring the network traffic and the utilization rate, and lower congestion means that the network resources are sufficient and the condition is good; 9) Connection stability: the stability of the network connection, including frequent disconnection and reconnection behavior, a stable connection means that the network conditions are good; 10 Quality of service (QoS) parameters: these parameters may include bandwidth guarantees, priority control, etc., which can guarantee the quality of network service.
According to the embodiment of the present invention, in the step S202, the adjusting the size of the data packet according to the quality index includes: comparing the quality index with an index threshold to obtain a comparison result; when the comparison result shows that the quality index is larger than the index threshold, increasing the size of the data packet until the size of the data packet reaches a first optimal threshold; and when the comparison result shows that the quality index is smaller than the index threshold, reducing the size of the data packet until the size of the data packet reaches a second optimal threshold, wherein the second optimal threshold is smaller than the first optimal threshold.
The above-described embodiments of the present invention will be described in detail with reference to fig. 3, and fig. 3 is a flowchart of an alternative data transmission optimization method according to an embodiment of the present invention. As shown in fig. 3, the size of the data packet is dynamically adjusted by using a packet transmission technology according to the current link quality index (such as RSSI value, packet loss rate, error rate, etc.), when the network condition is good and the error rate is low, the size of the data packet can be increased, so as to reduce the header overhead and acknowledgement times required for transmission and improve the data transmission efficiency; when the network condition is bad, such as weak signal or strong interference, reducing the size of the data packet can reduce the retransmission probability caused by channel error, thereby improving the success rate of transmission.
The size of the data packet is increased or decreased depending on the network condition and the data amount to be transmitted, in general, the size of the data packet can be increased appropriately under good network conditions, but stability of the network and real-time performance of data transmission are also required to be considered, and under weak signals or strong interference, the size of the data packet can be reduced appropriately to reduce retransmission probability caused by channel errors, experiments and tests can be performed according to network performance, the size of the data packet can be adjusted gradually, and the size most suitable for the current network conditions can be found.
Step S204, the data type of the data in the data packet is obtained, and the priority of the data packet is determined based on the data type, wherein the priority is used for determining the transmission sequence of the data packet.
As shown in the above figure 3, the data transmission scheduling can be self-adapted, priority data can be designed to classify profits, a priority scheduling algorithm is implemented to ensure that the advanced data can be transmitted preferentially, and the priority can be determined according to the different profits of the data by classifying the data so as to ensure that the data with high profits can be transmitted preferentially, thus the benefit of data transmission can be maximized, and the overall value of data transmission is improved.
According to the above embodiment of the present invention, in the above step S204, determining the priority of the data packet based on the data type includes: when the data type indicates that the transmission time efficiency of the data is not greater than the time efficiency threshold value, determining the priority of the data packet as high priority; when the data type indicates that the transmission requirement of the data is that the transmission is completed within a predetermined time period, the priority of the data packet is determined to be high.
The different priorities ensure that critical tasks and applications can obtain necessary network resources, while less important tasks are properly limited, and the priority of the current data is generally determined based on service requirements, user experience, network policies and technical requirements, and how to determine the priority of the data can be exemplified by the following aspects: 1) Real-time requirements: real-time services such as voice and video calls are often the highest priority because they require low latency and high reliability; 2) Key business application: data of key businesses such as financial transactions, telemedicine, emergency services and the like are generally given higher priority; 3) And (3) batch transmission: such as file download and backup tasks, can typically be subject to higher delays and therefore lower priority; 4) Quality of service (QoS) class: the network administrator can classify the data streams according to the service quality protocol to ensure that different data streams obtain proper network resources, and the QoS (quality of service) grades possibly comprise gold, silver and copper grades corresponding to high, medium and low priorities respectively; 5) Network protocol: some network protocols have built-in support for priority, e.g., the IEEE 802.1Q standard defines VLAN priority in ethernet frames, while the type of service (ToS) field of the IP header and subsequent DSCP (DIFFERENTIATED SERVICES Code Point) allow for priority classification of IP packets; 6) User protocols and policies: depending on the Service Level Agreements (SLAs) or corporate/network policies subscribed to by the user, the user or data flow may be assigned different priorities; 7) Interactive contents: such as web browsing and online gaming, generally require higher priority to ensure a good user experience; 8) Streaming media: such as video and audio streams, may have different priorities depending on the real-time requirements of the content; 9) Non-interactive content: such as email and software updates, may generally be assigned a lower priority; 10 Control message): network control and management messages are typically of higher priority; 11 User data): user data may be assigned different priorities depending on the importance and requirements of the application; 12 Application identification): the network equipment can identify different application programs through technologies such as Deep Packet Inspection (DPI) and the like, and allocate priorities according to the importance of the application programs; 13 User or device): data for a particular user (e.g., VIP client) or device (e.g., critical infrastructure) may be given higher priority; 14 Time sensitivity): for tasks that need to be completed within a specific time (e.g., real-time data analysis), the relevant data streams may be given high priority.
Step S206, the channel quality of the channel is obtained, and the channel with the channel quality larger than the first quality threshold is determined as the target channel, wherein the channel is a communication path for transmitting data on the link.
As shown in FIG. 3, the conditions of each channel, including interference and noise levels, can be monitored in real time, the most clear channel is selected for communication by using spectrum sensing technology, after the available surrounding channels are determined, the best channel (target channel) is dynamically selected based on channel quality (such as interference and signal to noise ratio), a CSMA/CA mechanism is implemented to avoid data packet collision, and a handshake mechanism is used to reduce hidden node problems.
The CSMA/CA mechanism is implemented herein to reduce collisions caused by simultaneous data transmission by multiple devices on the same channel, and is a network communication protocol for avoiding data collisions by listening to the channel, randomly backoff, and acknowledge, which is specifically as follows: 1) Listening to the channel: before sending data, the device first listens to whether the channel is idle or not, if the channel is busy (i.e. being used by other devices), the device will wait until the channel becomes idle; 2) Random back-off: even if the channel is idle, the device will not immediately transmit data and will wait for a random back-off time in order to reduce the possibility of collisions. This time is calculated based on a random number multiplied by a time unit (backoff coefficient); 3) Again listening to the channel: after the back-off time is over, the device listens to the channel again, and if the channel is still idle, the device will enter the next step; if the channel is busy, the device will re-perform random backoff; 4) Transmitting data: if the channel is idle, the device will send data; 5) Confirmation response: after transmitting the data, the transmitting device generally expects to receive an Acknowledgement (ACK) from the receiving device, and if the acknowledgement is received successfully, the transmitting device knows that the data has been successfully transmitted, and if the acknowledgement is not received, the transmitting device retries transmitting the data after another random back-off time has elapsed.
According to the above embodiment of the present invention, in the step S206, it is determined that the channel with the channel quality greater than the first quality threshold is the target channel, including at least one of the following: determining a channel with an interference value lower than an interference threshold as a target channel; determining a channel with a signal-to-noise ratio value higher than a signal-to-noise threshold value as a target channel; and determining a channel with the error rate lower than the error rate threshold as a target channel, wherein the error rate is the probability of error when data is transmitted through the channel.
For example, it can be judged whether or not the current channel is a good channel (target channel) from the following aspects (channel quality): 1) Low interference level: less external interference on the channel, such as interference from other wireless devices, natural sources (e.g., lightning) or artificial electromagnetic interference (e.g., motors and switching power supplies); 2) High signal-to-noise ratio (SNR): the signal strength (power) of the channel is high relative to the background noise level, which means that the signal is clearer and easily discernable by the receiver; 3) Low Bit Error Rate (BER): the error rate of the transmitted data in the channel is lower, which is typically associated with a high SNR, because stronger signals are more efficient at resisting noise and interference; 4) Stable transmission quality: the quality of the channel remains stable in time without frequent fluctuation, and the stability is helpful for maintaining continuous communication and avoiding frequent retransmission and connection interruption; 5) Suitable bandwidth: the channel can provide enough bandwidth to meet the requirement of data transmission, so that the information stream can be smoothly transmitted; 6) Unlicensed interference: no illegal or unauthorized signal interference exists on the channel, and local radio spectrum regulation and permission requirements are complied with; 7) Low delay: the propagation delay of the channel is low, which is particularly important for applications requiring real-time or near real-time response (e.g., voIP, online gaming, video conferencing, etc.); 8) Compatibility: the channel should be compatible with the frequency allocations of surrounding devices to avoid collisions with other services or devices.
According to the above embodiment of the present invention, after the step S206, that is, after determining that the channel with the channel quality greater than the first quality threshold is the target channel, the method further includes: acquiring the current channel quality of a target channel according to a preset period; and when the current channel quality is lower than a second quality threshold, switching the data transmitted by the target channel to other target channels with the current channel quality being higher than the first quality threshold for transmission, wherein the second quality threshold is smaller than the first quality threshold.
In the process of data transmission, the channel quality of each channel needs to be monitored in real time, so that when the channel quality is reduced to a certain threshold value, the channel can be quickly and seamlessly switched to a channel with better quality to continue data transmission.
Step S208, the transmission load and the transmission capacity of the target channel are obtained, and the transmission task of the target channel is allocated according to the transmission load and the transmission capacity, wherein the transmission load represents the data flow in the target channel.
As shown in fig. 3, multiple channels may be used to transmit data in parallel, and the allocation of data transmission may be adjusted in real time according to the load and performance of each channel, so as to optimize the overall transmission efficiency, which may be achieved by dynamically adjusting the weight of data distribution or switching channels, so as to maintain the load balance of each channel, and avoid overload or congestion of a single channel.
According to the above embodiment of the present invention, in the above step S208, allocating a transmission task of a target channel according to a transmission load and a transmission capability includes: determining a current data traffic of the target channel based on the transmission load; determining a total data traffic for the target channel based on the transmission capability; and calculating according to the current data flow and the total data flow to obtain the transmission task of the target channel.
For example, the transmission tasks of the channels may be dynamically adjusted from several aspects: 1) Link quality assessment: the link quality of each bluetooth connection is continuously monitored, including indicators of signal strength, error rate, delay, etc. Dynamically adjusting the data transmission amount on each link based on the evaluation results; 2) Bandwidth measurement: periodically measuring the actual available bandwidth of each connection, and adjusting data allocation according to the measurement result; 3) Data segmentation: dividing a large data stream into a plurality of smaller data packets and distributing the data packets according to the performance characteristics of each connection; 4) Scheduling algorithm: implementing a scheduling algorithm, such as Round-Robin (Round-Robin), weighted fair Queuing (WEIGHTED FAIR Queuing, WFQ), or shortest queue first (Shortest Queue First), to ensure that data is evenly distributed across the paths; 5) And (3) adaptability adjustment: dynamically adjusting the data allocation strategy according to the change of network conditions (such as signal strength change caused by the change of the position of the mobile device); 6) And (3) flow control: using a flow control mechanism to avoid congestion on any one connection, reducing the amount of data sent to that connection when congestion is detected; 7) Priority consideration: for data with different priorities, different transmission strategies can be adopted, so that the data with high priority is ensured to be transmitted quickly; 8) Error recovery mechanism: when an error occurs in one path, the data is quickly rerouted to the other path so as to avoid transmission delay; 9) Feedback mechanism: the device may provide feedback information to the sender, including current transmission efficiency and possible problems, so that the sender may adjust the transmission policy.
In step S210, data is transmitted based on the transmission task using the target channel according to the priority of the data packet.
When transmitting data, the data transmission is carried out according to the priority of the data and the transmission task of each channel, so that the utilization rate of the channels can be increased, the data throughput of the network can be increased, and the interference to other devices can be reduced by combining effective channel management and power control.
According to the above embodiment of the present invention, the data transmission optimization method further includes: acquiring the transmission state of data in a target channel; determining that the transmission state indicates that data transmitted in error in the transmission process is data to be retransmitted; and retransmitting the data to be retransmitted.
As shown in fig. 3, the collision and retransmission can be reduced by implementing selective retransmission using error control and recovery, retransmitting only erroneous packets (data packets) instead of the entire window, and controlling the transmission rate using a sliding window protocol.
For example, a packet may be judged to be erroneous from the following aspects: 1) Acknowledgement mechanism (Acknowledgment Mechanism): the sender waits for an acknowledgement signal (ACK) of the receiver after sending the data packet, and if the ACK is not received within a predetermined timeout period, the sender can assume that the data packet is lost and resend it; 2) Sequence number (Sequence Numbering): each packet is assigned a unique sequence number and the receiving side examines the sequence number of the packet to determine if there is a packet loss (e.g., if packets with sequence numbers 1 and 3 are received but no packet with sequence number 2 is received, it can be inferred that packet with sequence number 2 is lost); 3) Checksum (Checksum): the head or tail of the data packet contains a checksum value which is calculated based on the content of the data packet, the receiving party recalculates the checksum of the received data packet and compares the checksum with the checksum in the data packet, and if the two checksum values are not matched, the data packet is indicated to have errors in the transmission process; 4) Cyclic redundancy check (Cyclic Redundancy Check, CRC): CRC is a more complex form of checksum that uses polynomial coding to detect errors in data packets, CRC is generally able to detect errors in data packets, and error detection is more accurate than simple checksums; 5) Frame check Sequence (FRAME CHECK Sequence, FCS): similar to CRC, FCS is a mechanism that is commonly used by the data link layer to detect transmission errors; 6) Timeout retransmission (Timeout Retransmission): if the receiving side does not receive the specific data packet within the preset timeout time, the transmitting side retransmits the data packet; 7) Negative acknowledgement (Negative Acknowledgment, NAK): if the receiving side detects an erroneous data packet, it can send a NAK signal to the transmitting side informing the transmitting side to retransmit the data packet; 8) Automatic repeat request (Automatic Repeat reQuest, ARQ): ARQ is an error control method that combines mechanisms such as acknowledgement, timeout, retransmission, etc., to ensure that all packets are transmitted correctly.
The sliding window protocol may indirectly affect power usage by optimizing data transmission by managing data flows and responding to network conditions. The sliding window protocol may be employed to control the transmission rate from several aspects to reduce collisions and retransmissions: 1) And (3) flow control: the sliding window protocol controls the data transmission rate of a sender by dynamically adjusting the window size, and when the network quality is poor, the window size is reduced to reduce the number of data packets transmitted in the network at the same time, thereby reducing retransmission possibly caused by interference or signal attenuation and indirectly reducing the requirement of transmission power; 2) Congestion control: such as congestion control mechanisms in the TCP protocol, when network congestion is detected (e.g., by packet loss), the transmission rate of the data is reduced, which means that the transmission power is reduced indirectly in high congestion situations, because the frequency of transmitting data is reduced; 3) Quality of service (QoS) policy: in some networks, the transmit power may be adjusted according to the QoS requirements of the data flows, although this is typically done at a lower network layer, the sliding window protocol may support this by controlling the transmission rate to the high priority data flows; 4) Protocol for energy consumption perception: in some energy-aware network protocols, the behavior of the sliding window may take into account the energy efficiency of the device, e.g., in wireless sensor networks, the protocol may limit the transmission rate to extend the battery life of the device, which may also indirectly reduce the transmission power; 5) Adaptive transmission power control: although the sliding window protocol itself does not control the transmit power, it may be used in conjunction with an adaptive transmit power control mechanism, e.g., if a device frequently retransmits data packets due to errors, there may be a mechanism to increase the transmit power to improve the transmission quality, and the sliding window protocol may reduce the need for such increased power by reducing retransmissions.
According to the above embodiment of the present invention, the data transmission optimization method further includes: acquiring distance data between a sending device and a receiving device of data; adjusting the transmission power of the device according to the distance data and the channel quality, wherein the device comprises a transmitting device and a receiving device; data is transmitted based on the transmission power.
As shown in fig. 3, the transmission power is dynamically adjusted according to the distance between the device and the opposite terminal and the channel quality, so as to optimize the energy efficiency, i.e. reduce the transmission power as much as possible on the premise of ensuring the data transmission quality, thereby achieving the purpose of energy saving.
In this embodiment, the data transmission optimization method further includes: acquiring the activity of data transmission in a target channel; and when the activity level is determined to be lower than the activity level threshold value, controlling the equipment to enter a low-power mode, wherein the low-power mode refers to the equipment entering a standby or sleep state.
When the data transmission is not active, the device can enter a low power consumption mode and wake up quickly according to the data transmission requirement. The data transmission of the current channel may be judged to be in an inactive state from several aspects: 1) And (3) no data packet transmission: the network device does not detect any inbound or outbound packets for a predetermined period of time; 2) Quiet period: the communication protocol may define a quiet period during which the connection is deemed inactive if there is no data exchange; 3) Timeout: many web services and applications have timeout settings, and if there is no data transfer within the timeout period, the session or connection may be closed; 4) Below a certain threshold: some systems may define the active state based on the frequency or amount of data transmission. If the data transmission rate is below a certain threshold, it may be considered inactive; 5) The user does not interact: for client applications, if no user has done any action for a period of time resulting in no data transfer, this may also be considered inactive; 6) The application program is run in the background: when an application is running in the background and is not in network communication, it may be considered inactive on data transmission; 7) Wait state: the device or application may be in a state waiting to receive data, but if no data arrives for a long time, this waiting state may transition to an inactive state.
When data transmission is inactive, the device may be put into a low power mode by: 1) Reducing processor speed: many devices may reduce the clock frequency of the CPU or turn off some cores to reduce power consumption; 2) Turning off or reducing the peripheral power supply: screens, hard disks, wireless adapters, and other peripherals may be turned off or put into a low power mode; 3) Reducing network activity: the network interface may reduce its operating frequency, reduce the frequency of checking network packets, or turn off the radio transmitter entirely; 4) Memory state change: the device may transfer data from a fast but energy-consuming RAM to a slow but energy-saving storage, or use a low-power-consumption RAM state; 5) System response delay: devices that enter a low power state may have significant delays in waking up because time is required to resume a normal operating state; 6) Indicator light or status change: some devices may indicate that they have entered a low power mode by means of an indicator light or by displaying status information on a user interface.
According to the above, the quality index of the link can be obtained first, and the size of the data packet can be adjusted according to the quality index, wherein the link is a physical connection structure of the connection device in the network communication, and the data packet is a data unit transmitted in the network communication; acquiring the data type of data in the data packet, and determining the priority of the data packet based on the data type, wherein the priority is used for determining the transmission sequence of the data packet; acquiring the channel quality of a channel, and determining the channel with the channel quality larger than a first quality threshold as a target channel, wherein the channel is a communication path for transmitting data on a link; acquiring transmission load and transmission capacity of a target channel, and distributing transmission tasks of the target channel according to the transmission load and the transmission capacity, wherein the transmission load represents data flow in the target channel; the data is transmitted by utilizing the target channel based on the transmission task according to the priority of the data packet, the size of the data packet is dynamically adjusted according to the link quality index in network communication, the transmission task is dynamically allocated according to the transmission load and the transmission capacity of the channel, the channel with higher channel quality is selected to transmit the data according to the priority of the data packet based on the transmission task, the technical effect of transmitting more data in a given time is realized, the channel utilization rate is improved, the data throughput of the network is increased, and the data transmission efficiency is improved.
Therefore, the technical scheme provided by the embodiment of the invention solves the technical problem that the Bluetooth transmission rate is low in the related art and the requirements of large data volume and high rate cannot be met.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
According to an embodiment of the present invention, there is further provided a data transmission optimizing apparatus for implementing the method of the data transmission optimizing apparatus, and fig. 4 is a schematic diagram of the data transmission optimizing apparatus according to the embodiment of the present invention, as shown in fig. 4, and the apparatus includes: a first acquisition unit 41, a second acquisition unit 43, a third acquisition unit 45, a fourth acquisition unit 47, and a first transmission unit 49. The data transmission optimizing apparatus will be described in detail below.
The first obtaining unit 41 is configured to obtain a quality index of a link, and adjust a size of a data packet according to the quality index, where the link is a physical connection structure of a connection device in network communication, and the data packet is a data unit transmitted in the network communication.
A second obtaining unit 43, configured to obtain a data type of data in the data packet, and determine a priority of the data packet based on the data type, where the priority is used to determine a transmission order of the data packet.
A third obtaining unit 45, configured to obtain a channel quality of the channel, and determine that the channel with the channel quality greater than the first quality threshold is a target channel, where the channel is a communication path for transmitting data on the link.
A fourth obtaining unit 47, configured to obtain a transmission load and a transmission capability of the target channel, and allocate a transmission task of the target channel according to the transmission load and the transmission capability, where the transmission load represents a data traffic in the target channel.
A first transmission unit 49 for transmitting data based on the transmission task using the target channel according to the priority of the data packet.
Here, the first acquiring unit 41, the second acquiring unit 43, the third acquiring unit 45, the fourth acquiring unit 47, and the first transmitting unit 49 correspond to steps S202 to S210 in the above embodiments, and the five units are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments.
As can be seen from the above, in the solution described in the foregoing embodiment of the present invention, the first obtaining unit may be configured to obtain a quality index of a link, and adjust a size of a data packet according to the quality index, where the link is a physical connection structure of a connection device in network communication, and the data packet is a data unit transmitted in the network communication; then, a second acquisition unit is utilized to acquire the data type of the data in the data packet, and the priority of the data packet is determined based on the data type, wherein the priority is used for determining the transmission sequence of the data packet; then, a third acquisition unit is utilized to acquire the channel quality of the channel, and the channel with the channel quality larger than a first quality threshold value is determined to be a target channel, wherein the channel is a communication path for transmitting data on a link; the fourth acquisition unit is used for acquiring the transmission load and the transmission capacity of the target channel and distributing the transmission task of the target channel according to the transmission load and the transmission capacity, wherein the transmission load represents the data flow in the target channel; and finally, the first transmission unit is utilized to transmit data based on the transmission task by utilizing the target channel according to the priority of the data packet, so that the purposes of dynamically adjusting the size of the data packet according to the link quality index in network communication, dynamically distributing the transmission task according to the transmission load and the transmission capacity of the channel, selecting the channel with higher channel quality to transmit data according to the priority of the data packet based on the transmission task, realizing the technical effect of transmitting more data in a given time, improving the channel utilization rate, increasing the data throughput of the network and improving the data transmission efficiency are achieved.
Optionally, the first acquisition unit includes: the first acquisition module is used for comparing the quality index with an index threshold value to obtain a comparison result; the first adjusting module is used for increasing the size of the data packet when the comparison result shows that the quality index is larger than the index threshold value, until the size of the data packet reaches a first optimal threshold value; and the second adjusting module is used for reducing the size of the data packet when the comparison result shows that the quality index is smaller than the index threshold value until the size of the data packet reaches a second optimal threshold value, wherein the second optimal threshold value is smaller than the first optimal threshold value.
Optionally, the second acquisition unit includes: the first determining module is used for determining that the priority of the data packet is high priority when the transmission time of the data type representing the data is not more than the time threshold; and the second determining module is used for determining the priority of the data packet as high priority when the data type indicates that the transmission requirement of the data is that the transmission is completed within the preset time length.
Optionally, the third acquisition unit includes at least one of: a third determining module, configured to determine that a channel with an interference value lower than an interference threshold is a target channel; a fourth determining module, configured to determine that a channel with a signal-to-noise ratio value higher than a signal-to-noise threshold is a target channel; and a fifth determining module, configured to determine that a channel with an error rate lower than the error rate threshold is a target channel, where the error rate is a probability of an error occurring when data is transmitted through the channel.
Optionally, the data transmission optimizing apparatus further includes: the second acquisition module is used for acquiring the current channel quality of the target channel according to a preset period after determining that the channel with the channel quality larger than the first quality threshold is the target channel; and the switching module is used for switching the data transmitted by the target channel to other target channels with the current channel quality larger than the first quality threshold for transmission when the current channel quality is lower than a second quality threshold, wherein the second quality threshold is smaller than the first quality threshold.
Optionally, the fourth acquisition unit includes: a sixth determining module, configured to determine a current data traffic of the target channel based on the transmission load; a seventh determining module, configured to determine a total data traffic of the target channel based on the transmission capability; and the third acquisition module is used for calculating and obtaining the transmission task of the target channel according to the current data flow and the total data flow.
Optionally, the data transmission optimizing apparatus further includes: a fifth acquisition unit configured to acquire a transmission state of data in the target channel; a determining unit, configured to determine that the transmission state indicates that data transmitted in error occurs in a transmission process is data to be retransmitted; and the second transmission unit is used for retransmitting the data to be retransmitted.
Optionally, the data transmission optimizing apparatus further includes: a sixth acquisition unit configured to acquire distance data between the transmitting device and the receiving device of the data; an adjusting unit, configured to adjust transmission power of an apparatus according to the distance data and the channel quality, where the apparatus includes a transmitting apparatus and a receiving apparatus; and a third transmission unit for transmitting data based on the transmission power.
Optionally, the data transmission optimizing apparatus further includes: a seventh obtaining unit, configured to obtain an activity level of data transmission in the target channel; and the control unit is used for controlling the equipment to enter a low-power consumption mode when the activity degree is lower than the activity degree threshold value, wherein the low-power consumption mode refers to the equipment entering a standby or sleep state.
According to another aspect of the embodiment of the present invention, there is also provided a data transmission optimization system, which uses any one of the above data transmission optimization methods.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium including a stored program, wherein the program performs any one of the above-described data transmission optimization methods.
Alternatively, in the present embodiment, the above-described computer-readable storage medium may be located in any one of a group of computer terminals in a computer network, or in any one of a group of communication devices.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: acquiring a quality index of a link, and adjusting the size of a data packet according to the quality index, wherein the link is a physical connection structure of connecting equipment in network communication, and the data packet is a data unit transmitted in the network communication; acquiring the data type of data in the data packet, and determining the priority of the data packet based on the data type, wherein the priority is used for determining the transmission sequence of the data packet; acquiring the channel quality of a channel, and determining the channel with the channel quality larger than a first quality threshold as a target channel, wherein the channel is a communication path for transmitting data on a link; acquiring transmission load and transmission capacity of a target channel, and distributing transmission tasks of the target channel according to the transmission load and the transmission capacity, wherein the transmission load represents data flow in the target channel; and transmitting data based on the transmission task by utilizing the target channel according to the priority of the data packet.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: comparing the quality index with an index threshold to obtain a comparison result; when the comparison result shows that the quality index is larger than the index threshold, increasing the size of the data packet until the size of the data packet reaches a first optimal threshold; and when the comparison result shows that the quality index is smaller than the index threshold, reducing the size of the data packet until the size of the data packet reaches a second optimal threshold, wherein the second optimal threshold is smaller than the first optimal threshold.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: when the data type indicates that the transmission time efficiency of the data is not greater than the time efficiency threshold value, determining the priority of the data packet as high priority; when the data type indicates that the transmission requirement of the data is that the transmission is completed within a predetermined time period, the priority of the data packet is determined to be high.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: determining a channel with an interference value lower than an interference threshold as a target channel; determining a channel with a signal-to-noise ratio value higher than a signal-to-noise threshold value as a target channel; and determining a channel with the error rate lower than the error rate threshold as a target channel, wherein the error rate is the probability of error when data is transmitted through the channel.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: acquiring the current channel quality of a target channel according to a preset period; and when the current channel quality is lower than a second quality threshold, switching the data transmitted by the target channel to other target channels with the current channel quality being higher than the first quality threshold for transmission, wherein the second quality threshold is smaller than the first quality threshold.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: determining a current data traffic of the target channel based on the transmission load; determining a total data traffic for the target channel based on the transmission capability; and calculating according to the current data flow and the total data flow to obtain the transmission task of the target channel.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: acquiring the transmission state of data in a target channel; determining that the transmission state indicates that data transmitted in error in the transmission process is data to be retransmitted; and retransmitting the data to be retransmitted.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: acquiring distance data between a sending device and a receiving device of data; adjusting the transmission power of the device according to the distance data and the channel quality, wherein the device comprises a transmitting device and a receiving device; data is transmitted based on the transmission power.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: acquiring the activity of data transmission in a target channel; and when the activity level is determined to be lower than the activity level threshold value, controlling the equipment to enter a low-power mode, wherein the low-power mode refers to the equipment entering a standby or sleep state.
According to another aspect of the embodiment of the present invention, there is also provided a processor, configured to execute a program, where the program executes any one of the data transmission optimization methods described above. The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (10)

1. A method for optimizing data transmission, comprising:
acquiring a quality index of a link, and adjusting the size of a data packet according to the quality index, wherein the link is a physical connection structure of connection equipment in network communication, and the data packet is a data unit transmitted in the network communication;
Acquiring a data type of data in the data packet, and determining a priority of the data packet based on the data type, wherein the priority is used for determining a transmission sequence of the data packet;
Acquiring the channel quality of a channel, and determining the channel with the channel quality greater than a first quality threshold as a target channel, wherein the channel is a communication path for transmitting data on the link;
Acquiring transmission load and transmission capacity of the target channel, and distributing transmission tasks of the target channel according to the transmission load and the transmission capacity, wherein the transmission load represents data traffic in the target channel;
And transmitting the data based on the transmission task by utilizing the target channel according to the priority of the data packet.
2. The data transmission optimization method according to claim 1, wherein adjusting the size of the data packet according to the quality index comprises:
comparing the quality index with an index threshold to obtain a comparison result;
When the comparison result shows that the quality index is larger than an index threshold, increasing the size of the data packet until the size of the data packet reaches a first optimal threshold;
And when the comparison result shows that the quality index is smaller than the index threshold, reducing the size of the data packet until the size of the data packet reaches a second optimal threshold, wherein the second optimal threshold is smaller than the first optimal threshold.
3. The data transmission optimization method according to claim 1, wherein determining the priority of the data packet based on the data type comprises:
Determining that the priority of the data packet is a high priority when the data type indicates that the transmission age of the data is not greater than an age threshold;
and determining the priority of the data packet as the high priority when the data type indicates that the transmission requirement of the data is that the transmission is completed within a preset time length.
4. The data transmission optimization method according to claim 1, wherein determining the channel whose channel quality is greater than a first quality threshold as a target channel comprises at least one of:
Determining the channel with the interference value lower than an interference threshold as the target channel;
Determining the channel with the signal-to-noise ratio value higher than a signal-to-noise threshold value as the target channel;
and determining the channel with the error rate lower than the error rate threshold as the target channel, wherein the error rate is the probability of error when the data is transmitted through the channel.
5. The data transmission optimization method according to claim 1, further comprising, after determining the channel whose channel quality is greater than a first quality threshold as a target channel:
acquiring the current channel quality of the target channel according to a preset period;
And when the current channel quality is lower than a second quality threshold, switching the data transmitted by the target channel to other target channels with the current channel quality larger than the first quality threshold for transmission, wherein the second quality threshold is smaller than the first quality threshold.
6. The data transmission optimization method according to claim 1, wherein allocating the transmission task of the target channel according to the transmission load and the transmission capability comprises:
determining a current data traffic of the target channel based on the transmission load;
determining a total data traffic for the target channel based on the transmission capability;
And calculating the transmission task of the target channel according to the current data flow and the total data flow.
7. The data transmission optimization method according to claim 1, further comprising:
Acquiring the transmission state of the data in the target channel;
determining that the transmission state indicates that the data transmitted in error in the transmission process is data to be retransmitted;
And retransmitting the data to be retransmitted.
8. The data transmission optimization method according to claim 1, further comprising:
acquiring distance data between a sending device and a receiving device of the data;
Adjusting transmission power of a device according to the distance data and the channel quality, wherein the device comprises the transmitting device and the receiving device;
transmitting the data based on the transmission power.
9. The data transmission optimization method according to claim 8, further comprising:
Acquiring the activity of the data transmission in the target channel;
and controlling the equipment to enter a low power consumption mode when the activity degree is determined to be lower than an activity degree threshold value, wherein the low power consumption mode refers to that the equipment enters a standby or sleep state.
10. A data transmission optimizing apparatus, comprising:
The first acquisition unit is used for acquiring the quality index of a link and adjusting the size of a data packet according to the quality index, wherein the link is a physical connection structure of connection equipment in network communication, and the data packet is a data unit transmitted in the network communication;
A second obtaining unit, configured to obtain a data type of data in the data packet, and determine a priority of the data packet based on the data type, where the priority is used to determine a transmission order of the data packet;
A third obtaining unit, configured to obtain a channel quality of a channel, and determine that the channel with the channel quality greater than a first quality threshold is a target channel, where the channel is a communication path for transmitting data on the link;
A fourth obtaining unit, configured to obtain a transmission load and a transmission capability of the target channel, and allocate a transmission task of the target channel according to the transmission load and the transmission capability, where the transmission load represents a data traffic in the target channel;
and the first transmission unit is used for transmitting the data based on the transmission task by utilizing the target channel according to the priority of the data packet.
CN202410204278.4A 2024-02-23 2024-02-23 Data transmission optimization method and device Pending CN117998457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410204278.4A CN117998457A (en) 2024-02-23 2024-02-23 Data transmission optimization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410204278.4A CN117998457A (en) 2024-02-23 2024-02-23 Data transmission optimization method and device

Publications (1)

Publication Number Publication Date
CN117998457A true CN117998457A (en) 2024-05-07

Family

ID=90898847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410204278.4A Pending CN117998457A (en) 2024-02-23 2024-02-23 Data transmission optimization method and device

Country Status (1)

Country Link
CN (1) CN117998457A (en)

Similar Documents

Publication Publication Date Title
US7136353B2 (en) Quality of service management for multiple connections within a network communication system
JP4435235B2 (en) Method and apparatus for controlling wireless medium congestion by adjusting contention window size and separating selected mobile stations
AU2005323609B2 (en) Method and apparatus for scheduling enhanced uplink dedicated channels in a mobile communication system
US7936678B2 (en) Energy aware early detection
US20110019557A1 (en) Packet aggregation
KR102102254B1 (en) Apparatus and method for congestion detection of wireless network in a communication system
WO2014042904A1 (en) Fusion of cellular and non-cellular communications
Han et al. Leveraging coupled BBR and adaptive packet scheduling to boost MPTCP
WO2023236905A1 (en) Delay reliability determination method, and access network device and storage medium
CN101517994A (en) Methods and apparatus for determining quality of service in a communication system
JP2011176693A (en) Mobile radio communication apparatus, tcp flow control device and method of the same
Garroppo et al. Providing air-time usage fairness in IEEE 802.11 networks with the deficit transmission time (DTT) scheduler
CN117998457A (en) Data transmission optimization method and device
CN103107949A (en) Network relay device, control method for network relay device
Sharma Analysis of 802.11 b MAC: A QoS, fairness, and performance perspective
CN116208979A (en) Adaptive wireless connection in multimode devices
CN112689268B (en) Method and system for improving multi-route data transmission efficiency by formation unmanned aerial vehicle networking
Gomez et al. Havana: Supporting application and channel dependent QoS in wireless packet networks
CN113347681B (en) Data transmission method and device, storage medium and electronic device
CN109639537A (en) A kind of high-speed data transmission method of TDMA auto negotiation rate
Chen et al. Congestion-aware MAC layer adaptation to improve video telephony over Wi-Fi
Leung et al. TCP-NCL: A serialized-timer approach for enhancing TCP over heterogeneous wired/wireless networks
WO2021043841A1 (en) Device and method for application-requirement aware medium access control
US8976653B2 (en) Communication devices and methods for determining status of remote communication devices
WO2019124290A1 (en) Transmit data volume control device, method, and recording medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination