Data transmission method and device, equipment, storage medium and program product
By obtaining and utilizing the available bandwidth resources of the communication link and selecting an appropriate time period for data transmission, the congestion problem when periodic data and aperiodic data are transmitted simultaneously is solved, and data transmission efficiency and bandwidth utilization are improved.
Patent Information
- Application Number
- CN202410772531.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-08-23
AI Technical Summary
When periodic data and aperiodic data are transmitted simultaneously based on communication links, it is easy to cause data transmission congestion, resulting in data transmission delays and low efficiency.
By obtaining the demand information of the data to be transmitted, the available bandwidth resources of the transmission link in multiple time periods are determined, and data is transmitted when the available bandwidth resources in the target time period are greater than the required bandwidth resources to ensure the available bandwidth resources of the transmission link. Greater than the bandwidth resources required for data to be transmitted to avoid congestion.
It improves the efficiency of data transmission, solves the problem of data transmission delay, and improves the utilization of bandwidth resources.
Smart Images

Figure CN118540228A
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a data transmission method, device, equipment, storage medium and program product. Background Art
[0002] With the development of data analysis and artificial intelligence technology, there is currently a huge amount of periodic data (such as irregularly generated film and television shooting materials, regularly generated experimental data, and regularly generated astronomical observation data) that needs to be transmitted from the data generation area to the computing center for calculation and rendering. The characteristics of data transmission of periodic data are long distance, large volume, no strict requirements for real-time performance, and emphasis on timeliness. Currently, periodic data and non-periodic data (such as online video data, live broadcast data, and other data with high requirements for real-time transmission) can be transmitted simultaneously based on communication links.
[0003] However, when periodic data and non-periodic data are transmitted simultaneously based on a communication link, since periodic data is usually large in volume and occupies more bandwidth resources, when the volume of non-periodic data is also large, transmitting periodic data and non-periodic data simultaneously can easily cause data transmission congestion and lead to data transmission delay. As a result, the efficiency of data transmission is low. Summary of the invention
[0004] The present application provides a data transmission method, apparatus, device, storage medium and program product, which are used to solve the technical problem that data transmission congestion and data transmission delay are easily caused when periodic data and non-periodic data are transmitted simultaneously based on a communication link.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, a data transmission method is provided, the method comprising: obtaining demand information of data to be transmitted; the demand information comprising: required bandwidth resources; determining available bandwidth resources of a transmission link in multiple time periods; the transmission link is a link for transmitting the data to be transmitted; according to the demand information, determining a target time period for the transmission link to transmit the data to be transmitted from multiple time periods, and transmitting the data to be transmitted in the target time period; the available bandwidth resources in the target time period are greater than the required bandwidth resources.
[0007] In a possible implementation, the demand information also includes: a required data transmission time period; based on the demand information, determining a target time period for transmitting the data to be transmitted through the transmission link from multiple time periods, including: determining the target time period based on the required bandwidth resources and the required data transmission time period; the target time period is within the required data transmission time period.
[0008] In a possible implementation, transmitting the data to be transmitted in the target time period includes: acquiring the data to be transmitted; and transmitting the data to be transmitted in the target time period when the data to be transmitted is acquired.
[0009] In one possible implementation, transmitting data to be transmitted in a target time period includes: when there are multiple data to be transmitted, based on the priority of each of the multiple data to be transmitted, determining at least one first transmission data from the multiple data to be transmitted, the available bandwidth resources in the target time period are greater than the bandwidth resources required for the at least one first transmission data; and transmitting the at least one first transmission data in the target time period.
[0010] In a possible implementation, transmitting data to be transmitted in a target time period includes: in a case where multiple data to be transmitted include periodically collected data and non-periodically collected data, based on the priority of each data to be transmitted, determining at least one second transmission data from the multiple data to be transmitted, the available bandwidth resources in the target time period are greater than the bandwidth resources required for the at least one second transmission data; the priority of the periodically collected data is higher than that of the non-periodically collected data; the multiple time periods are multiple time periods within the current cycle; and transmitting the at least one second transmission data in the target time period.
[0011] In one possible implementation, determining available bandwidth resources of a transmission link in multiple time periods includes: predicting bandwidth resources required for remaining data of currently transmitted data in each of the multiple time periods; and determining available bandwidth resources of the transmission link in any time period based on bandwidth resources required for remaining data of currently transmitted data in any of the multiple time periods.
[0012] In a possible implementation, the method also includes: obtaining basic information of the data to be transmitted, the basic information including at least one of the following: a starting time point for transmitting the data to be transmitted, a target duration for transmitting the data to be transmitted, and a data volume of the data to be transmitted; determining a data transmission time period based on the starting time point and the target duration, wherein multiple time periods are within the data transmission time period; and determining bandwidth resources required for the data to be transmitted based on the data volume.
[0013] In a second aspect, a data transmission device is provided, which includes: a transmission unit and a determination unit; the transmission unit is used to obtain demand information of data to be transmitted; the demand information includes: required bandwidth resources; the determination unit is used to determine the available bandwidth resources of the transmission link in multiple time periods; the transmission link is a link for transmitting the data to be transmitted.
[0014] In a possible implementation, the demand information also includes: a required data transmission time period; a determination unit, further configured to determine a target time period based on the required bandwidth resources and the required data transmission time period; and the target time period is within the required data transmission time period.
[0015] In a possible implementation, the transmission unit is further configured to obtain data to be transmitted; and the transmission unit is further configured to transmit the data to be transmitted in a target time period when the data to be transmitted is obtained.
[0016] In a possible implementation, the determination unit is further used to determine at least one first transmission data from a plurality of data to be transmitted based on the priority of each of the plurality of data to be transmitted, when there are multiple data to be transmitted, and the available bandwidth resources in the target time period are greater than the bandwidth resources required for the at least one first transmission data; the transmission unit is further used to transmit the at least one first transmission data in the target time period.
[0017] In a possible implementation, the determination unit is further used to determine at least one second transmission data from the multiple data to be transmitted based on the priority of each data to be transmitted, when the multiple data to be transmitted include periodically collected data and non-periodically collected data, the available bandwidth resources in the target time period are greater than the bandwidth resources required for the at least one second transmission data; the priority of the periodically collected data is higher than that of the non-periodically collected data; the multiple time periods are multiple time periods within the current cycle; and the transmission unit is further used to transmit the at least one second transmission data in the target time period.
[0018] In one possible implementation, the data transmission device also includes: a processing unit; a processing unit, used to predict the bandwidth resources required for the remaining data of the current transmission data in each of multiple time periods; a determination unit, further used to determine the available bandwidth resources of the transmission link in any time period based on the bandwidth resources required for the remaining data of the current transmission data in any of the multiple time periods.
[0019] In a possible implementation, the transmission unit is also used to obtain basic information of the data to be transmitted, and the basic information includes at least one of the following: a starting time point for transmitting the data to be transmitted, a target duration for transmitting the data to be transmitted, and a data volume of the data to be transmitted; the determination unit is also used to determine a data transmission time period based on the starting time point and the target duration, and multiple time periods are within the data transmission time period; the determination unit is also used to determine the bandwidth resources required for the data to be transmitted based on the data volume.
[0020] In a third aspect, an electronic device comprises: a processor and a memory; wherein the memory is used to store one or more programs, and the one or more programs include computer execution instructions. When the electronic device is running, the processor executes the computer execution instructions stored in the memory to enable the electronic device to perform a data transmission method as in the first aspect.
[0021] In a fourth aspect, a computer-readable storage medium storing one or more programs is provided. The one or more programs include instructions. When the instructions are executed by a computer, the computer executes a data transmission method as in the first aspect.
[0022] In a fifth aspect, a computer program product is provided. When the computer instructions are executed on an electronic device, the electronic device executes a data transmission method as in the first aspect.
[0023] The present application provides a data transmission method, apparatus, device, storage medium and program product, which are applied to data transmission scenarios. When data transmission of data to be transmitted is required, the bandwidth resources required for the data to be transmitted can be obtained, and the available bandwidth resources of the transmission link of the data to be transmitted in multiple time periods can be determined. Furthermore, according to the bandwidth resources required for the data to be transmitted, a target time period in which the available bandwidth resources are greater than the required bandwidth resources is determined from multiple time periods to transmit the data to be transmitted in the target time period. That is, the more available bandwidth resources a transmission link has, the less likely congestion will occur when transmitting data, and the higher the efficiency of transmitting data, so that the data to be transmitted is transmitted in the time period in which the available bandwidth resources of the transmission link are greater than the bandwidth resources required for the data to be transmitted, which can ensure that the transmission link will not be congested.
[0024] Through the above method, the data to be transmitted can be transmitted in the target time period when the available bandwidth resources of the transmission link are greater than the bandwidth resources required by the data to be transmitted. Thus, the technical problem that data transmission congestion is easily caused and data transmission delay occurs when periodic data and non-periodic data are transmitted simultaneously based on the communication link is solved, and the efficiency of data transmission is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 A schematic diagram of the structure of a data transmission system provided in an embodiment of the present application;
[0026] Figure 2 A data transmission method according to an embodiment of the present invention is provided. Figure 1 ;
[0027] Figure 3 A schematic diagram of a data transmission method provided in an embodiment of the present application Figure 2 ;
[0028] Figure 4A schematic diagram of a data transmission method provided in an embodiment of the present application Figure 3 ;
[0029] Figure 5 A schematic diagram of a data transmission method provided in an embodiment of the present application Figure 4 ;
[0030] Figure 6 A schematic diagram of a data transmission method provided in an embodiment of the present application Figure 5 ;
[0031] Figure 7 A schematic diagram of a data transmission method provided in an embodiment of the present application Figure 6 ;
[0032] Figure 8 A schematic diagram of a data transmission method provided in an embodiment of the present application Figure 7 ;
[0033] Fig. 9 A schematic diagram of a process flow of periodic data transmission provided in an embodiment of the present application;
[0034] Fig.10 A schematic diagram of the structure of a data transmission device provided in an embodiment of the present application;
[0035] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0037] In the description of this application, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" and "plurality" refer to two or more. The words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not limit them to be different.
[0038] With the development of data analysis and artificial intelligence technology, massive scientific computing data (i.e., periodic data) needs to be transmitted from the data generation area to the computing center (also known as the intelligent computing center) for calculation and rendering. The original data types of periodic data include irregular original materials for film and television production (i.e., film and television shooting materials), regular enterprise data cloud disaster recovery and backup, and astronomical data generated periodically every day. The data transmission of periodic data is characterized by long distance and large volume. Unlike non-periodic data such as online video viewing or live broadcast business data, periodic data is cold and warm data that does not have strict real-time requirements and focuses on timeliness.
[0039] Currently, periodic data and non-periodic data can be transmitted simultaneously based on communication links. However, since periodic data is usually large in volume, it takes up a lot of bandwidth resources for a long time. For operators, if too much bandwidth resources are allocated to periodic data, it will have an impact on existing services, affect user experience, and have a low return on cost. In addition, when the volume of non-periodic data is also large, transmitting periodic data and non-periodic data at the same time can easily cause data transmission congestion, resulting in data transmission delays, difficult to guarantee transmission rates, a high probability of retransmission, and a long overall time consumption.
[0040] Currently, periodic data can be delivered through dedicated line transportation or hard disk express delivery. However, dedicated line transportation requires high dedicated line fees, which are difficult for users to accept. Therefore, many data source points choose to use hard disk express delivery. However, hard disk express delivery also requires a certain cost.
[0041] In summary, when transmitting periodic data and non-periodic data, a more reasonable solution is to make full use of the bandwidth during the night off-peak hours to provide transmission services for periodic data, and provide same-day and next-day transmission services for time-sensitive data (i.e. periodic data). Data transmission can be carried out regularly or irregularly, while ensuring data transmission efficiency and improving bandwidth resource utilization.
[0042] The present application provides a data transmission method, apparatus, device, storage medium and program product, which are applied to data transmission scenarios. When data transmission of data to be transmitted is required, the bandwidth resources required for the data to be transmitted can be obtained, and the available bandwidth resources of the transmission link of the data to be transmitted in multiple time periods can be determined. Furthermore, according to the bandwidth resources required for the data to be transmitted, a target time period in which the available bandwidth resources are greater than the required bandwidth resources is determined from multiple time periods to transmit the data to be transmitted in the target time period. That is, the more available bandwidth resources a transmission link has, the less likely congestion will occur when transmitting data, and the higher the efficiency of transmitting data, so that the data to be transmitted is transmitted in the time period in which the available bandwidth resources of the transmission link are greater than the bandwidth resources required for the data to be transmitted, which can ensure that the transmission link will not be congested.
[0043] Through the above method, the data to be transmitted can be transmitted in the target time period when the available bandwidth resources of the transmission link are greater than the bandwidth resources required by the data to be transmitted. Thus, the technical problem that data transmission congestion is easily caused and data transmission delay occurs when periodic data and non-periodic data are transmitted simultaneously based on the communication link is solved, and the efficiency of data transmission is improved.
[0044] A data transmission method provided in an embodiment of the present application can be applicable to a data transmission system. Figure 1 FIG. 1 shows a schematic diagram of the structure of a data transmission system. Figure 1 As shown, the data transmission system 10 includes: a server 11 and an electronic device 12. The server 11 and the electronic device 12 may be connected in a wired manner or in a wireless manner, which is not limited in the embodiment of the present invention.
[0045] The electronic device 12 is used to obtain demand information of the data to be transmitted from the server 11, determine the available bandwidth resources of the transmission link in multiple time periods, determine the target time period for transmitting the data to be transmitted by the transmission link from multiple time periods based on the demand information, and transmit the data to be transmitted in the target time period.
[0046] Optionally, the server 11 and the electronic device 12 may be physical machines, for example, the server 11 and the electronic device 12 may be base station equipment, a desktop computer, also known as a desktop computer or a server, or a server group consisting of multiple servers.
[0047] A data transmission method provided by an embodiment of the present application is described below in conjunction with the accompanying drawings. Figure 2 As shown, a data transmission method provided in an embodiment of the present application is applied to an electronic device, and the method includes S201-S204:
[0048] S201: Obtain demand information of data to be transmitted.
[0049] The demand information includes: required bandwidth resources.
[0050] It can be understood that the electronic device can obtain the demand information of the data to be transmitted.
[0051] Exemplarily, the bandwidth resource required for the data to be transmitted is 1G.
[0052] S202: Determine available bandwidth resources of a transmission link in multiple time periods.
[0053] The transmission link is a link that transmits the data to be transmitted.
[0054] It can be understood that the electronic device can determine the available bandwidth resources of the transmission link in multiple time periods.
[0055] For example, there is an available link from the eastern data center A to the western intelligent computing center B. The bottleneck bandwidth (i.e., the minimum bandwidth) of the transmission link is 10G, and the upper limit of the bandwidth available for data to be transmitted is 5G. The available bandwidth resources from 0:00 to 2:00 can be 0.8G, the available bandwidth resources from 0:30 to 2:30 can be 1.1G, and the available bandwidth resources from 1:00 to 3:00 can be 0.9G.
[0056] S203: Determine, according to the demand information, a target time period for transmitting the data to be transmitted through the transmission link from multiple time periods.
[0057] S204: Transmit the data to be transmitted in the target time period.
[0058] The available bandwidth resources in the target time period are greater than the required bandwidth resources.
[0059] Exemplarily, the target time period may be from 0:30 to 2:30.
[0060] In one design, Figure 3 As shown, in a data transmission method provided in an embodiment of the present application, the demand information further includes: a required data transmission time period, and the method in the above step S203 specifically includes S301:
[0061] S301. Determine a target time period according to required bandwidth resources and required data transmission time period.
[0062] The target time period is within the required data transmission time period.
[0063] Optionally, the electronic device may determine the target time period according to the required bandwidth resources and the required data transmission time period.
[0064] Exemplarily, the data transmission time period required for the data to be transmitted may be from 0 o'clock to 3 o'clock.
[0065] The present application determines the time period for transmitting the data to be transmitted based on the bandwidth resources required for the data to be transmitted and the required data transmission time period. The data can be transmitted within the time period specified by the user, and sufficient bandwidth resources can be ensured to be used, time can be used reasonably, and bandwidth resource utilization can be improved while improving user experience.
[0066] In one design, Figure 4 As shown, a data transmission method provided in an embodiment of the present application, the method in the above step S204 specifically includes S401-S402:
[0067] S401: Obtain data to be transmitted.
[0068] S402: When the data to be transmitted is acquired, the data to be transmitted is transmitted in a target time period.
[0069] Optionally, before transmitting the data to be transmitted, the electronic device may acquire the data to be transmitted, and if it is determined whether the data to be transmitted is acquired within a preset time period before transmitting the data to be transmitted, transmit the data to be transmitted within a target time period.
[0070] Exemplarily, the preset time period may be from 11:30 to 0:00.
[0071] The present application transmits the data to be transmitted when it is determined that the data to be transmitted has been acquired, thereby avoiding the waste of bandwidth resources due to the delayed arrival of the data to be transmitted.
[0072] In one design, Figure 5 As shown, a data transmission method provided in an embodiment of the present application, the method in the above step S204 specifically includes S501-S502:
[0073] S501: When there are multiple data to be transmitted, determine at least one first transmission data from the multiple data to be transmitted based on the priority of each of the multiple data to be transmitted.
[0074] The available bandwidth resources in the target time period are greater than the bandwidth resources required by at least one first transmission data.
[0075] S502: Transmit at least one first transmission data in a target time period.
[0076] Optionally, when there are multiple data to be transmitted, based on the priority of each of the multiple data to be transmitted, the electronic device can determine at least one first transmission data from the multiple data to be transmitted. Further, the electronic device can transmit the at least one first transmission data in the target time period.
[0077] Exemplarily, the multiple data to be transmitted may be data to be transmitted of user A and data to be transmitted of user B, the bandwidth resource required for the data to be transmitted of user A is 0.9G, the bandwidth resource required for the data to be transmitted of user B is 1G, and the available bandwidth resource in the target time period is 1.1G. Assuming that the priority of the data to be transmitted of user A is higher than that of the data to be transmitted of user B, then at least one first transmission data is the data to be transmitted of user A.
[0078] This application can determine the data to be transmitted first according to the priority of the data to be transmitted, ensure that data with higher priority is transmitted first, and improve the user experience while ensuring sufficient use of bandwidth resources.
[0079] In one design, Figure 6 As shown, a data transmission method provided in an embodiment of the present application, the method in the above step S204 specifically includes S601-S602:
[0080] S601: When a plurality of data to be transmitted include periodically collected data and aperiodically collected data, determine at least one second transmission data from the plurality of data to be transmitted based on a priority of each data to be transmitted.
[0081] Among them, the available bandwidth resources of the target time period are greater than the bandwidth resources required for at least one second transmission data; the priority of periodically collected data is higher than that of non-periodically collected data; and the multiple time periods are multiple time periods within the current cycle.
[0082] S602: Transmit at least one second transmission data in a target time period.
[0083] Optionally, when the plurality of data to be transmitted include periodically collected data and non-periodically collected data, based on the priority of each data to be transmitted, the electronic device can determine at least one second transmission data from the plurality of data to be transmitted. Further, the electronic device can transmit the at least one second transmission data in the target time period.
[0084] Exemplarily, the multiple data to be transmitted may include: data to be transmitted of user A, data to be transmitted of user B, and data to be transmitted of user X, the bandwidth resources required for the data to be transmitted of user A are 0.5G, the bandwidth resources required for the data to be transmitted of user B are 0.5G, the bandwidth resources required for the data to be transmitted of user X are 0.5G, and the available bandwidth resources in the target time period are 1.1G. Then the at least one first transmission data is the data to be transmitted of user A and the data to be transmitted of user B.
[0085] This application sets the priority of periodic data higher than that of non-periodic data, thereby ensuring that periodic data is transmitted first and improving user experience.
[0086] In one design, Figure 7 As shown, a data transmission method provided in an embodiment of the present application, the method in the above step S202 specifically includes S701-S702:
[0087] S701 : Predict bandwidth resources required by remaining data of currently transmitted data in each of multiple time periods.
[0088] Optionally, the electronic device may obtain remaining data of the currently transmitted data, and predict bandwidth resources required by the remaining data of the currently transmitted data in each of a plurality of time periods.
[0089] For example, the bandwidth resources required for the remaining data of the current transmission from 0 o'clock to 2 o'clock may be 4.2G, the bandwidth resources required for the remaining data of the current transmission from 0:30 to 2:30 may be 3.9G, and the bandwidth resources required for the remaining data of the current transmission from 1 o'clock to 3 o'clock may be 4.1G.
[0090] S702: Determine available bandwidth resources of a transmission link in any time period based on bandwidth resources required by remaining data of currently transmitted data in any time period among multiple time periods.
[0091] Optionally, based on the bandwidth resources required by the remaining data of the currently transmitted data in any time period among multiple time periods, the electronic device may determine the available bandwidth resources of the transmission link in any time period.
[0092] For example, when the bandwidth resources required for the remaining data of the current transmission from 0 o'clock to 2 o'clock are 4.2G, the available bandwidth resources of the transmission link from 0 o'clock to 2 o'clock can be 0.8G (that is, the bandwidth upper limit of the transmission link 5G minus 4.2G can get 0.8G).
[0093] The present application can predict the available bandwidth resources of the transmission link in a preset time period based on the remaining data of the currently transmitted data, thereby providing bandwidth resource guarantee for the data to be transmitted and improving bandwidth utilization.
[0094] In one design, Figure 8 As shown, a data transmission method provided in an embodiment of the present application further includes S801-S803:
[0095] S801. Obtain basic information of data to be transmitted.
[0096] The basic information includes at least one of the following: a starting time point for transmitting the data to be transmitted, a target duration for transmitting the data to be transmitted, and a data volume of the data to be transmitted.
[0097] Exemplarily, the starting time point for transmitting the data to be transmitted may be 0 o'clock, the target duration for transmitting the data to be transmitted may be 3 hours (ie, the transmission of the data to be transmitted may be completed within 3 hours), and the data volume of the data to be transmitted may be 50T.
[0098] S802: Determine a data transmission time period based on a start time point and a target duration.
[0099] Among them, a plurality of time periods are within the data transmission time period.
[0100] Optionally, based on the starting time point and the target duration, the electronic device may determine a data transmission time period.
[0101] Exemplarily, when the starting time point is 0 o'clock and the target duration is 3 hours, the data transmission time period may be from 0 o'clock to 3 o'clock.
[0102] S803: Determine bandwidth resources required for the data to be transmitted based on the data volume.
[0103] Optionally, based on the amount of data, the electronic device may determine bandwidth resources required for the data to be transmitted.
[0104] Exemplarily, when the amount of data to be transmitted is 50T, the bandwidth resources required for the data to be transmitted may be 0.5G.
[0105] The present application can determine the data transmission time period and the required bandwidth resources based on the basic information of the data to be transmitted, so as to facilitate the subsequent selection of a suitable time period within a certain time range to transmit the data to be transmitted and improve the utilization rate of bandwidth resources.
[0106] In one embodiment, since the transmission of periodic data requires a long time to occupy more network bandwidth resources, and the periodic data does not need to be transmitted in real time, it only needs to be transmitted within the agreed time range. Therefore, a service reservation and queuing processing mechanism can be adopted to transmit periodic data. The transmission process of periodic data mainly includes four parts: service reservation, waiting queue, locking queue and task execution. First, the service reservation is made, then the waiting queue is determined, the queue is further locked, and finally the task is performed.
[0107] Specifically, Fig. 9 As shown, the process of periodic data transmission includes the following steps: the management and control platform of the electronic device receives a new transmission task sent by the client (i.e., the server), the management and control platform checks the business reservation list, and determines whether the transmission task is a periodic business that has been reserved in the business reservation list (i.e., the periodic data in this application, such as observatories, etc. can reserve observation data generated regularly every day, film and television crews can reserve shooting materials generated regularly every day, and scientific research institutions can reserve weekly transmission of experimental data).
[0108] If the transmission task is a scheduled periodic service in the service reservation list, the transmission task is added to the waiting queue; if the transmission task is not a scheduled periodic service in the service reservation list, the user is asked whether to open a regular reservation for the transmission task. If a regular reservation is opened for the transmission task, the management and control platform updates the service reservation list; if a regular reservation is not opened for the transmission task, the transmission task is added to the waiting queue.
[0109] Furthermore, priority is given to checking whether the data of the periodic services that have been reserved for the next time window in the waiting queue has been delivered (i.e., whether the data of the periodic services that have been reserved has been obtained). If the data of the periodic services that have been reserved has not been delivered, continue to check whether the temporary reserved data (i.e., non-periodic data) in the waiting queue has been delivered. Check whether the available bandwidth resources in the future time period can complete the reserved periodic services and temporary reserved data that have been delivered in the waiting queue. If the available bandwidth resources in the future time period can complete the reserved periodic services and temporary reserved data that have been delivered in the waiting queue, all tasks in the waiting queue enter the locked queue; if the available bandwidth resources in the future time period cannot complete the reserved periodic services and temporary reserved data that have been delivered in the waiting queue, the delivered reserved periodic services will enter the locked queue first, and the delivered temporary reserved data will continue to wait. Further, the data of the tasks in the locked queue is transmitted until the data of the tasks is completed.
[0110] For example, the service reservation list includes five scheduled services to be transmitted, which are: about 50T data scheduled by user A starting at 0:00, which can be transmitted within 3 hours; about 20T data scheduled by user B starting at 0:00, which can be transmitted within 3 hours; about 30T data scheduled by user C starting at 0:15, which can be transmitted within 3 hours; about 10T data scheduled by user D starting at 1:00, which can be transmitted within 4 hours; about 20T data scheduled by user E starting at 1:00, which can be transmitted within 4 hours. The management and control platform receives a new transmission request (and temporary reservation data) from user X at 10 pm, and plans to transmit about 10T data at 0:00, which can be transmitted within 3 hours.
[0111] At 23:30, the management and control platform can check whether the data planned to be transmitted by users A, B, and C in the next time window (assuming 1 hour) has been delivered. If the feedback is that the data of users A and C has been delivered, the data of user X has been delivered, and the data of user B has not been delivered yet;
[0112] The control platform can check whether the available bandwidth resources in a period of time after 1 hour can complete the tasks within the time required by users A, C, and B. If the control platform calculates and feedbacks that the available bandwidth resources can meet the parallel transmission of these three tasks and can all be delivered on time, then these three tasks will enter the locked queue at the same time; if the control platform feedbacks that it cannot take into account the parallel transmission of the tasks of users A, C, and X at the same time, then since the tasks of users A and C are pre-booked tasks and have a higher priority, they will enter the locked queue first and wait for transmission, and user X will continue to wait. When the queue is locked, even if user B's data has been delivered, it cannot be added to the locked queue and needs to wait for the next time period when bandwidth resources are available before starting transmission.
[0113] This application provides a bandwidth resource reservation mechanism for massive data transmission scenarios, giving priority to reserved periodic services, which can improve bandwidth resource utilization during idle hours at night and improve user experience. This application combines waiting queues and locked queues to provide bandwidth resource guarantees for transmitted data delivered on time, avoiding the problem of bandwidth resource waste caused by occasional delays in periodic data. This application can achieve delivery guarantees for effective services such as massive data transmission (i.e., periodic services), flexibly and efficiently utilize bandwidth resources within a certain time range, and complete massive data transmission without affecting existing real-time services (i.e., non-periodic services).
[0114] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment disclosed herein, the embodiment of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0115] The embodiment of the present application can divide a data transmission method into functional modules according to the above method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. Optionally, the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0116] Fig.10 This is a schematic diagram of the structure of a data transmission device provided in an embodiment of the present application. Fig.10 As shown, a data transmission device 90 is used to improve the efficiency of data transmission, for example, to perform Figure 2 A data transmission method is shown. The data transmission device 90 includes: a transmission unit 901 and a determination unit 902.
[0117] The transmission unit 901 is used to obtain the demand information of the data to be transmitted; the demand information includes: the required bandwidth resources.
[0118] The determining unit 902 is configured to determine available bandwidth resources of a transmission link in multiple time periods; a transmission link is a link for transmitting data to be transmitted.
[0119] In a possible implementation, the demand information also includes: a required data transmission time period; a determination unit 902 is further used to determine a target time period based on the required bandwidth resources and the required data transmission time period; and the target time period is within the required data transmission time period.
[0120] In a possible implementation, the transmission unit 901 is further configured to obtain data to be transmitted; and the transmission unit 901 is further configured to transmit the data to be transmitted in a target time period when the data to be transmitted is obtained.
[0121] In a possible implementation, the determination unit 902 is further used to determine at least one first transmission data from a plurality of data to be transmitted based on the priority of each of the plurality of data to be transmitted, when there are multiple data to be transmitted, and the available bandwidth resources in the target time period are greater than the bandwidth resources required for the at least one first transmission data; the transmission unit 901 is further used to transmit the at least one first transmission data in the target time period.
[0122] In a possible implementation, the determination unit 902 is further used to determine at least one second transmission data from the multiple data to be transmitted based on the priority of each data to be transmitted, when the multiple data to be transmitted include periodically collected data and non-periodically collected data, the available bandwidth resources in the target time period are greater than the bandwidth resources required for the at least one second transmission data; the priority of the periodically collected data is higher than that of the non-periodically collected data; the multiple time periods are multiple time periods within the current cycle; and the transmission unit 901 is further used to transmit the at least one second transmission data in the target time period.
[0123] In one possible implementation, the data transmission device also includes: a processing unit 903; the processing unit 903 is used to predict the bandwidth resources required for the remaining data of the current transmission data in each of multiple time periods; the determination unit 902 is also used to determine the available bandwidth resources of the transmission link in any time period based on the bandwidth resources required for the remaining data of the current transmission data in any time period in the multiple time periods.
[0124] In a possible implementation, the transmission unit 901 is also used to obtain basic information of the data to be transmitted, and the basic information includes at least one of the following: a starting time point for transmitting the data to be transmitted, a target duration for transmitting the data to be transmitted, and a data volume of the data to be transmitted; the determination unit 902 is also used to determine a data transmission time period based on the starting time point and the target duration, and multiple time periods are within the data transmission time period; the determination unit 902 is also used to determine the bandwidth resources required for the data to be transmitted based on the data volume.
[0125] In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, the embodiment of the present application provides a possible structural diagram of the electronic device involved in the above-mentioned embodiment. Fig.11 As shown, an electronic device 100 is used to improve the efficiency of transmitting data, for example, to perform Figure 2 A data transmission method is shown. The electronic device 100 includes a processor 1001, a memory 1002 and a bus 1003. The processor 1001 and the memory 1002 may be connected via the bus 1003.
[0126] The processor 1001 is the control center of the communication device, which can be a processor or a general term for multiple processing elements. For example, the processor 1001 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.
[0127] As an embodiment, the processor 1001 may include one or more CPUs, such as Fig.11 CPU 0 and CPU 1 are shown in .
[0128] The memory 1002 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0129] As a possible implementation, the memory 1002 may exist independently of the processor 1001, and the memory 1002 may be connected to the processor 1001 via the bus 1003 to store instructions or program codes. When the processor 1001 calls and executes the instructions or program codes stored in the memory 1002, a data transmission method provided in an embodiment of the present application can be implemented.
[0130] In another possible implementation, the memory 1002 may also be integrated with the processor 1001 .
[0131] The bus 1003 may be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0132] It should be pointed out that Fig.11 The structure shown does not constitute a limitation on the electronic device 100. Fig.11 In addition to the components shown, the electronic device 100 may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0133] As an example, combining Fig.11 The functions implemented by the transmission unit 901, the determination unit 902 and the processing unit 903 in the data transmission device 90 are similar to those Fig.11 The function of processor 1001 in is the same.
[0134] Optional, such as Fig.11 As shown, the electronic device 100 provided in the embodiment of the present application may further include a communication interface 1004 .
[0135] The communication interface 1004 is used to connect with other devices through a communication network. The communication network may be Ethernet, wireless access network, wireless local area network (WLAN), etc. The communication interface 1004 may include a receiving unit for receiving data and a sending unit for sending data.
[0136] In one design, in the electronic device provided in the embodiment of the present application, the communication interface can also be integrated into the processor.
[0137] Through the description of the above implementation methods, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional units is used as an example. In practical applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the device can be divided into different functional units to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0138] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the computer executes each step in the method flow shown in the above method embodiment.
[0139] An embodiment of the present application provides a computer program product. When a computer instruction is executed on an electronic device, the electronic device executes a data transmission method in the above method embodiment.
[0140] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk. Random access memory (random access memory, RAM), read-only memory (read-only memory, ROM), erasable programmable read only memory (erasable programmable read only memory, EPROM), registers, hard disks, optical fibers, portable compact disc read-only memory (compact disc read-only memory, CD-ROM), optical storage devices, magnetic storage devices, or the above in a suitable combination, or any other form of computer-readable storage medium known in the art.
[0141] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC).
[0142] In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0143] Since the electronic device, computer-readable storage medium, and computer program product in the embodiments of the present application can be applied to the above-mentioned method, the technical effects that can be obtained can also refer to the above-mentioned method embodiments, and the embodiments of the present application will not be repeated here.
[0144] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application.
Claims
1. A data transmission method, characterized in that: The method comprises: Obtaining demand information of data to be transmitted; the demand information includes: required bandwidth resources; Determine available bandwidth resources of a transmission link in multiple time periods; the transmission link is a link for transmitting the data to be transmitted; According to the demand information, a target time period for the transmission link to transmit the data to be transmitted is determined from the multiple time periods, and the data to be transmitted is transmitted in the target time period; the available bandwidth resources of the target time period are greater than the required bandwidth resources.
2. The method according to claim 1, characterized in that The demand information also includes: the required data transmission time period; Determining, according to the demand information, a target time period for transmitting the data to be transmitted through the transmission link from the multiple time periods includes: The target time period is determined according to the required bandwidth resources and the required data transmission time period; the target time period is within the required data transmission time period.
3. The method according to claim 1, characterized in that The transmitting the data to be transmitted in the target time period includes: Acquire the data to be transmitted; When the data to be transmitted is acquired, the data to be transmitted is transmitted in the target time period.
4. The method according to claim 1, characterized in that: The transmitting the data to be transmitted in the target time period includes: In the case where there are multiple data to be transmitted, based on the priority of each of the multiple data to be transmitted, at least one first transmission data is determined from the multiple data to be transmitted, and the available bandwidth resources in the target time period are greater than the bandwidth resources required by the at least one first transmission data; The at least one first transmission data is transmitted in the target time period.
5. The method according to claim 4, characterized in that The transmitting the data to be transmitted in the target time period includes: In a case where the plurality of data to be transmitted include periodically collected data and non-periodically collected data, at least one second transmission data is determined from the plurality of data to be transmitted based on the priority of each of the data to be transmitted, the available bandwidth resources of the target time period are greater than the bandwidth resources required by the at least one second transmission data; the priority of the periodically collected data is higher than that of the non-periodically collected data; and the plurality of time periods are a plurality of time periods within a current period; The at least one second transmission data is transmitted in the target time period.
6. The method according to claim 1 or 2, characterized in that: The determining of available bandwidth resources of the transmission link in multiple time periods includes: Predicting bandwidth resources required for remaining data of currently transmitted data in each of the multiple time periods; Based on the bandwidth resources required by the remaining data of the currently transmitted data in any time period of the multiple time periods, the available bandwidth resources of the transmission link in the any time period are determined.
7. The method according to claim 1 or 2, characterized in that: The method further comprises: Acquire basic information of the data to be transmitted, wherein the basic information includes at least one of the following: a starting time point for transmitting the data to be transmitted, a target duration for transmitting the data to be transmitted, and a data volume of the data to be transmitted; Determine a data transmission time period based on the starting time point and the target duration, wherein the multiple time periods are within the data transmission time period; Based on the data amount, bandwidth resources required for the data to be transmitted are determined.
8. A data transmission device, characterized in that: The data transmission device comprises: a transmission unit and a determination unit; The transmission unit is used to obtain demand information of data to be transmitted; the demand information includes: required bandwidth resources; The determining unit is used to determine available bandwidth resources of a transmission link in multiple time periods; the transmission link is a link that transmits the data to be transmitted.
9. An electronic device, characterized in that: include: Processor and memory; The memory is used to store one or more programs, and the one or more programs include computer-executable instructions. When the electronic device is running, the processor executes the computer-executable instructions stored in the memory to enable the electronic device to perform the method described in any one of claims 1 to 7.
10. A computer-readable storage medium storing one or more programs, characterized in that: The one or more programs include instructions which, when executed by a computer, cause the computer to perform the method of any one of claims 1-7.
11. A computer program product, characterized in that The computer program product comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 7.
Citation Information
Cited By
Data transmission method and device, storage medium and electronic equipment
CN121151318A
Data transmission method and apparatus, storage medium, and electronic device
CN121151318B
