Data transmission control method and device, equipment, medium and product

By identifying the cache queue output situation in the data transmission channel, the data queue is timely switched to timely the problem of data queue occupation delay in the prior art, the data transmission efficiency is improved, and the smooth use of the data channel is ensured.

CN119094470APending Publication Date: 2024-12-06CORE YUNSHENG (HANGZHOU) ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411159932.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In the existing time division multiplexing technology, the inability to switch data queues in time leads to a long time occupancy of data channels, affecting the overall data transmission efficiency, especially when data packet information is lost, it is difficult to identify the switching delay caused by specific flag bits.

Method used

By identifying whether the current cache queue in the data transmission channel outputs all data to be transmitted, it is determined that the transmission is completed, and when other queues to be transmitted exist, the data queue occupies the data channel, avoiding the identification of specific flag bits of the data packet.

Benefits of technology

The switching logic of the data queue is optimized, which avoids the problem of data queue occupying data channels for a long time, improves the overall data transmission efficiency, and ensures the stability and timeliness of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094470A_ABST
    Figure CN119094470A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission control method and device, equipment, a medium and a product, and relates to the technical field of data communication, and the method comprises the steps: writing the current to-be-transmitted data of a current data queue into a current buffer queue, and determining whether the current buffer queue outputs all the current to-be-transmitted data; wherein the current data queue is a data queue currently occupying a data transmission channel, and the current cache queue is a cache queue corresponding to the current data queue in the data transmission channel; if all the current cache queues output the current to-be-transmitted data, determining whether other to-be-transmitted data exist in other data queues except the current data queue; and if other to-be-transmitted data exists in other data queues, setting the other data queues as data queues occupying the data transmission channel. According to the invention, the switching logic of the data queues occupying the data channel is optimized, the problem that a certain data queue occupies the data channel for a long time is avoided, and the overall data transmission efficiency is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data communication technology, and in particular to a data transmission control method, device, equipment, medium and product. Background Art

[0002] Time division multiplexing is a method of transmitting multiple data queues simultaneously on the same data channel. Its basic principle is to cut the time axis so that each data queue can exclusively use the data channel for data transmission within a certain period of time.

[0003] In the existing time division multiplexing technology, when any data queue occupies the data channel for data transmission, it is usually determined whether the data packet has been transmitted by identifying the specific flag bit of the data packet. Only when it is determined that the data packet has been transmitted, will other data queues be switched to occupy the data channel for data transmission.

[0004] However, in some special cases (such as missing data packet information, etc.), a specific flag bit may not be recognized, which may cause a data queue to occupy the data channel for a long time, greatly affecting the overall data transmission efficiency. Summary of the invention

[0005] The present invention provides a data transmission control method, device, equipment, medium and product to solve the problem in the prior art that data queues occupying data channels cannot be switched in time, thus affecting the overall data transmission efficiency.

[0006] According to one aspect of the present invention, a method for controlling data transmission is provided, comprising:

[0007] Write the current data to be transmitted of the current data queue into the current cache queue, and determine whether the current cache queue has output all the current data to be transmitted; wherein the current data queue is the data queue currently occupying the data transmission channel, and the current cache queue is the cache queue corresponding to the current data queue in the data transmission channel;

[0008] If the current cache queue has completely output the current data to be transmitted, determining whether other data queues other than the current data queue have other data to be transmitted;

[0009] If there are other data to be transmitted in the other data queues, the other data queues are set as data queues occupying the data transmission channel, so that the other data queues transmit the other data to be transmitted through the data transmission channel.

[0010] According to another aspect of the present invention, there is provided a data transmission control device, comprising:

[0011] The current data to be transmitted writing module is used to write the current data to be transmitted of the current data queue into the current cache queue, and determine whether the current cache queue has output all the current data to be transmitted; wherein the current data queue is the data queue currently occupying the data transmission channel, and the current cache queue is the cache queue corresponding to the current data queue in the data transmission channel;

[0012] Other data to be transmitted judging module, used for determining whether other data to be transmitted exists in other data queues except the current data queue if all the current data to be transmitted are output by the current cache queue;

[0013] The data queue switching module is used to set the other data queue as the data queue occupying the data transmission channel if there is other data to be transmitted in the other data queue, so that the other data queue transmits the other data to be transmitted through the data transmission channel.

[0014] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:

[0015] at least one processor; and

[0016] a memory communicatively connected to the at least one processor; wherein,

[0017] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data transmission control method according to any one of the present invention.

[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement any one of the data transmission control methods of the present invention when executed.

[0019] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any one of the data transmission control methods of the present invention.

[0020] The present invention determines whether the transmission of the current data to be transmitted is completed by identifying whether the current cache queue in the data transmission channel has output all the current data to be transmitted in the current data queue, thereby no longer relying on the identification of specific flag bits in the data packet. Therefore, even if the problem of data packet information loss occurs, the current data queue occupying the data transmission channel can be switched to other data queues with other data to be transmitted in time, thereby optimizing the switching logic of the data queue occupying the data channel, avoiding the problem of a certain data queue occupying the data channel for a long time, and ensuring the overall data transmission efficiency.

[0021] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 A flowchart of a data transmission control method provided in Embodiment 1 of the present invention;

[0024] Figure 2 A flowchart of a data transmission control method provided in Embodiment 2 of the present invention;

[0025] Figure 3 A schematic diagram of the structure of a data transmission control device provided in Embodiment 3 of the present invention;

[0026] Figure 4 It is a structural schematic diagram of an electronic device for implementing the data transmission control method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "current", "other", "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] Embodiment 1

[0030] Figure 1 This is a flow chart of a data transmission control method provided in the first embodiment of the present invention. This embodiment is applicable to the case where multiple data queues share a data channel for data transmission and the data queues occupying the data channel are switched. The method can be executed by a data transmission control device, which can be implemented in the form of hardware and / or software, for example, by a time division multiplexing module (also called a TDM module). Figure 1 As shown, the method includes:

[0031] S101 : writing the current data to be transmitted in the current data queue into the current cache queue, and determining whether the current cache queue has output all the current data to be transmitted.

[0032] Among them, the current data queue is the data queue currently occupying the data transmission channel, that is, the data queue currently occupying the data transmission channel for data transmission. The data transmission channel refers to the path or path that can transmit the data to be transmitted of each data queue to the target address. In this embodiment, there are at least two data queues sharing the data transmission channel for data transmission, but only one data queue is supported to exclusively occupy the data transmission channel for data transmission. At this time, other data queues need to wait. For example, assuming that data queue 1, data queue 2 and data queue 3 share the data transmission channel for data transmission, and the data queue currently occupying the data transmission channel is data queue 1, then data queue 1 is used as the current data queue, and data queue 2 and data queue 3 are used as other data queues. Data queue 2 and data queue 3 need to wait for data queue 1 to complete data transmission. The current data to be transmitted refers to the data to be transmitted of the current data queue, that is, the data packet that the current data queue needs to transmit through the data transmission channel.

[0033] In the data transmission channel, each data queue is allocated a corresponding cache queue, which is used to cache the data to be transmitted of each data queue into the corresponding cache queue first, and the cache queue then outputs the data to be transmitted for transmission to the target address. The types of cache queues include first-in-first-out queues (also known as FIFO queues), that is, the data to be transmitted are written into the cache queue in sequence, and the cache queue outputs the data to be transmitted in sequence according to the writing order of the data to be transmitted for transmission to the target address. The current cache queue is the cache queue corresponding to the current data queue in the data transmission channel. For example, assuming that data queue 1 is the current data queue, and the cache queue corresponding to data queue 1 in the data transmission channel is cache queue 1, cache queue 1 is used as the current cache queue.

[0034] In one embodiment, the time-division multiplexing module writes the current data to be transmitted of the current data queue into the current cache queue, and the current cache queue outputs the current data to be transmitted one by one. The time-division multiplexing module identifies in real time whether the current cache queue outputs all the current data to be transmitted. If the current cache queue does not output all the current data to be transmitted, it means that the data transmission channel has not yet completed sending the current data to be transmitted and continues to wait; if the current cache queue has output all the current data to be transmitted, it means that the data transmission channel has completed sending the current data to be transmitted, and other data queues can be switched to occupy the data transmission channel for data transmission.

[0035] S102: If the current cache queue has completely output the current data to be transmitted, determine whether other data queues other than the current data queue have other data to be transmitted.

[0036] S103: If there are other data to be transmitted in other data queues, set the other data queues as data queues occupying the data transmission channel, so that the other data queues transmit the other data to be transmitted through the data transmission channel.

[0037] Among them, other data queues refer to data queues other than the current data queue, that is, data queues that are not currently occupying the data channel for data transmission. Correspondingly, other data to be transmitted refers to data to be transmitted in other data queues, that is, data packets that other data queues need to transmit through the data transmission channel.

[0038] In one embodiment, if the time-division multiplexing module determines that the current cache queue has all output the current data to be transmitted, it traverses and identifies whether there are other data to be transmitted in other data queues other than the current data queue. If there is another data queue with other data to be transmitted, the other data queue is set as a data queue occupying the data transmission channel, so that the other data queue transmits other data to be transmitted through the data transmission channel; if there are multiple other data queues with other data to be transmitted, these other data queues are used as candidate data queues, and according to the available transmission resources of each candidate data queue, the candidate data queue with the largest available transmission resources is selected as the data queue occupying the data transmission channel, so that the candidate data queue transmits other data to be transmitted through the data transmission channel. Among them, the smaller the available transmission resources of any candidate data queue, it means that the candidate data queue has occupied too much transmission bandwidth; correspondingly, the larger the available transmission resources of any candidate data queue, it means that the candidate data queue does not occupy too much transmission bandwidth, so the candidate data queue with the larger available transmission resources is selected first to ensure the balance of bandwidth occupied by each data queue.

[0039] This embodiment determines whether the transmission of the current data to be transmitted is completed by identifying whether the current cache queue in the data transmission channel has output all the current data to be transmitted in the current data queue, thereby no longer relying on the identification of specific flag bits in the data packet. Therefore, even if there is a problem of data packet information loss, the current data queue occupying the data transmission channel can be switched to other data queues with other data to be transmitted in time, thereby optimizing the switching logic of the data queues occupying the data channel, avoiding the problem of a certain data queue occupying the data channel for a long time, and ensuring the overall data transmission efficiency.

[0040] Embodiment 2

[0041] Figure 2 This is a flow chart of a data transmission control method provided by Embodiment 2 of the present invention. This embodiment further optimizes and expands the above embodiment and can be combined with the above optional implementation modes. Figure 2 As shown, the method includes:

[0042] S201 : Write the current data to be transmitted in the current data queue into the current cache queue, and determine whether the current cache queue has output all the current data to be transmitted.

[0043] S202: If the current cache queue has completely output the current data to be transmitted, determine whether there is new current data to be transmitted in the current data queue, and whether there is other data to be transmitted in other data queues.

[0044] S203: If the current data queue has new data to be transmitted, and other data queues have other data to be transmitted, determine the current transmission resource amount available for the current data queue and other transmission resource amounts available for other data queues.

[0045] Among them, the transmission resource amount is allocated to each data queue in advance for consumption when each data queue transmits data, that is, every time a data queue transmits data through the data transmission channel, it will consume the corresponding available transmission resource amount according to the amount of data to be transmitted to ensure the normal execution of data transmission. It can be understood that the larger the amount of data to be transmitted, the larger the amount of available transmission resources consumed; the smaller the amount of data to be transmitted, the smaller the amount of available transmission resources consumed.

[0046] The amount of transmission resources allocated to the current data queue is used as the current transmission resource amount, and the amount of transmission resources allocated to other data queues is used as the other transmission resource amount. It can be understood that each time the current data queue transmits data once through the data transmission channel, the available amount of current transmission resources will decrease; correspondingly, each time other data queues transmit data once through the data transmission channel, the available amount of other transmission resources will also decrease.

[0047] In one embodiment, if the current cache queue outputs all current data to be transmitted, continue to determine whether there is new current data to be transmitted in the current data queue, and whether there is other data to be transmitted in other data queues. If there is new current data to be transmitted in the current data queue, and any other data queue has other data to be transmitted, further determine the current transmission resource amount available to the current data queue, and the other transmission resource amount available to the other data queues.

[0048] S204: Determine a data queue occupying the data transmission channel from the current data queue and other data queues according to the current transmission resource amount and other transmission resource amounts.

[0049] Among them, the smaller the amount of available transmission resources of any data queue, the more the data queue has occupied the transmission bandwidth; correspondingly, the larger the amount of available transmission resources of any data queue, the less the data queue occupies the transmission bandwidth. Therefore, the data queue with the larger amount of available transmission resources is preferentially selected as the data queue occupying the data transmission channel to ensure the balance of bandwidth occupied by each data queue.

[0050] In one embodiment, the current transmission resource amount available to the current data queue is compared with other transmission resource amounts available to other data queues, and the data queue occupying the data transmission channel is determined from the current data queue and other data queues based on the size comparison result between the current transmission resource amount and the other transmission resource amounts.

[0051] By determining whether there is new current data to be transmitted in the current data queue, and whether there is other data to be transmitted in other data queues; if there is new current data to be transmitted in the current data queue, and other data queues have other data to be transmitted, then determine the current transmission resource amount available to the current data queue, and the other transmission resource amounts available to other data queues; according to the current transmission resource amount and the other transmission resource amounts, determine the data queue occupying the data transmission channel from the current data queue and the other data queues, so that when multiple data queues have data to be transmitted, select the preferred data queue to occupy the data transmission channel according to the available transmission resource amount of each data queue, so as to ensure the balance of bandwidth occupied by each data queue.

[0052] Optionally, determining a data queue occupying the data transmission channel from the current data queue and other data queues according to the current transmission resource amount and other transmission resource amounts includes:

[0053] If the amount of other transmission resources is greater than the current transmission resource amount, the other data queues are set as the data queues occupying the data transmission channel; if the current transmission resource amount is greater than the amount of other transmission resources, the current data queue is set as the data queue occupying the data transmission channel.

[0054] For example, assume that the current transmission resource amount available for the current data queue is "200B", and the other transmission resources available for other data queues is "150B", that is, the other transmission resources available for other data queues are less than the current transmission resources available for the current data queue, which means that other data queues have occupied more transmission bandwidth for data transmission than the current data queue. In order to ensure the balance of bandwidth occupied by each data queue, the current data queue is set as the data queue occupying the data transmission channel.

[0055] Assume that the current transmission resource amount available for the current data queue is "120B", and the other transmission resources available for other data queues is "150B", that is, the current transmission resources available for the current data queue are less than the other transmission resources available for other data queues, which means that the current data queue has occupied more transmission bandwidth for data transmission than other data queues. In order to ensure the balance of bandwidth occupied by each data queue, other data queues are set as data queues occupying the data transmission channel.

[0056] By setting other data queues as data queues occupying the data transmission channel if the amount of other transmission resources is greater than the current transmission resources; and by setting the current data queue as the data queue occupying the data transmission channel if the current transmission resources are greater than other transmission resources, the balance of bandwidth occupied by each data queue can be ensured, so that the entire data transmission process can run healthily.

[0057] Optionally, after determining whether there is new data to be transmitted in the current data queue and whether there is other data to be transmitted in other data queues, the method further includes:

[0058] A. If there is no new data to be transmitted in the current data queue, and there is other data to be transmitted in other data queues, determine whether the amount of other transmission resources available in other data queues is greater than the minimum amount of resources required for a single data transmission.

[0059] The minimum amount of resources is determined according to the maximum amount of data to be transmitted. It is understandable that if the amount of transmission resources available to any data queue is less than or equal to the minimum amount of resources required for a single data transmission, the data to be transmitted cannot be completely transmitted through the data transmission channel, that is, only when the amount of transmission resources available to any data queue is greater than the minimum amount of resources required for a single data transmission, the data to be transmitted can be completely transmitted through the data transmission channel.

[0060] In one implementation, if there is no new data to be transmitted in the current data queue, and there is other data to be transmitted in other data queues, it is further determined whether the amount of other transmission resources available in other data queues is greater than the minimum amount of resources required for a single data transmission.

[0061] Optionally, since the data bit width of the data to be transmitted is 1024 bits, that is, one beat of the data to be transmitted is 128B, the maximum data amount of the data to be transmitted is limited to 16384B, that is, 128×128B, a total of 128 beats of data to be transmitted, so the minimum resource amount can be set to 128.

[0062] B. If it is determined that the amount of other transmission resources available to other data queues is greater than the minimum amount of resources, the other data queues are set as data queues occupying the data transmission channel.

[0063] If there is no new data to be transmitted in the current data queue, and there are other data to be transmitted in other data queues, then it is determined whether the amount of other transmission resources available for other data queues is greater than the minimum amount of resources required for a single data transmission; wherein the minimum amount of resources is determined according to the maximum amount of data to be transmitted; if it is determined that the amount of other transmission resources available for other data queues is greater than the minimum amount of resources, then the other data queues are set as data queues occupying the data transmission channel, so that only when the amount of other available transmission resources is greater than the minimum amount of resources, the other data queues are set as data queues occupying the data transmission channel, thereby ensuring the stability and reliability of data transmission and avoiding the problem that other data to be transmitted cannot be completely transmitted through the data transmission channel due to the small amount of other available transmission resources.

[0064] Optionally, after determining whether the amount of other transmission resources available for other data queues is greater than the minimum amount of resources required for a single data transmission, the method further includes:

[0065] C. If it is determined that the amount of other transmission resources available to other data queues is less than or equal to the minimum amount of resources, the first amount of transmission resources is allocated to the other data queues to obtain an updated amount of other transmission resources.

[0066] D. If it is determined that the updated amount of other transmission resources is greater than the minimum amount of resources, the other data queues are set as the data queues occupying the data transmission channel.

[0067] In one embodiment, if it is determined that the amount of other transmission resources available to other data queues is less than or equal to the minimum amount of resources, in order to ensure that other data queues can transmit data normally through the data transmission channel, a first amount of transmission resources is allocated to the other data queues, and an updated amount of other transmission resources is obtained. It is then determined again whether the updated amount of other transmission resources is greater than the minimum amount of resources. If it is determined that the updated amount of other transmission resources is greater than the minimum amount of resources, the other data queues are set as data queues occupying the data transmission channel.

[0068] If it is determined that the amount of other transmission resources available to other data queues is less than or equal to the minimum amount of resources, a first amount of transmission resources is allocated to other data queues to obtain updated amounts of other transmission resources; if it is determined that the updated amount of other transmission resources is greater than the minimum amount of resources, other data queues are set as data queues occupying the data transmission channel, so that when the amount of other transmission resources is less than or equal to the minimum amount of resources, by allocating transmission resources, other data queues with other data to be transmitted can smoothly transmit data through the data transmission channel, thereby avoiding the problem that other data to be transmitted cannot be transmitted in time, thereby ensuring the efficiency of data transmission.

[0069] Optionally, after allocating the first amount of transmission resources to other data queues, the method further includes:

[0070] Determine whether the current transmission resource amount available to the current data queue is greater than the minimum resource amount; if so, allocate a second amount of transmission resources to the current data queue to obtain an updated current transmission resource amount.

[0071] The first quantity and the second quantity are the same.

[0072] In one implementation, if after allocating a first amount of transmission resources to other data queues, it is determined that the current transmission resources available to the current data queue are greater than the minimum amount of resources, a second amount of transmission resources is also allocated to the current data queue to obtain an updated current transmission resource amount. The first amount and the second amount are the same, that is, the same amount of transmission resources is allocated to the other data queues and the current data queue.

[0073] By determining whether the current amount of transmission resources available to the current data queue is greater than the minimum amount of resources; if so, allocating a second amount of transmission resources to the current data queue to obtain an updated current amount of transmission resources. Since the first amount and the second amount are the same, the size relationship between the updated amounts of transmission resources of the current data queue and other data queues remains unchanged, thereby not affecting the subsequent strategy of giving priority to data queues with more available transmission resources to occupy data transmission channels.

[0074] Optionally, after setting other data queues as data queues occupying the data transmission channel, the method further includes:

[0075] E. Write other data to be transmitted into other cache queues.

[0076] Among them, other cache queues are cache queues corresponding to other data queues in the data transmission channel.

[0077] F. When other cache queues output any data of other data to be transmitted, other transmission resources available to other data queues are deducted according to the unit resource amount.

[0078] The unit resource amount indicates the amount of transmission resources required by the data transmission channel to transmit one beat of data.

[0079] In one implementation, other data to be transmitted is written into other cache queues, and after each beat of data is outputted from the other cache queues, the unit resource amount is deducted from other transmission resource amounts available to the other data queues.

[0080] By writing other data to be transmitted into other cache queues, when other cache queues output any data of the other data to be transmitted, the other transmission resources available to other data queues are deducted according to the unit resource amount, so as to ensure that the available transmission resources match the transmission data amount, thereby ensuring the healthy operation of the entire data transmission process.

[0081] Embodiment 3

[0082] Figure 3 This is a schematic diagram of the structure of a data transmission control device provided in Embodiment 3 of the present invention. Figure 3 As shown, the device comprises:

[0083] The current data to be transmitted writing module 31 is used to write the current data to be transmitted of the current data queue into the current cache queue, and determine whether the current cache queue has output all the current data to be transmitted; wherein the current data queue is the data queue currently occupying the data transmission channel, and the current cache queue is the cache queue corresponding to the current data queue in the data transmission channel;

[0084] Other data to be transmitted judging module 32, used for determining whether other data to be transmitted exists in other data queues except the current data queue if all the current cache queues have output the current data to be transmitted;

[0085] The data queue switching module 33 is used to set the other data queue as the data queue occupying the data transmission channel if there is other data to be transmitted in the other data queue, so that the other data queue transmits the other data to be transmitted through the data transmission channel.

[0086] Optionally, the device further includes an available transmission resource amount comparison module, which is specifically used to:

[0087] Determine whether there is new current data to be transmitted in the current data queue, and whether there is other data to be transmitted in the other data queues;

[0088] If the current data queue has new current data to be transmitted, and the other data queues have other data to be transmitted, then determine the current transmission resource amount available to the current data queue and the other transmission resource amounts available to the other data queues;

[0089] According to the current transmission resource amount and the other transmission resource amounts, a data queue occupying the data transmission channel is determined from the current data queue and the other data queues.

[0090] Optionally, the available transmission resource amount comparison module is further used for:

[0091] If the amount of the other transmission resources is greater than the amount of the current transmission resources, setting the other data queue as the data queue occupying the data transmission channel;

[0092] If the current transmission resource amount is greater than the other transmission resource amounts, the current data queue is set as the data queue occupying the data transmission channel.

[0093] Optionally, the device further includes an available transmission resource amount determination module, which is specifically configured to:

[0094] If the current data queue does not have any new current data to be transmitted, and the other data queues have other data to be transmitted, determining whether the amount of other transmission resources available to the other data queues is greater than the minimum amount of resources required for a single data transmission; wherein the minimum amount of resources is determined according to the maximum amount of data to be transmitted;

[0095] If it is determined that the amount of other transmission resources available to the other data queues is greater than the minimum amount of resources, the other data queues are set as data queues occupying the data transmission channel.

[0096] Optionally, the device further includes a first transmission resource amount allocation module, which is specifically configured to:

[0097] If it is determined that the amount of other transmission resources available to the other data queues is less than or equal to the minimum amount of resources, a first amount of transmission resources is allocated to the other data queues to obtain an updated amount of the other transmission resources;

[0098] If it is determined that the updated amount of other transmission resources is greater than the minimum amount of resources, the other data queue is set as a data queue occupying the data transmission channel.

[0099] Optionally, the device further includes a second transmission resource amount allocation module, specifically configured to:

[0100] Determining whether the current transmission resource amount available to the current data queue is greater than the minimum resource amount;

[0101] If so, a second amount of transmission resources is allocated to the current data queue to obtain the updated current amount of transmission resources; wherein the first amount is the same as the second amount.

[0102] Optionally, the device further includes a transmission resource amount deduction module, which is specifically used to:

[0103] Writing the other data to be transmitted into other cache queues; wherein the other cache queues are cache queues corresponding to the other data queues in the data transmission channel;

[0104] When the other cache queue outputs any beat of the other data to be transmitted, the other transmission resource amounts available to the other data queues are deducted according to the unit resource amount; wherein the unit resource amount represents the transmission resource amount required by the data transmission channel to transmit one beat of data.

[0105] The data transmission control device provided in the embodiment of the present invention can execute the data transmission control method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0106] Embodiment 4

[0107] Figure 4 A schematic diagram of the structure of an electronic device 40 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0108] like Figure 4 As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.

[0109] A number of components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0110] The processor 41 may be a variety of general and / or dedicated processing components with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 41 performs the various methods and processes described above, such as a control method for data transmission.

[0111] In some embodiments, the control method of data transmission may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the control method of data transmission described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured to perform the control method of data transmission in any other appropriate manner (e.g., by means of firmware).

[0112] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0113] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0114] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0115] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0116] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0117] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0118] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0119] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for controlling data transmission, characterized in that: include: Write the current data to be transmitted of the current data queue into the current cache queue, and determine whether the current cache queue has output all the current data to be transmitted; wherein the current data queue is the data queue currently occupying the data transmission channel, and the current cache queue is the cache queue corresponding to the current data queue in the data transmission channel; If the current cache queue has completely output the current data to be transmitted, determining whether other data queues other than the current data queue have other data to be transmitted; If there are other data to be transmitted in the other data queues, the other data queues are set as data queues occupying the data transmission channel, so that the other data queues transmit the other data to be transmitted through the data transmission channel.

2. The method according to claim 1, characterized in that After the current cache queue has completely output the current data to be transmitted, the method further includes: Determine whether there is new current data to be transmitted in the current data queue, and whether there is other data to be transmitted in the other data queues; If the current data queue has new current data to be transmitted, and the other data queues have other data to be transmitted, then determine the current transmission resource amount available to the current data queue and the other transmission resource amounts available to the other data queues; According to the current transmission resource amount and the other transmission resource amounts, a data queue occupying the data transmission channel is determined from the current data queue and the other data queues.

3. The method according to claim 2, characterized in that The determining, according to the current transmission resource amount and the other transmission resource amount, a data queue occupying the data transmission channel from the current data queue and the other data queues comprises: If the amount of the other transmission resources is greater than the amount of the current transmission resources, setting the other data queue as the data queue occupying the data transmission channel; If the current transmission resource amount is greater than the other transmission resource amounts, the current data queue is set as the data queue occupying the data transmission channel.

4. The method according to claim 2, characterized in that: After determining whether there is new data to be transmitted in the current data queue and whether there is other data to be transmitted in other data queues, the method further includes: If the current data queue does not have any new current data to be transmitted, and the other data queues have other data to be transmitted, determining whether the amount of other transmission resources available to the other data queues is greater than the minimum amount of resources required for a single data transmission; wherein the minimum amount of resources is determined according to the maximum amount of data to be transmitted; If it is determined that the amount of other transmission resources available to the other data queues is greater than the minimum amount of resources, the other data queues are set as data queues occupying the data transmission channel.

5. The method according to claim 4, characterized in that After determining whether the amount of other transmission resources available to the other data queues is greater than the minimum amount of resources required for a single data transmission, the method further includes: If it is determined that the amount of other transmission resources available to the other data queues is less than or equal to the minimum amount of resources, a first amount of transmission resources is allocated to the other data queues to obtain an updated amount of the other transmission resources; If it is determined that the updated amount of other transmission resources is greater than the minimum amount of resources, the other data queue is set as a data queue occupying the data transmission channel.

6. The method according to claim 5, characterized in that After allocating the first amount of transmission resources to the other data queues, the method further includes: Determining whether the current transmission resource amount available to the current data queue is greater than the minimum resource amount; If so, a second amount of transmission resources is allocated to the current data queue to obtain the updated current amount of transmission resources; wherein the first amount is the same as the second amount.

7. The method according to claim 1, characterized in that After setting the other data queue as the data queue occupying the data transmission channel, the method further includes: Writing the other data to be transmitted into other cache queues; wherein the other cache queues are cache queues corresponding to the other data queues in the data transmission channel; When the other cache queue outputs any beat of the other data to be transmitted, the other transmission resource amounts available to the other data queues are deducted according to the unit resource amount; wherein the unit resource amount represents the transmission resource amount required by the data transmission channel to transmit one beat of data.

8. A data transmission control device, characterized in that: include: The current data to be transmitted writing module is used to write the current data to be transmitted of the current data queue into the current cache queue, and determine whether the current cache queue has output all the current data to be transmitted; wherein the current data queue is the data queue currently occupying the data transmission channel, and the current cache queue is the cache queue corresponding to the current data queue in the data transmission channel; Other data to be transmitted judging module, used for determining whether other data to be transmitted exists in other data queues except the current data queue if all the current data to be transmitted are output by the current cache queue; The data queue switching module is used to set the other data queue as the data queue occupying the data transmission channel if there is other data to be transmitted in the other data queue, so that the other data queue transmits the other data to be transmitted through the data transmission channel.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the data transmission control method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to execute the data transmission control method according to any one of claims 1 to 7.

11. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the data transmission control method according to any one of claims 1 to 7.