Data transmission method and apparatus thereof
A data transmission method and a technology of a data transmission device, which are applied in the field of communication, can solve problems such as the inability to guarantee data transmission delay, the inability to automatically adjust the number of fragments, etc., and achieve the effect of reducing transmission delay and low transmission delay
Active Publication Date: 2015-10-07
TENCENT TECH (SHENZHEN) CO LTD +1
4 Cites 22 Cited by
AI-Extracted Technical Summary
Problems solved by technology
[0005] The purpose of the present invention is to provide a data transmission method and device, aiming to solve the technical problem in the prior art that the number...
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View moreMethod used
As can be seen from the above, in the present embodiment, the data is fragmented, and the fragmentation size and the transmission time interval of the fragmentation are initially adjusted, and the delay change of the data transmission is detected within the delay detection time; it Finally, according to the result of the delay change, dynamically adjust the fragment size and transmission time interval of each fragment according to the preset adjustment rules, and adjust the The data is transmitted so that the delay change reaches a preset range, and finally the data is transmitted according to the fragment size and the transmission time interval when the delay change reaches a preset range; in this embodiment, during the data transmission process, According to the current delay change, the fragmentation size and transmission time interval of the fragments are automatically adjusted, thereby adjusting the number of fragments, reducing the transmission delay, and ensuring the lowest transmission delay for data of various sizes.
As can be seen from the above, in the present embodiment, the data is fragmented, and the fragmentation size and the transmission time interval of the fragmentation are initially adjusted, and the time delay variation of data transmission is detected within the time delay detection time; its Finally, according to the result of the delay change, dynamically adjust the fragment size and transmission time interval of each fragment according to the preset adjustment rules, and adjust the The data is transmitted so that the delay change reaches a preset range, and finally the data is tr...
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View moreAbstract
The invention discloses a data transmission method and an apparatus thereof. The method comprises partitioning the data into at least one fragment and transmitting the fragment, wherein the fragment is provided with the size of fragment and the transmission time interval; adjusting the size of fragment and transmitting data according to the adjusted size of fragment within the time delay detection time; detecting the time delay change for data transmission within the time delay detection time; according to the result of the time delay change and on the basis of the preset adjusting rule, dynamically adjusting the size of fragment and the transmission time interval, and transmitting the data according to the adjusted size of fragment and the adjusted transmission time interval to enable the time delay change to achieve the preset scope; and transmitting the data according to the size of fragment and the transmission time interval when the time delay change achieves the preset scope. In the embodiment, the size of fragment and the transmission time interval can be automatically adjusted according to the current time delay change, thus adjusting the number of fragments, reducing the transmission time delay, and guaranteeing that the transmission time delay for various data is the lowest.
Application Domain
Technology Topic
Image
Examples
- Experimental program(1)
Example Embodiment
[0030] In order to make the objectives, technical solutions, and beneficial effects of the present invention clearer, the following further describes the present invention in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
[0031] In the following description, specific embodiments of the present invention will be described with reference to the steps and symbols of operations executed by one or more computers, unless otherwise stated. Therefore, it will be able to understand these steps and operations, several of which are mentioned as being executed by a computer, including manipulation by a computer processing unit that represents an electronic signal of data in a structured form. This manipulation transforms the data or maintains it in a location in the computer's memory system, which can be reconfigured or otherwise changed in a manner well known to those skilled in the art to change the operation of the computer. The data structure maintained by the data is the physical location of the memory, which has specific characteristics defined by the data format. However, the principle of the present invention is described in the above text, which does not represent a limitation. Those skilled in the art will understand that the various steps and operations described below can also be implemented in hardware.
[0032] As used in this application, the terms “component”, “module”, “system”, “interface”, “process”, etc., are generally intended to refer to computer-related entities: hardware, a combination of hardware and software, software or components in execution software. For example, a component may be, but is not limited to, a process, a processor, an object, an executable application, a thread of execution, a program, and/or a computer running on a processor. By way of illustration, both the application running on the controller and the controller can be components. One or more components may exist in an executing process and/or thread, and the components may be located on one computer and/or distributed between two or more computers.
[0033] Moreover, the claimed subject matter can be implemented as a method, device, or article of manufacture that uses standard programming and/or engineering techniques to generate software, firmware, hardware, or any combination thereof to control a computer to implement the disclosed subject matter. The term "article of manufacture" as used herein is intended to include a computer program accessible from any computer-readable device, carrier, or medium. Of course, those skilled in the art will recognize that many modifications can be made to this configuration without departing from the scope or spirit of the claimed subject matter.
[0034] figure 1 And the discussion that follows provides a brief and general description of the working environment of the server where the data transmission device of the present invention is implemented. figure 1 The working environment is only an example of an appropriate working environment, and is not intended to suggest any restrictions on the scope of the use or function of the working environment. Example servers 112 include, but are not limited to, personal computers, server computers, handheld or laptop devices, mobile devices (such as mobile phones, personal digital assistants (PDAs), media players, etc.), multi-processor systems, consumer servers , Small computers, large computers, distributed computing environments including any of the above systems or devices, etc.
[0035] Although not required, the embodiments are described in the general context of "computer-readable instructions" being executed by one or more servers. Computer readable instructions may be distributed via computer readable media (discussed below). Computer readable instructions can be implemented as program modules, such as functions, objects, application programming interfaces (APIs), data structures, etc. that perform specific tasks or implement specific abstract data types. Typically, the functions of the computer readable instructions can be randomly combined or distributed in various environments.
[0036] figure 1 Illustrated is an example of a server 112 including one or more embodiments of the data transmission device of the present invention. In one configuration, the server 112 includes at least one processing unit 116 and memory 118. Depending on the exact configuration and type of the server, the memory 118 may be volatile (such as RAM), non-volatile (such as ROM, flash memory, etc.), or some combination of the two. The configuration is figure 1 It is illustrated by the dotted line 114.
[0037] In other embodiments, the server 112 may include additional features and/or functions. For example, the device 112 may also include additional storage devices (for example, removable and/or non-removable), including but not limited to magnetic storage devices, optical storage devices, and so on. This additional storage device is figure 1 Is illustrated by the storage device 120. In one embodiment, computer readable instructions for implementing one or more embodiments provided herein may be in the storage device 120. The storage device 120 may also store other computer-readable instructions for implementing an operating system, application programs, and the like. The computer-readable instructions may be loaded into the memory 118 and executed by the processing unit 116, for example.
[0038] The term "computer-readable medium" as used herein includes computer storage media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storing information such as computer readable instructions or other data. The memory 118 and the storage device 120 are examples of computer storage media. Computer storage media include but are not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical storage devices, cassette tapes, magnetic tapes, disk storage devices or other magnetic storage devices, Or any other medium that can be used to store desired information and can be accessed by the server 112. Any such computer storage medium may be part of the server 112.
[0039] The server 112 may also include a communication connection 126 that allows the server 112 to communicate with other devices. The communication connection 126 may include, but is not limited to, a modem, a network interface card (NIC), an integrated network interface, a radio frequency transmitter/receiver, an infrared port, a USB connection, or other interfaces for connecting the server 112 to other servers. The communication connection 126 may include a wired connection or a wireless connection. The communication connection 126 can transmit and/or receive communication media.
[0040] The term "computer-readable medium" may include communication media. Communication media typically contain computer-readable instructions or other data in a "modulated data signal" such as a carrier wave or other transmission mechanism, and include any information delivery media. The term "modulated data signal" may include a signal in which one or more of the characteristics of the signal is set or changed in a manner that encodes information into the signal.
[0041] The server 112 may include an input device 124, such as a keyboard, a mouse, a pen, a voice input device, a touch input device, an infrared camera, a video input device, and/or any other input device. The device 112 may also include an output device 122, such as one or more displays, speakers, printers, and/or any other output devices. The input device 124 and the output device 122 may be connected to the server 112 via a wired connection, a wireless connection, or any combination thereof. In one embodiment, an input device or output device from another server may be used as the input device 124 or output device 122 of the server 112.
[0042] The components of the server 112 may be connected by various interconnections (such as buses). Such interconnections may include Peripheral Component Interconnect (PCI) (such as PCI Express), Universal Serial Bus (USB), FireWire (IEEE1394), optical bus structure, and so on. In another embodiment, the components of the server 112 may be interconnected through a network. For example, the memory 118 may be composed of multiple physical memory units located in different physical locations and interconnected by a network.
[0043] Those skilled in the art will recognize that storage devices used to store computer-readable instructions can be distributed across a network. For example, the server 130 accessible via the network 128 may store computer-readable instructions for implementing one or more embodiments provided by the present invention. The server 112 can access the server 130 and download part or all of the computer-readable instructions for execution. Alternatively, the server 112 may download as many computer-readable instructions as needed, or some instructions may be executed at the server 112 and some instructions may be executed at the server 130.
[0044] This document provides various operations of the embodiment. In an embodiment, the one or more operations may constitute one or more computer-readable instructions stored on a computer-readable medium, which when executed by a server will cause a computing device to perform the operations. Describing the order of some or all operations should not be interpreted as implying that these operations must be order-related. Those skilled in the art will understand alternative sequencing that has the benefit of this description. Moreover, it should be understood that not all operations must exist in every embodiment provided herein.
[0045] Moreover, the word "preferred" as used herein means serving as an example, instance, or illustration. Any aspect or design described as "preferred" by the text need not be construed as more advantageous than other aspects or designs. Rather, the use of the word "preferred" is intended to present the concept in a specific way. The term "or" as used in this application is intended to mean an inclusive "or" rather than an exclusive "or". That is, unless otherwise specified or clear from the context, "X uses A or B" means that it naturally includes either of the permutations. That is, if X uses A; X uses B; or X uses both A and B, then "X uses A or B" is satisfied in any of the foregoing examples.
[0046] Moreover, although the present disclosure has been shown and described with respect to one or more implementation manners, those skilled in the art will conceive equivalent variations and modifications based on the reading and understanding of the specification and the drawings. The present disclosure includes all such modifications and variations, and is limited only by the scope of the appended claims. In particular, with regard to the various functions performed by the above-mentioned components (e.g., elements, resources, etc.), the terms used to describe such components are intended to correspond to those performing the specified functions of the components (e.g., they are functionally equivalent) Any component (unless otherwise indicated), even if it is not structurally equivalent to the disclosed structure that performs the function in the exemplary implementation of the present disclosure shown herein. In addition, although a specific feature of the present disclosure has been disclosed with respect to only one of several implementations, this feature can be combined with one or more of other implementations that may be desirable and advantageous for a given or specific application. Other feature combinations. Moreover, as far as the terms "including", "having", "containing" or their variations are used in specific embodiments or claims, such terms are intended to be included in a similar manner to the term "comprising".
[0047] See figure 2 , figure 2 It is a schematic flowchart of the data transmission method provided by the first embodiment of the present invention.
[0048] In step S201, the data is divided into at least one fragment and data transmission is performed, wherein the fragment has a fragment size and a transmission time interval.
[0049] It is understandable that the existing data fragmentation algorithm can be used to divide the data into at least one fragment. Wherein, the segment has an initial segment size and transmission time interval, and can be stored in the server in a preset manner. In this embodiment, after data is fragmented, the data is transmitted within the initial transmission time interval according to the initial fragment size of the fragment.
[0050] In step S202, when the transmission time interval arrives, the segment size is adjusted, and data transmission is performed within a delay detection time according to the adjusted segment size.
[0051] It is understandable that the initial adjustment of the fragment size of the fragment is performed when the transmission time interval arrives. Preferably, the initial fragment size of the fragment may be used as the base to adjust the fragment according to a preset ratio. The fragment size of the fragment.
[0052] In the embodiment of the present invention, the transmission time interval of the fragment may include the delay detection time and the transmission time of the fragment. Preferably, the unit time T of the transmission time interval of the fragment may be defined as the delay detection time , The delay detection time is equal to the initial transmission time interval of the fragment.
[0053] In step S203, the time delay change of the data transmission within the time delay detection time is detected.
[0054] Wherein, after the initial adjustment of the initial segment size is performed, the delay change of the adjusted segment relative to the data transmission before adjustment within the delay detection time is detected.
[0055] In step S204, according to the result of the delay change, the segment size and transmission time interval of each segment are dynamically adjusted according to a preset adjustment rule.
[0056] In step S205, continue to transmit the data according to the adjusted fragment size and the adjusted transmission time interval, and repeat the step of detecting the delay change of the data transmission within the time delay detection time, Until the delay change reaches the preset range.
[0057] It is understandable that in the step S204 and the step S205, the segment size and transmission time interval of each segment are dynamically adjusted according to the preset adjustment rules, in order to continuously adjust during the data transmission process. The number of data fragments to reduce latency. Wherein, the preset range may be stored in the server in a preset manner.
[0058] If it is detected in step S203 that the time delay change has reached the preset range, step S206 is executed, and if it is detected that the time delay change has not reached the preset range, then according to the preset adjustment rule, perform step S206. The fragment size and transmission time interval of the fragment are dynamically adjusted until the delay change reaches a preset range.
[0059] In step S206, the data is transmitted according to the fragment size and the transmission time interval when the time delay variation reaches the preset range.
[0060] It can be seen from the above that in this embodiment, the data is fragmented, the fragment size and transmission time interval of the fragments are initially adjusted, and the delay change of the data transmission within the delay detection time is detected; then, according to As a result of the delay change, the fragment size and transmission time interval of each fragment are dynamically adjusted according to the preset adjustment rules, and the data is transmitted according to the adjusted fragment size and the adjusted transmission time interval , So that the delay change reaches the preset range, and finally the data is transmitted according to the fragment size and the transmission time interval when the delay change reaches the preset range; in this embodiment, during the data transmission process, according to the current Delay changes to automatically adjust the fragment size and transmission time interval of the fragments, thereby adjusting the number of fragments, reducing the transmission delay, and ensuring the lowest transmission delay for data of various sizes.
[0061] See image 3 , image 3 It is a schematic flowchart of the data transmission method provided by the second embodiment of the present invention. In the second embodiment, the delay detection time is equal to the initial transmission time interval of the fragment. For ease of description, the initial fragment size of the fragment is marked as S in the following embodiments, and the initial The transmission time interval is marked as T, and the method includes:
[0062] In step S301, the data is divided into at least one fragment and the data is transmitted, wherein the fragment has a fragment size S and a transmission time interval T.
[0063] In step S302, when the transmission time interval T arrives, the segment size is adjusted to twice the initial segment size, and data transmission is performed within the delay detection time according to the adjusted segment size.
[0064] In the embodiment of the present invention, the unit time T of the transmission time interval of the fragment is defined as the delay detection time, and the initial transmission time interval T of the fragment is equal to the delay detection time.
[0065] Preferably, for each segment in the initial adjustment, the segment size of the segment can be adjusted to twice the initial segment size S, that is, adjusted to 2S.
[0066] In step S303, the time delay change of the data transmission within the time delay detection time is detected.
[0067] That is, the delay change of data transmission in the transmission time interval T of the adjusted segment is detected.
[0068] Preferably, the result of the delay change may include that the delay value becomes smaller and the delay value is not within the preset range, the delay value becomes larger, and the delay value is within the preset range.
[0069] It is understandable that if the result of detecting the delay change is that the delay value becomes smaller and the delay value is not within the preset range or it is detected that the delay value becomes larger, it needs to The fragment size and transmission time interval of the fragments are adjusted, that is, step S304a or step S304b or step S304c is executed correspondingly; if the result of the delay change is within the preset range, step S306 is executed.
[0070] In this embodiment, for the initial adjustment of each fragment, the fragment size of the fragment is adjusted to twice the initial fragment size (that is, the adjustment is to increase the fragment size), based on this, The following is a detailed analysis of the three situations where the fragment size and transmission time interval of each fragment are dynamically adjusted according to the results of the delay change:
[0071] In step S304a, if it is detected that the delay value becomes smaller and the delay value is not within the preset range, and the last adjustment is to increase the size of the fragment, the fragment size is adjusted to the current fragment Two times the size, maintaining the transmission time interval of the fragments unchanged.
[0072] Suppose that the initial fragment size is S, and the fragment size becomes 2S after the initial adjustment. For this adjustment, the last adjustment is to increase the fragment size. If it is detected that the delay value becomes smaller and the time delay If the delay value is not within the preset range, the segment size is adjusted to 4S; since in this embodiment, the delay detection time is equal to the initial transmission time interval T of the segment, therefore, in this embodiment , Keep the transmission time interval T of the fragment unchanged.
[0073] In step S304b, if it is detected that the delay value is reduced and the delay value is not within the preset range, and the last adjustment is to reduce the fragment size, the fragment size is adjusted to the current fragment Half of the size, maintaining the transmission time interval of the fragments unchanged.
[0074] Suppose that for the last adjustment, the size of the fragment was reduced (for example, from S to S/2). If it is detected that the delay value is reduced and the delay value is not within the preset range, then the fragment The size is adjusted to S/4; because in this embodiment, the delay detection time is equal to the initial transmission time interval T of the fragment, therefore, in this embodiment, the transmission time interval T of the fragment is maintained unchanged.
[0075] In step S304c, if it is detected that the delay value becomes larger, the segment size is adjusted to the segment size before the last adjustment, and the transmission time interval is adjusted to twice the transmission time interval before the last adjustment.
[0076] Assuming that the initial segment size is S, after the initial adjustment, the segment size becomes 2S. If the delay value is detected to increase, the segment size is adjusted to the segment size before the last adjustment, that is, the segment size Adjust to S; the initial transmission time interval is T, and the transmission time interval is adjusted to twice the transmission time interval before the last adjustment (ie, the initial transmission time interval T), that is, the transmission time interval is adjusted to 2T.
[0077] It is understandable that from step S304a to step S304c, different adjustment rules are used to dynamically adjust the fragment size and transmission time interval of each fragment according to the results of different delay changes. The purpose is to continuously adjust the number of data fragments during data transmission to reduce time delay.
[0078] In step S305, the data is continuously transmitted according to the adjusted fragment size and the adjusted transmission time interval, and the step of detecting the delay change of the data transmission within the delay detection time is repeated.
[0079] That is, after the data is transmitted according to the adjusted fragment size and the adjusted transmission time interval, it is necessary to return to step S303 to detect the time delay of the data transmission.
[0080] Preferably, when the delay value becomes larger, the fragment size is adjusted to the fragment size before the last adjustment, and the transmission time interval is adjusted to twice the transmission time interval before the last adjustment (ie, step S304c) After the step of transmitting the data according to the adjusted fragment size and the adjusted transmission time interval, it may further include:
[0081] If the last adjustment was to reduce the fragment size, the fragment size will be adjusted to half of the current fragment size, the transmission time interval will be adjusted to the delay detection time, and the adjustment will be made according to the adjusted fragment size The data is transmitted in the subsequent transmission time interval.
[0082] Assuming that the initial segment size is S, the segment size becomes 2S after the initial adjustment. If the delay value is detected to be larger, the segment size is adjusted to the segment size S before the last adjustment, and the initial transmission If the time interval is T, the transmission time interval is adjusted to 2T; after data transmission is performed within the transmission time interval 2T according to the adjusted fragment size S, the fragment size was adjusted to be smaller (2S adjusted to S) Therefore, the size of the fragment is adjusted to S/2, and the transmission time interval is adjusted to T. After the adjustment is completed, step S305 is returned.
[0083] In some embodiments, after the step of transmitting the data according to the adjusted fragment size and the adjusted transmission time interval, the method may further include:
[0084] If the last adjustment was to increase the size of the fragment, the fragment size is adjusted to twice the current fragment size, the transmission time interval is adjusted to the delay detection time, and the adjusted fragment size and The adjusted transmission time interval transmits the data.
[0085] Suppose that the initial segment size is S, after the initial adjustment, the segment size becomes S/2. If the delay value is detected to be larger, the segment size is adjusted to the segment size S before the last adjustment. If the transmission time interval is T, the transmission time interval is adjusted to 2T; after the data transmission is performed within the transmission time interval 2T according to the adjusted fragment size S, since the last adjustment was to increase the fragment size (S/2 Adjust to S), therefore, adjust the fragment size of the fragment to 2S, and adjust the transmission time interval to T. After adjustment, return to step S305.
[0086] In step S306, if it is detected that the delay value is within the preset range, the data is transmitted according to the segment size and the transmission time interval when the delay change reaches the preset range.
[0087] In order to better understand the technical solution of the present invention, please refer to Figure 4 , Figure 4 This is a schematic flowchart of a specific application embodiment of the data transmission method according to an embodiment of the present invention; wherein the initial fragment size of the fragment is marked as S, and the initial transmission time interval of the fragment is equal to the delay detection Time, marked as T, the following analysis and description of this specific application:
[0088] First, divide the data into at least one fragment and perform data transmission, where the fragment has a fragment size S and a transmission time interval T; after T time, the fragments are initially adjusted, and the fragments of the fragments The size S is adjusted to twice the initial fragment size (that is, the adjustment is to increase the fragment size), that is, the fragment size is adjusted to 2S, the transmission time interval is kept as T, and data is performed within T according to the fragment size 2S Transmission; after T time, detect the delay change of data transmission within the delay detection time:
[0089] In one situation, if it is detected that the delay value is reduced and the delay value is not within the preset range, and the last adjustment is to increase the size of the fragment (from S to 2S), then the division Adjust the slice size to 4S, keep the transmission time interval to T, and perform data transmission within T according to the slice size 4S;
[0090] In a branch of this situation, after T time, the delay change of the data transmission within the delay detection time is detected again, if it is detected that the delay value becomes smaller and the delay value is not within the preset range , And the last adjustment is to increase the size of the fragment (from 2S to 4S), then adjust the fragment size to 8S, keep the transmission time interval to T, and perform data transmission within T according to the fragment size 8S, and repeat The step of detecting the delay change of the data transmission within the delay detection time is to continuously adjust the fragments until the delay change reaches a preset range, according to when the delay change reaches the preset range The data is transmitted with the fragment size and transmission time interval of.
[0091] In another branch of this situation, after T time, the delay change of the data transmission within the delay detection time is detected again, and if the delay value is detected to be larger, the fragment size is adjusted to be before the last adjustment The size of the fragment, that is, the fragment size is adjusted to 2S, the transmission time interval is adjusted to twice the transmission time interval before the last adjustment, the transmission time interval is adjusted to 2T, and the data transmission is performed within 2T according to the fragment size 2S ; In this case, after 2T time, since the last adjustment was to reduce the size of the fragment (from 4S to 2S), the fragment size is adjusted to half of the current fragment size, that is, the fragment size is adjusted to S: Adjust the transmission time interval to T, and perform data transmission within T according to the fragment size S, repeat the step of detecting the delay change of the data transmission within the delay detection time, that is, continue to adjust the fragments until When the delay change reaches a preset range, the data is transmitted according to the fragment size and the transmission time interval when the delay change reaches the preset range.
[0092] In another situation, if it is detected that the delay value becomes larger, the fragment size is adjusted to the fragment size before the last adjustment, that is, the fragment size is adjusted to S, and the transmission time interval is adjusted to the previous adjustment. The transmission time interval is twice the transmission time interval, that is, the transmission time interval is adjusted to 2T, and the data transmission is performed within 2T according to the fragment size S; in this case, after 2T time, because the last adjustment is to reduce the fragment size (by 2S is adjusted to S), the segment size is adjusted to half of the current segment size, that is, the segment size is adjusted to S/2, the transmission time interval is adjusted to T, and the segment size is S/2 within T data transmission.
[0093] In a branch of this situation, after T time, the delay change of the data transmission within the delay detection time is detected again, if it is detected that the delay value becomes smaller and the delay value is not within the preset range , And the last adjustment is to reduce the size of the fragment (adjusted from S to S/2), then the fragment size is adjusted to 4/S, the transmission time interval remains as T, and the fragment size S/4 is within T Perform data transmission, repeat the step of detecting the delay change of data transmission within the delay detection time, that is, continue to adjust the fragmentation until the delay change reaches a preset range, and the delay change reaches The data is transmitted by the fragment size and the transmission time interval in the preset range.
[0094] In another branch of this situation, after T time, the delay change of the data transmission within the delay detection time is detected again, and if the delay value is detected to be larger, the fragment size is adjusted to be before the last adjustment The size of the fragment, that is, the fragment size is adjusted to S, the transmission time interval is adjusted to twice the transmission time interval before the last adjustment, the transmission time interval is adjusted to 4T, and the data transmission is performed within 4T according to the fragment size S ; In this case, after 2T time, since the last adjustment was to increase the size of the fragment (adjusted from S/2 to S), the fragment size will be adjusted to twice the current fragment size, which means that The size is adjusted to 2S, the transmission time interval is adjusted to T, and the data transmission is performed within T according to the fragment size 2S, and the step of detecting the delay change of the data transmission within the delay detection time is repeated, that is, continuous adjustment Fragmentation until the delay change reaches a preset range, and the data is transmitted according to the fragment size and the transmission time interval when the delay change reaches the preset range.
[0095] If it is assumed that the fragment size when the delay variation reaches the preset range is m*S, and the transmission time interval is n*T, then the data is divided according to the fragment size m*S and the transmission time interval is n*T To transfer.
[0096] It is also easy to think of, such as Figure 4 In the data transmission method shown, only a method of proportionally increasing or decreasing the size of the fragment based on the initial fragment size S is used for analysis, which does not constitute a limitation of the present invention.
[0097] It can be seen from the foregoing that in this embodiment, the data is fragmented in this embodiment, and the fragment size and transmission time interval of the fragments are initially adjusted, and the delay change of the data transmission within the time delay detection time is detected; Thereafter, according to the result of the delay change, the fragment size and transmission time interval of each fragment are dynamically adjusted according to the preset adjustment rules, and the adjusted fragment size and transmission time interval are adjusted according to the adjusted fragment size and the adjusted transmission time interval. The data is transmitted so that the delay change reaches a preset range, and finally the data is transmitted according to the fragment size and the transmission time interval when the delay change reaches the preset range; in this embodiment, during the data transmission process , According to the current delay change to automatically adjust the fragment size and transmission time interval of the fragments, thereby adjusting the number of fragments, reducing the transmission delay, and ensuring the lowest transmission delay for data of various sizes.
[0098] See Figure 5 , Figure 5 It is a schematic flowchart of the data transmission method provided by the third embodiment of the present invention. Different from image 3 In the data transmission method shown, during the initial adjustment of the fragments, the fragment size S of the fragment is adjusted to half of the initial fragment size (that is, the adjustment is to reduce the fragment size). In the third embodiment, the delay detection time is equal to the initial transmission time interval of the fragment. For ease of description, the initial fragment size of the fragment is marked as S in the following embodiment, and the initial transmission time The interval is marked as T, and the method includes:
[0099] In step S401, the data is divided into at least one fragment and data transmission is performed, wherein the fragment has a fragment size S and a transmission time interval T.
[0100] In step S402, when the transmission time interval T arrives, the fragment size is adjusted to half of the initial fragment size, and data transmission is performed within the delay detection time according to the adjusted fragment size.
[0101] In the embodiment of the present invention, the unit time T of the transmission time interval of the fragment is defined as the delay detection time, and the initial transmission time interval T of the fragment is equal to the delay detection time.
[0102] Preferably, for each slice in the initial adjustment, the slice size of the slice can be adjusted to half of the initial slice size S, that is, adjusted to S/2.
[0103] In step S403, the time delay change of the data transmission within the time delay detection time is detected.
[0104] That is, the delay change of data transmission in the transmission time interval T of the adjusted segment is detected.
[0105] Preferably, the result of the delay change may include that the delay value becomes smaller and the delay value is not within the preset range, the delay value becomes larger, and the delay value is within the preset range.
[0106] It is understandable that if the result of detecting the delay change is that the delay value becomes smaller and the delay value is not within the preset range or it is detected that the delay value becomes larger, it needs to The fragment size and transmission time interval of the fragments are adjusted, that is, step S404a or step S404b or step S404c is executed correspondingly; if the result of the delay change is within the preset range, step S406 is executed.
[0107] In this embodiment, for the initial adjustment of each fragment, the fragment size of the fragment is adjusted to half of the initial fragment size (that is, the adjustment is to reduce the fragment size). Based on this, the following In view of the three situations where the fragment size and transmission time interval of each fragment are dynamically adjusted according to the results of delay changes, a detailed analysis is carried out:
[0108] In step S404a, if it is detected that the delay value becomes smaller and the delay value is not within the preset range, and the last adjustment is to increase the size of the fragment, the fragment size is adjusted to the current fragment Two times the size, maintaining the transmission time interval of the fragments unchanged.
[0109] Suppose that the last adjustment was to increase the size of the fragment (for example, adjust from S to 2S), if it is detected that the delay value becomes smaller and the delay value is not within the preset range, then the fragment size is adjusted It is 4S; because in this embodiment, the delay detection time is equal to the initial transmission time interval T of the fragment, therefore, in this embodiment, the transmission time interval T of the fragment is maintained unchanged.
[0110] In step S404b, if it is detected that the delay value is reduced and the delay value is not within the preset range, and the last adjustment is to reduce the fragment size, the fragment size is adjusted to the current fragment Half of the size, maintaining the transmission time interval of the fragments unchanged.
[0111] Suppose that the initial fragment size is S, and the fragment size becomes S/2 after the initial adjustment. For this adjustment, the last adjustment is to reduce the fragment size. If it is detected that the delay value becomes smaller and all If the delay value is not within the preset range, the segment size is adjusted to S/4; since in this embodiment, the delay detection time is equal to the initial transmission time interval T of the segment, therefore, In this embodiment, the transmission time interval T of the fragments is maintained unchanged.
[0112] In step S404c, if it is detected that the delay value becomes larger, the segment size is adjusted to the segment size before the last adjustment, and the transmission time interval is adjusted to twice the transmission time interval before the last adjustment.
[0113] Assuming that the initial segment size is S, after the initial adjustment, the segment size becomes 2S. If the delay value is detected to increase, the segment size is adjusted to the segment size before the last adjustment, that is, the segment size Adjust to S; the initial transmission time interval is T, and the transmission time interval is adjusted to twice the transmission time interval before the last adjustment (ie, the initial transmission time interval T), that is, the transmission time interval is adjusted to 2T.
[0114] It is understandable that from step S404a to step S404c, different adjustment rules are used to dynamically adjust the fragment size and transmission time interval of each fragment according to the results of different delay changes. The purpose is to continuously adjust the number of data fragments during data transmission to reduce time delay.
[0115] In step S405, the data is continuously transmitted according to the adjusted fragment size and the adjusted transmission time interval, and the step of detecting the delay change of the data transmission within the delay detection time is repeated.
[0116] That is, after the data is transmitted according to the adjusted fragment size and the adjusted transmission time interval, it is necessary to return to step S403 to detect the time delay of the data transmission.
[0117] Preferably, when the delay value becomes larger, the fragment size is adjusted to the fragment size before the last adjustment, and the transmission time interval is adjusted to twice the transmission time interval before the last adjustment (i.e., step S404c) After the step of transmitting the data according to the adjusted fragment size and the adjusted transmission time interval, it may further include:
[0118] If the last adjustment was to reduce the fragment size, the fragment size will be adjusted to half of the current fragment size, the transmission time interval will be adjusted to the delay detection time, and the adjustment will be made according to the adjusted fragment size The data is transmitted in the subsequent transmission time interval.
[0119] Assuming that the initial segment size is S, the segment size becomes 2S after the initial adjustment. If the delay value is detected to be larger, the segment size is adjusted to the segment size S before the last adjustment, and the initial transmission If the time interval is T, the transmission time interval is adjusted to 2T; after data transmission is performed within the transmission time interval 2T according to the adjusted fragment size S, the fragment size was adjusted to be smaller (2S adjusted to S) Therefore, the size of the fragment is adjusted to S/2, and the transmission time interval is adjusted to T. After the adjustment is completed, return to step S405.
[0120] In some embodiments, after the step of transmitting the data according to the adjusted fragment size and the adjusted transmission time interval, the method may further include:
[0121] If the last adjustment was to increase the size of the fragment, the fragment size is adjusted to twice the current fragment size, the transmission time interval is adjusted to the delay detection time, and the adjusted fragment size and The adjusted transmission time interval transmits the data.
[0122] Suppose that the initial segment size is S, after the initial adjustment, the segment size becomes S/2. If the delay value is detected to be larger, the segment size is adjusted to the segment size S before the last adjustment. If the transmission time interval is T, the transmission time interval is adjusted to 2T; after the data transmission is performed within the transmission time interval 2T according to the adjusted fragment size S, since the last adjustment was to increase the fragment size (S/2 Adjust to S), therefore, adjust the fragment size of the fragment to 2S, and adjust the transmission time interval to T. After adjustment, return to step S405.
[0123] In step S406, if it is detected that the delay value is within the preset range, the data is transmitted according to the segment size and the transmission time interval when the delay change reaches the preset range.
[0124] In order to better understand the technical solution of the present invention, please refer to Image 6 , Image 6 This is a schematic flowchart of a specific application embodiment of the data transmission method according to an embodiment of the present invention; wherein the initial fragment size of the fragment is marked as S, and the initial transmission time interval of the fragment is equal to the delay detection Time, marked as T, the following analysis and description of this specific application:
[0125] First, divide the data into at least one fragment and perform data transmission, where the fragment has a fragment size S and a transmission time interval T; after T time, the fragments are initially adjusted, and the fragments of the fragments The size S is adjusted to half of the initial fragment size (that is, the adjustment is to reduce the fragment size), that is, the fragment size is adjusted to S/2, the transmission time interval is maintained as T, and the fragment size S/2 is in T Data transmission within the time; after T time, detect the delay change of the data transmission within the time delay detection time:
[0126] In one situation, if it is detected that the delay value becomes smaller and the delay value is not within the preset range, and the last adjustment is to reduce the fragment size (adjusted from S to S/2), then Adjust the fragment size to S/4, keep the transmission time interval to T, and perform data transmission within T according to the fragment size S/4;
[0127] In a branch of this situation, after T time, the delay change of the data transmission within the delay detection time is detected again, if it is detected that the delay value becomes smaller and the delay value is not within the preset range , And the last time adjustment is to reduce the size of the fragment (from S/2 to S/4), then the fragment size is adjusted to S/8, the transmission time interval remains T, and the fragment size S/8 Data transmission is performed within T, and the step of detecting the delay change of data transmission within the delay detection time is repeated, that is, continuously adjusting the fragments until the delay change reaches a preset range, according to the time delay The data is transmitted by changing the fragment size and the transmission time interval when the change reaches the preset range.
[0128] In another branch of this situation, after T time, the delay change of the data transmission within the delay detection time is detected again, and if the delay value is detected to be larger, the fragment size is adjusted to be before the last adjustment The size of the fragment, that is, the fragment size is adjusted to S/2, the transmission time interval is adjusted to twice the transmission time interval before the last adjustment, that is, the transmission time interval is adjusted to 2T, and the fragment size is S/2 at 2T In this case, after 2T time, since the last adjustment was to increase the size of the fragment (from S/4 to S/2), the fragment size is adjusted to the current fragment size Twice, that is, adjust the fragment size to S, adjust the transmission time interval to T, and perform data transmission within T according to the fragment size S, and repeat the detection of the delay change of the data transmission within the delay detection time The step of continuously adjusting fragmentation until the delay change reaches a preset range, and transmitting the data according to the fragment size and transmission time interval when the delay change reaches the preset range.
[0129] In another situation, if it is detected that the delay value becomes larger, the fragment size is adjusted to the fragment size before the last adjustment, that is, the fragment size is adjusted to S, and the transmission time interval is adjusted to the previous adjustment. The transmission time interval is twice the transmission time interval, that is, the transmission time interval is adjusted to 2T, and the data transmission is carried out within 2T according to the fragment size S; in this case, after 2T time, because the last adjustment is to increase the fragment size (by S/2 is adjusted to S), then the fragment size is adjusted to twice the current fragment size, that is, the fragment size is adjusted to 2S, the transmission time interval is adjusted to T, and data is performed within T according to the fragment size 2S transmission.
[0130] In a branch of this situation, after T time, the delay change of the data transmission within the delay detection time is detected again, if it is detected that the delay value becomes smaller and the delay value is not within the preset range , And the last time adjustment is to increase the size of the fragment (adjusted from S to S2), then the fragment size is adjusted to 4S, the transmission time interval remains as T, and the data transmission is performed within T according to the fragment size 4S, repeating The step of detecting the delay change of the data transmission within the delay detection time is to continuously adjust the fragments until the delay change reaches a preset range, according to when the delay change reaches the preset range The data is transmitted with the fragment size and transmission time interval of.
[0131] In another branch of this situation, after T time, the delay change of the data transmission within the delay detection time is detected again, and if the delay value is detected to be larger, the fragment size is adjusted to be before the last adjustment The size of the fragment, that is, the fragment size is adjusted to S, the transmission time interval is adjusted to twice the transmission time interval before the last adjustment, the transmission time interval is adjusted to 4T, and the data transmission is performed within 4T according to the fragment size S ; In this case, after 2T time, since the last adjustment was to reduce the size of the fragment (from 2S to S), the fragment size is adjusted to half of the current fragment size, that is, the fragment size is adjusted to S/2, adjust the transmission time interval to T, perform data transmission within T according to the fragment size S/2, repeat the step of detecting the delay change of the data transmission within the delay detection time, that is, continue Adjust fragmentation until the delay change reaches a preset range, and transmit the data according to the fragment size and transmission time interval when the delay change reaches the preset range.
[0132] If it is assumed that the fragment size when the delay variation reaches the preset range is m*S, and the transmission time interval is n*T, then the data is divided according to the fragment size m*S and the transmission time interval is n*T To transfer.
[0133] It is also easy to think of, such as Image 6 In the data transmission method shown, only a method of proportionally increasing or decreasing the size of the fragment based on the initial fragment size S is used for analysis, which does not constitute a limitation of the present invention.
[0134] It can be seen from the foregoing that in this embodiment, the data is fragmented in this embodiment, and the fragment size and transmission time interval of the fragments are initially adjusted, and the delay change of the data transmission within the time delay detection time is detected; Thereafter, according to the result of the delay change, the fragment size and transmission time interval of each fragment are dynamically adjusted according to the preset adjustment rules, and the adjusted fragment size and transmission time interval are adjusted according to the adjusted fragment size and the adjusted transmission time interval. The data is transmitted so that the delay change reaches a preset range, and finally the data is transmitted according to the fragment size and the transmission time interval when the delay change reaches the preset range; in this embodiment, during the data transmission process , According to the current delay change to automatically adjust the fragment size and transmission time interval of the fragments, thereby adjusting the number of fragments, reducing the transmission delay, and ensuring the lowest transmission delay for data of various sizes.
[0135] To facilitate better implementation of the data transmission method provided by the embodiment of the present invention, the embodiment of the present invention also provides an apparatus based on the above data transmission method. The meanings of the nouns are the same as in the method for processing driving data, and the specific implementation details can refer to the description in the method embodiment. See Figure 7 , Figure 7 It is a schematic structural diagram of a data transmission device provided by an embodiment of the present invention, wherein the data transmission device includes a fragment acquisition module 71, an initial adjustment module 72, a delay detection module 73, a fragment adjustment module 74, and a data transmission module 75.
[0136] The fragment acquisition module 71 divides the data into at least one fragment and performs data transmission, wherein the fragment has a fragment size and a transmission time interval; the initial adjustment module 72 arrives at the transmission time interval When the time, the size of the fragment is adjusted, and data transmission is performed within a time delay detection time according to the adjusted fragment size; the time delay detection module 73 detects the time of data transmission within the time delay detection time 延变.
[0137] It is understandable that by using the existing data fragmentation algorithm, the data can be divided into at least two fixed-size fragments. Wherein, the segment has an initial segment size and transmission time interval, and can be stored in the server in a preset manner. In this embodiment, after data is fragmented, the data is transmitted within the initial transmission time interval according to the initial fragment size of the fragment.
[0138] The initial adjustment module 72 makes an initial adjustment to the fragment size of the fragment when the transmission time interval arrives. Preferably, the initial fragment size of the fragment may be used as a base to adjust the fragment size according to a preset ratio. The fragment size of the fragment.
[0139] In the embodiment of the present invention, the transmission time interval of the fragment may include the delay detection time and the transmission time of the fragment. Preferably, the unit time T of the transmission time interval of the fragment may be defined as the delay detection time , The delay detection time is equal to the initial transmission time interval of the fragment.
[0140] The fragment adjustment module 74 dynamically adjusts the fragment size and transmission time interval of each fragment according to the preset adjustment rule according to the result of the delay change; the data transmission module 75 dynamically adjusts the fragment size and transmission time interval of each fragment according to the adjusted fragment The slice size and the adjusted transmission time interval continue to transmit the data, and trigger the delay detection module to repeat the step of detecting the delay change of the data transmission within the delay detection time until the delay The change reaches the preset range; the data is transmitted according to the fragment size and the transmission time interval when the delay change reaches the preset range.
[0141] It is understandable that the fragment adjustment module 74 dynamically adjusts the fragment size and transmission time interval of each fragment according to preset adjustment rules, in order to continuously adjust the data fragmentation during data transmission. Number to reduce the delay. Wherein, the preset range may be stored in the data transmission device in a preset manner.
[0142] If the delay detection module 73 detects that the delay change reaches the preset range, the data transmission module 75 follows the fragment size and transmission time interval when the delay change reaches the preset range The data is transmitted; if the delay detection module 73 detects that the delay change does not reach the preset range, then the fragment adjustment module 74, in accordance with the preset adjustment rule, performs The segment size and transmission time interval are dynamically adjusted until the delay change reaches the preset range.
[0143] It can be seen from the above that in this embodiment, the data is fragmented, the fragment size and transmission time interval of the fragments are initially adjusted, and the delay change of the data transmission within the delay detection time is detected; then, according to As a result of the delay change, the fragment size and transmission time interval of each fragment are dynamically adjusted according to the preset adjustment rules, and the data is transmitted according to the adjusted fragment size and the adjusted transmission time interval , So that the delay change reaches the preset range, and finally the data is transmitted according to the fragment size and the transmission time interval when the delay change reaches the preset range; in this embodiment, during the data transmission process, according to the current Delay changes to automatically adjust the fragment size and transmission time interval of the fragments, thereby adjusting the number of fragments, reducing the transmission delay, and ensuring the lowest transmission delay for data of various sizes.
[0144] Preferably, you can refer to it together Figure 8 , Figure 8 This is another schematic structural diagram of a data transmission device provided by an embodiment of the present invention. The data transmission device includes a fragment acquisition module 81, an initial adjustment module 82, a delay detection module 83, a fragment adjustment module 84, and a data transmission module 85. In this embodiment, the delay detection time is equal to the initial transmission time interval of the fragment, the initial fragment size of the fragment is marked as S, and the initial transmission time interval is marked as T.
[0145] The fragment acquisition module 81 divides the data into at least one fragment and performs data transmission, wherein the fragment has a fragment size and a transmission time interval;
[0146] Preferably, the initial adjustment module 82, when the transmission time interval T arrives, uses the initial fragment size of the fragment as a base, adjusts the fragment size of the fragment according to a preset ratio, and adjusts the fragment size according to the adjustment The subsequent fragment size performs data transmission within a delay detection time.
[0147] Further preferably, the initial adjustment module 82 adjusts the fragment size to twice the initial fragment size when the transmission time interval T arrives, and performs a delay detection according to the adjusted fragment size Data transfer within time.
[0148] For example, for each segment in the initial adjustment, the segment size of the segment can be adjusted to twice the initial segment size S, that is, adjusted to 2S.
[0149] The delay detection module 83 detects the delay change of data transmission within the delay detection time.
[0150] Preferably, the result of the delay change may include that the delay value becomes smaller and the delay value is not within the preset range, the delay value becomes larger, and the delay value is within the preset range;
[0151] It is understandable that if the result of detecting the delay change is that the delay value becomes smaller and the delay value is not within the preset range or it is detected that the delay value becomes larger, then the fragment The adjustment module 84 dynamically adjusts the fragment size and transmission time interval of each fragment according to a preset adjustment rule according to the result of the delay change; if the result of the delay change is within the preset range , The data transmission module 85 transmits the data according to the fragment size and the transmission time interval when the delay change reaches the preset range.
[0152] In this embodiment, for the initial adjustment of each fragment, the fragment size of the fragment is adjusted to twice the initial fragment size (that is, the adjustment is to increase the fragment size), based on this, The following is a detailed analysis of the three situations in which the fragment adjustment module 84 dynamically adjusts the fragment size and transmission time interval of each fragment according to the result of the delay change:
[0153] The segment adjustment module 84 includes a first adjustment unit 841, a second adjustment unit 842, and a third adjustment unit 843. If the first adjustment unit 841 detects that the delay value becomes smaller and the delay value If it is not within the preset range, and the last adjustment is to increase the size of the fragment, the fragment size is adjusted to twice the current fragment size, and the transmission time interval of the fragment is maintained unchanged.
[0154] Suppose that the initial fragment size is S, and the fragment size becomes 2S after the initial adjustment. For this adjustment, the last adjustment is to increase the fragment size. If it is detected that the delay value becomes smaller and the time delay If the delay value is not within the preset range, the segment size is adjusted to 4S; since in this embodiment, the delay detection time is equal to the initial transmission time interval T of the segment, therefore, in this embodiment , Keep the transmission time interval T of the fragment unchanged.
[0155] The second adjustment unit 842, if it is detected that the delay value is reduced and the delay value is not within the preset range, and the last adjustment is to reduce the size of the fragment, the fragment size is adjusted to the current Half of the fragment size, maintaining the transmission time interval of fragments unchanged.
[0156] Suppose that for the last adjustment, the size of the fragment was reduced (for example, from S to S/2). If it is detected that the delay value is reduced and the delay value is not within the preset range, then the fragment The size is adjusted to S/4; because in this embodiment, the delay detection time is equal to the initial transmission time interval T of the fragment, therefore, in this embodiment, the transmission time interval T of the fragment is maintained unchanged.
[0157] The third adjustment unit 843, if detecting that the delay value becomes larger, adjusts the fragment size to the fragment size before the last adjustment, and adjusts the transmission time interval to twice the transmission time interval before the last adjustment .
[0158] Assuming that the initial segment size is S, after the initial adjustment, the segment size becomes 2S. If the delay value is detected to increase, the segment size is adjusted to the segment size before the last adjustment, that is, the segment size Adjust to S; the initial transmission time interval is T, and the transmission time interval is adjusted to twice the transmission time interval before the last adjustment (ie, the initial transmission time interval T), that is, the transmission time interval is adjusted to 2T.
[0159] Furthermore, the segment adjustment module 84 may further include a fourth adjustment unit 844 and a fifth adjustment unit 845; wherein the fourth adjustment unit 844 is adjusted by the third adjustment unit 843 and the data transmission is completed. After the module transmits the data according to the adjusted fragment size and the adjusted transmission time interval, if the last adjustment was to reduce the fragment size, the fragment size will be adjusted to half of the current fragment size, The transmission time interval is adjusted to the delay detection time, and the data transmission module is triggered to transmit the data according to the adjusted fragment size and the adjusted transmission time interval.
[0160] Assuming that the initial segment size is S, the segment size becomes 2S after the initial adjustment. If the delay value is detected to be larger, the segment size is adjusted to the segment size S before the last adjustment, and the initial transmission If the time interval is T, the transmission time interval is adjusted to 2T; after data transmission is performed within the transmission time interval 2T according to the adjusted fragment size S, the fragment size was adjusted to be smaller (2S adjusted to S) Therefore, the segment size of the segment is adjusted to S/2, and the transmission time interval is adjusted to T. After the adjustment, the data transmission module 85 is triggered to perform the operation.
[0161] The fifth adjustment unit 845, after the adjustment by the third adjustment unit 843 is completed and the data transmission module transmits the data according to the adjusted fragment size and the adjusted transmission time interval, if the last adjustment is performed In order to increase the size of the fragment, the fragment size is adjusted to twice the current fragment size, the transmission time interval is adjusted to the delay detection time, and the data transmission module is triggered to follow the adjusted fragment The size and adjusted transmission time interval transmit the data.
[0162] Suppose that the initial segment size is S, after the initial adjustment, the segment size becomes S/2. If the delay value is detected to be larger, the segment size is adjusted to the segment size S before the last adjustment. If the transmission time interval is T, the transmission time interval is adjusted to 2T; after the data transmission is performed within the transmission time interval 2T according to the adjusted fragment size S, since the last adjustment was to increase the fragment size (S/2 Adjust to S), therefore, adjust the fragment size of the fragment to 2S, and adjust the transmission time interval to T. After the adjustment, the data transmission module 85 is triggered to perform the operation.
[0163] The data transmission module 85 continues to transmit the data according to the adjusted fragment size and the adjusted transmission time interval, and triggers the delay detection module to repeat the detection during the delay detection time. The step of changing the delay until the delay change reaches a preset range; the data is transmitted according to the fragment size and the transmission time interval when the delay change reaches the preset range.
[0164] It can be seen from the foregoing that in this embodiment, the data is fragmented in this embodiment, and the fragment size and transmission time interval of the fragments are initially adjusted, and the delay change of the data transmission within the time delay detection time is detected; Thereafter, according to the result of the delay change, the fragment size and transmission time interval of each fragment are dynamically adjusted according to the preset adjustment rules, and the adjusted fragment size and transmission time interval are adjusted according to the adjusted fragment size and the adjusted transmission time interval. The data is transmitted so that the delay change reaches a preset range, and finally the data is transmitted according to the fragment size and the transmission time interval when the delay change reaches the preset range; in this embodiment, during the data transmission process , According to the current delay change to automatically adjust the fragment size and transmission time interval of the fragments, thereby adjusting the number of fragments, reducing the transmission delay, and ensuring the lowest transmission delay for data of various sizes.
[0165] Preferably, you can refer to it together Picture 9 , Picture 9 It is another schematic structural diagram of a data transmission device provided by an embodiment of the present invention. The data transmission device includes a fragment acquisition module 91, an initial adjustment module 92, a delay detection module 93, a fragment adjustment module 94, and a data transmission module 95. In this embodiment, the delay detection time is equal to the initial transmission time interval of the fragment, the initial fragment size of the fragment is marked as S, and the initial transmission time interval is marked as T.
[0166] The fragment acquisition module 91 divides the data into at least one fragment and performs data transmission, wherein the fragment has a fragment size and a transmission time interval;
[0167] Preferably, the initial adjustment module 92, when the transmission time interval T arrives, uses the initial fragment size of the fragment as a base, adjusts the fragment size of the fragment according to a preset ratio, and adjusts The subsequent fragment size performs data transmission within a delay detection time.
[0168] Further preferably, the initial adjustment module 92 adjusts the fragment size to half of the initial fragment size when the transmission time interval T arrives, and according to the adjusted fragment size within a delay detection time Perform data transfer.
[0169] For example, in the initial adjustment, for each segment, the segment size of the segment can be adjusted to half of the initial segment size S, that is, adjusted to S/2.
[0170] The delay detection module 93 detects the delay change of data transmission within the delay detection time.
[0171] Preferably, the result of the delay change may include that the delay value becomes smaller and the delay value is not within the preset range, the delay value becomes larger, and the delay value is within the preset range;
[0172] It is understandable that if the result of detecting the delay change is that the delay value becomes smaller and the delay value is not within the preset range or it is detected that the delay value becomes larger, then the fragment The adjustment module 94 dynamically adjusts the segment size and transmission time interval of each segment according to the preset adjustment rule according to the result of the delay change; if the result of the delay change is within the preset range , The data transmission module 95 transmits the data according to the fragment size and the transmission time interval when the delay change reaches the preset range.
[0173] In this embodiment, for the initial adjustment of each fragment, the fragment size of the fragment is adjusted to half of the initial fragment size (that is, the adjustment is to reduce the fragment size). Based on this, the following In view of the three situations in which the segment adjustment module 94 dynamically adjusts the segment size and transmission time interval of each segment according to the result of the delay change, detailed analysis is performed:
[0174] The fragment adjustment module 94 includes a sixth adjustment unit 941, a seventh adjustment unit 942, and an eighth adjustment unit 943. If the sixth adjustment unit 941 detects that the delay value becomes smaller and the delay value If it is not within the preset range, and the last adjustment was to increase the size of the fragment, the fragment size is adjusted to twice the current fragment size, and the transmission time interval of the fragment is maintained unchanged.
[0175] Suppose that the last adjustment was to increase the size of the fragment (for example, adjust from S to 2S), if it is detected that the delay value becomes smaller and the delay value is not within the preset range, then the fragment size is adjusted It is 4S; because in this embodiment, the delay detection time is equal to the initial transmission time interval T of the fragment, therefore, in this embodiment, the transmission time interval T of the fragment is maintained unchanged.
[0176] The seventh adjustment unit 942, if it is detected that the delay value is reduced and the delay value is not within the preset range, and the last adjustment is to reduce the size of the fragment, the fragment size is adjusted to the current Half of the fragment size, maintaining the transmission time interval of fragments unchanged.
[0177] Suppose that the initial fragment size is S, and the fragment size becomes S/2 after the initial adjustment. For this adjustment, the last adjustment is to reduce the fragment size. If it is detected that the delay value becomes smaller and all If the delay value is not within the preset range, the segment size is adjusted to S/4; since in this embodiment, the delay detection time is equal to the initial transmission time interval T of the segment, therefore, In this embodiment, the transmission time interval T of the fragments is maintained unchanged.
[0178] The eighth adjustment unit 943, if detecting that the delay value becomes larger, adjusts the fragment size to the fragment size before the last adjustment, and adjusts the transmission time interval to twice the transmission time interval before the last adjustment .
[0179] Assuming that the initial segment size is S, after the initial adjustment, the segment size becomes 2S. If the delay value is detected to increase, the segment size is adjusted to the segment size before the last adjustment, that is, the segment size Adjust to S; the initial transmission time interval is T, and the transmission time interval is adjusted to twice the transmission time interval before the last adjustment (ie, the initial transmission time interval T), that is, the transmission time interval is adjusted to 2T.
[0180] Furthermore, the segment adjustment module 94 may further include a ninth adjustment unit 944 and a tenth adjustment unit 945; wherein the ninth adjustment unit 944 is adjusted by the eighth adjustment unit 943 and the data transmission After the module transmits the data according to the adjusted fragment size and the adjusted transmission time interval, if the last adjustment was to reduce the fragment size, the fragment size will be adjusted to half of the current fragment size, The transmission time interval is adjusted to the delay detection time, and the data transmission module is triggered to transmit the data according to the adjusted fragment size and the adjusted transmission time interval.
[0181] Assuming that the initial segment size is S, the segment size becomes 2S after the initial adjustment. If the delay value is detected to be larger, the segment size is adjusted to the segment size S before the last adjustment, and the initial transmission If the time interval is T, the transmission time interval is adjusted to 2T; after data transmission is performed within the transmission time interval 2T according to the adjusted fragment size S, the fragment size was adjusted to be smaller (2S adjusted to S) Therefore, the segment size of the segment is adjusted to S/2, and the transmission time interval is adjusted to T. After the adjustment, the data transmission module 95 is triggered to perform the operation.
[0182] The tenth adjustment unit 945, after the adjustment by the eighth adjustment unit 943 is completed and the data transmission module transmits the data according to the adjusted fragment size and the adjusted transmission time interval, if the adjustment is performed last time In order to increase the size of the fragment, the fragment size is adjusted to twice the current fragment size, the transmission time interval is adjusted to the delay detection time, and the data transmission module is triggered to follow the adjusted fragment The size and adjusted transmission time interval transmit the data.
[0183] Suppose that the initial segment size is S, after the initial adjustment, the segment size becomes S/2. If the delay value is detected to be larger, the segment size is adjusted to the segment size S before the last adjustment. If the transmission time interval is T, the transmission time interval is adjusted to 2T; after the data transmission is performed within the transmission time interval 2T according to the adjusted fragment size S, since the last adjustment was to increase the fragment size (S/2 Adjust to S), therefore, adjust the fragment size of the fragment to 2S, and adjust the transmission time interval to T. After the adjustment, the data transmission module 95 is triggered to perform the operation.
[0184] The data transmission module 95 continues to transmit the data according to the adjusted fragment size and the adjusted transmission time interval, and triggers the delay detection module to repeat the detection during the delay detection time. The step of changing the delay until the delay change reaches a preset range; the data is transmitted according to the fragment size and the transmission time interval when the delay change reaches the preset range.
[0185] It can be seen from the foregoing that in this embodiment, the data is fragmented in this embodiment, and the fragment size and transmission time interval of the fragments are initially adjusted, and the delay change of the data transmission within the time delay detection time is detected; Thereafter, according to the result of the delay change, the fragment size and transmission time interval of each fragment are dynamically adjusted according to the preset adjustment rules, and the adjusted fragment size and transmission time interval are adjusted according to the adjusted fragment size and the adjusted transmission time interval. The data is transmitted so that the delay change reaches a preset range, and finally the data is transmitted according to the fragment size and the transmission time interval when the delay change reaches the preset range; in this embodiment, during the data transmission process , According to the current delay change to automatically adjust the fragment size and transmission time interval of the fragments, thereby adjusting the number of fragments, reducing the transmission delay, and ensuring the lowest transmission delay for data of various sizes.
[0186] In the foregoing embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in an embodiment, please refer to the detailed description of the data transmission method above, which will not be repeated here.
[0187] The data transmission device provided by the embodiment of the present invention is, for example, a computer, a tablet computer, a mobile phone with touch function, etc. The data transmission device belongs to the same concept as the data transmission method in the above embodiment. Any method provided in the embodiment of the data transmission method can be run on the transmission device. For the specific implementation process, please refer to the embodiment of the data transmission method for details, which will not be repeated here.
[0188] It should be noted that for the data transmission method of the present invention, ordinary testers in the art can understand that all or part of the process of implementing the data transmission method of the embodiment of the present invention can be completed by controlling the relevant hardware through a computer program. The computer program may be stored in a computer readable storage medium, such as stored in the memory of a terminal, and executed by at least one processor in the terminal. The execution process may include data transmission methods such as those described in the data transmission method. The flow of the embodiment. Wherein, the storage medium can be a magnetic disk, an optical disc, a read-only memory (ROM) or a random memory (RAM), etc.
[0189] For the data transmission device of the embodiment of the present invention, its various functional modules may be integrated in one processing chip, or each module may exist alone physically, or two or more modules may be integrated in one module. The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, etc. .
[0190] In summary, although the present invention has been disclosed as above in preferred embodiments, the above-mentioned preferred embodiments are not intended to limit the present invention, and ordinary testers in the field can make various changes without departing from the spirit and scope of the present invention. Such changes and modifications, therefore, the protection scope of the present invention is subject to the scope defined by the claims.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more PUM


Description & Claims & Application Information
We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more Similar technology patents
Edge cooperation caching method under hierarchical wireless network supporting D2D communication
InactiveCN110290510AReduce traffic transmissionReduce transmission delayNetwork traffic/resource managementShort range communication serviceTraffic volumeMobile wireless
Owner:TIANJIN UNIV
Wireless communications method and system, network device, and user equipment
ActiveUS20180184426A1Reduce transmission delayImprove user experienceTransmission path divisionSignal allocationMillisecondTransmission delay
Owner:HUAWEI TECH CO LTD
IPv6-based power line carrier communication network congestion control method
ActiveCN105897605AFew forwarding hopsReduce transmission delayData switching networksMessage passingPower grid
Owner:武汉盛帆电子股份有限公司
Network system and network communication method
ActiveCN106488504AReduce transmission delayImprove user experienceNetwork traffic/resource managementTransmissionApplication serverTransmission delay
Owner:HUAWEI TECH CO LTD
Data transmission system and method under mobile network environments
ActiveCN104967613AReduce transmission delaySimple Deployment FrameworkTransmissionClient-sideMobile Web
Owner:北京云端智度科技有限公司
Classification and recommendation of technical efficacy words
- Reduce transmission delay
Method and system for retransmission
InactiveUS20070008990A1Reduce transmission delayReduce latencyError prevention/detection by using return channelTime-division multiplexLink layerRadio communications
Owner:TELEFON AB LM ERICSSON (PUBL)
Delay-reduced stall avoidance mechanism for reordering a transport block
InactiveUS20060062223A1Reduce transmission delayAvoids stallError preventionNetwork traffic/resource managementReal-time computingTimer
Owner:NOKIA SOLUTIONS & NETWORKS OY
Polarization code coding method, decoding method, coding device and decoding device
InactiveCN107124188AShorten the timeReduce transmission delayError preventionError correction/detection using linear codesDecoding methodsComputer science
Owner:HUAWEI TECH CO LTD
Method and apparatus for implementing local exchange
ActiveCN101374355AReduce occupancyReduce transmission delayRadio/inductive link selection arrangementsSpeech soundData dictionary
Owner:HUAWEI TECH CO LTD