File transfer task scheduling method based on satellite communication and integrated electronic system
By using the Dirichlet distribution function and the normalization function in the satellite communication system to adjust the proportion of transmission resources and optimize file transmission task scheduling, the problem of low transmission efficiency and rate when satellites share file resources is solved, and a more efficient File transfer.
Patent Information
- Application Number
- CN202410447294.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-15
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-04-15
AI Technical Summary
In the existing technology, when sharing file resources through satellite, the file transmission time is too long and the transmission rate is low, and there is no effective solution.
By receiving the file block acquisition request from the target terminal device, the satellite establishes the Dirichlet distribution function and normalization function, adjusts the proportion of transmission resources, optimizes file transfer task scheduling, and reduces the transmission tasks and data packet size of each source terminal device. Improve transmission efficiency and speed.
It effectively solves the problems of long file transfer time and low transfer rate, improves file transfer efficiency and rate, and reduces the load and waiting time of the source terminal device.
Smart Images

Figure CN118317446B
Abstract
Description
Technical Field
[0001] The present application relates to the field of satellite communication technology, and in particular to a file transmission task scheduling method based on satellite communication and an integrated electronic system. Background Art
[0002] With the continuous development of science and technology, the development of multi-user sharing of file resources is also becoming more and more rapid. Since multi-user sharing of file resources can help users obtain the required files, the sharing technology of file resources has been widely used. Figure 1 The schematic diagram of the terminal device implementing file sharing via satellite in the prior art is shown. Figure 1 As shown, the terminal devices 101-10m and the terminal devices 301-30m respectively establish user links for sending data information with the satellite 200, so that the terminal devices 101-10m and the terminal devices 301-30m can communicate with the satellite 200 respectively through the corresponding user links.
[0003] The terminal devices 101 ˜ 10m are, for example, source terminal devices that provide file resources, and the terminal devices 301 ˜ 30m are, for example, target terminal devices that request to obtain file resources.
[0004] When the terminal devices 301-30m send an acquisition request for acquiring file resources to the satellite 200, the satellite 200 forwards the acquisition request to all source terminal devices that can provide the file resources. Then the source terminal devices send the file resources corresponding to the acquisition request to the corresponding terminal devices 301-30m via the satellite 200. Thus, the file resources can be transmitted and shared via the satellite.
[0005] However, the characteristic of file transmission is that when a source terminal device receives multiple acquisition requests, it will package the file resources corresponding to the multiple acquisition requests and send them to the satellite at the same time, which will cause the transmission time to be too long and the transmission rate to be low because the data packets of the file resources are too large.
[0006] The satellite will also forward the acquisition request to all source terminal devices that can provide the file resource, which will increase the transmission tasks and overload the source terminal devices, leading to long transmission time and low transmission rate. In addition, the target terminal device will also have to wait for a long time.
[0007] With respect to the technical problems existing in the above-mentioned prior art of long file resource transmission time and low transmission rate when sharing file resources via satellite, no effective solution has been proposed yet. Summary of the invention
[0008] The embodiments of the present application provide a file transfer task scheduling method and an integrated electronic system based on satellite communication, so as to at least solve the technical problems existing in the prior art of long file resource transmission time and low transmission rate when sharing file resources via satellite.
[0009] According to one aspect of an embodiment of the present application, a method for scheduling file transfer tasks based on satellite communication is provided, which is applied to a satellite and includes: receiving an acquisition request for acquiring a file block of a file sent by a target terminal device; establishing a file transfer task according to the acquisition request, and counting the number of file transfer tasks corresponding to each file in the current period, wherein one file includes multiple file blocks; determining a corresponding Dirichlet distribution function according to the number of file transfer tasks corresponding to each file, and determining a corresponding normalization function according to the Dirichlet distribution function, wherein the normalization function is used to normalize the value of the output result of the Dirichlet distribution function; inputting a first weight value corresponding to the file transfer task of each file into the normalization function to determine the normalization function value, wherein the first weight value is used to indicate the transmission resource occupancy ratio corresponding to the file transfer task of each file in the previous period; when it is determined according to the normalization function value that the transmission resource occupancy ratio needs to be adjusted, adjusting the transmission resource occupancy ratio according to the normalization function value and the number of file transfer tasks for each file to generate a corresponding second weight value; and scheduling the file transfer task according to the second weight value.
[0010] According to another aspect of an embodiment of the present application, there is also provided an integrated electronic system, including a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the above method.
[0011] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, the steps of the above method are implemented.
[0012] According to another aspect of the embodiments of the present application, a computer program product is also provided, including a computer program / instruction, and the steps of the above method are implemented when the computer program / instruction is executed by a processor.
[0013] In an embodiment of the present application, the satellite establishes a Dirichlet distribution function according to the number of file transfer tasks corresponding to each file, and generates a corresponding normalization function according to the Dirichlet distribution function, thereby using the normalization function to determine whether the transmission resource occupancy ratio corresponding to the file transfer task in the previous cycle is compatible with the number of file transfer tasks in the current cycle, thereby determining whether the transmission resource occupancy ratio needs to be adjusted according to the degree of adaptation. Afterwards, if the transmission resource occupancy ratio needs to be adjusted, according to the number of file transfer tasks for each file in the current cycle, the transmission resource occupancy ratio of the previous cycle is adjusted to match the transmission resource occupancy ratio of the file transfer task in the current cycle, so that the transmission resource occupancy ratio of the current cycle is suitable for the number of file transfer tasks.
[0014] The satellite sends a request for obtaining file resources to the corresponding source terminal device that can provide file resources (i.e., file blocks) according to the file transfer task, that is, one file transfer task corresponds to one source terminal device, and there is no need to allocate one file transfer task to multiple source terminal devices at the same time. As a result, each source terminal device greatly reduces the file transfer task, and also correspondingly reduces the data volume of a single data packet sent, thereby improving the efficiency of file transfer and saving time.
[0015] And the satellite sends a request for obtaining file resources to the source terminal device according to the transmission resource occupancy ratio of the current cycle, so that the source terminal device can send data packets to the satellite in small quantities for multiple times, thereby improving the transmission rate and avoiding the problem of low transmission rate caused by too large data packets. This solves the technical problems of long file resource transmission time and low transmission rate when sharing file resources through satellites in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0017] Figure 1 A schematic diagram showing an existing file resource sharing system;
[0018] Figure 2 is a hardware structure block diagram for implementing the satellite according to Embodiment 1 of the present application;
[0019] Figure 3 A schematic diagram showing the communication between the terminal device and the satellite according to an embodiment of the present application is shown.
[0020] Figure 4 Another schematic diagram showing the communication between the terminal device and the satellite described in an embodiment of the present application.
[0021] Figure 5 is a flowchart of a method for scheduling file transfer tasks based on satellite communication according to the first aspect of Embodiment 1 of the present application;
[0022] Figure 6 is a schematic diagram of file blocks corresponding to each file according to the first aspect of Embodiment 1 of the present application; and
[0023] Figure 7 It is a schematic diagram of a data packet according to the first aspect of Example 1 of the present application. DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the technical solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application.
[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application 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 interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] Example 1
[0027] According to this embodiment, a method embodiment of a file transfer task scheduling method based on satellite communication is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0028] Figure 2 It further shows Figure 1 Schematic diagram of the hardware architecture of the satellite. Figure 2As shown, satellite 200 includes an integrated electronic system, which includes: a processor, a memory, a bus management module and a communication interface. The memory is connected to the processor, so that the processor can access the memory, read the program instructions stored in the memory, read data from the memory or write data to the memory. The bus management module is connected to the processor and is also connected to a bus such as a CAN bus. Therefore, the processor can communicate with the satellite-borne peripherals connected to the bus through the bus managed by the bus management module. In addition, the processor is also connected to communication devices such as cameras, star sensors, measurement and control transponders, and data transmission equipment via the communication interface. It can be understood by those skilled in the art that Figure 2 The structure shown is for illustration only and does not limit the structure of the above electronic device. Figure 2 More or fewer components as shown, or with Figure 2 Different configurations are shown.
[0029] It should be noted that Figure 2 The one or more processors and / or other data processing circuits shown in the figure may generally be referred to as "data processing circuitry" herein. The data processing circuitry may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuitry may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computing device. As involved in the embodiments of the present application, the data processing circuitry serves as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0030] Figure 2 The memory shown in the figure can be used to store software programs and modules of application software, such as the program instruction / data storage device corresponding to the time scheduling method applied to the satellite system in the embodiment of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, the time scheduling method applied to the satellite system of the above-mentioned application program is realized. The memory may include a high-speed random access memory and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
[0031] It should be noted that, in some optional embodiments, the above Figure 2 The devices shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware elements and software elements. Figure 2 This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the above described apparatus.
[0032] Figure 3FIG. 1 is a schematic diagram showing the communication between the terminal devices 101 to 10m and the terminal devices 301 to 30m and the satellite 200 according to the embodiment of the present application. Figure 3 As shown, a user link for transmitting data is established between the terminal devices 101-10m and the terminal devices 301-30m and the satellite 200, so that the satellite 200 obtains files from the terminal devices 101-10m and sends file blocks to the terminal devices 301-30m through the user link.
[0033] It should be noted that the terminal devices 101-10m and the terminal devices 301-30m can be used as target terminal devices for requesting to obtain file blocks, or as source terminal devices for providing file blocks. For ease of understanding, in this embodiment, only the terminal devices 301-30m are used as target terminal devices, and the terminal devices 101-10m are used as source terminal devices to illustrate the process of transmitting file blocks.
[0034] Figure 4 Another schematic diagram showing the communication between the terminal devices 101 ˜ 10m and the terminal devices 301 ˜ 30m and the satellite 200 according to an embodiment of the present application is shown.
[0035] refer to Figure 4 As shown, the terminal devices 101-10m are provided with a file block scheduling module and a file block transmission module.
[0036] The file block scheduling module is used to schedule corresponding file blocks to generate data packets.
[0037] The file block transmission module is used to transmit the data packet to the satellite 200 .
[0038] The satellite 200 is provided with a file transmission statistics module 210 , a file transmission adjustment module 220 , a task scheduling module 230 and a file transmission module 240 .
[0039] The file transmission statistics module 210 of the satellite 200 is used to count the number of file transmission tasks corresponding to each file, that is, the number of times each file block is requested.
[0040] The file transmission adjustment module 220 of the satellite 200 is used to construct a Dirichlet distribution function according to the number of file transmission tasks corresponding to each file, and then determine a normalization function according to the Dirichlet distribution function, and then determine the transmission resource occupancy ratio (i.e., the second weight value) of the current period through the normalization function.
[0041] The task scheduling module 230 of the satellite 200 is used to schedule the file transmission task according to the second weight value, and send the acquisition request of the corresponding file block to the corresponding source terminal device.
[0042] The file transmission module 240 of the satellite 200 is used to transmit the file blocks to the target terminal device.
[0043] Under the above operating environment, according to the first aspect of this embodiment, a method for scheduling file transmission tasks based on satellite communication is provided. The method comprises: Figure 4 The satellite 200 shown in FIG. Figure 5 A schematic diagram showing the process of the method is shown in FIG. Figure 5 As shown, the method includes:
[0044] S502: receiving an acquisition request for acquiring a file block of a file sent by a target terminal device;
[0045] S504: Establishing a file transfer task according to the acquisition request, and counting the number of file transfer tasks corresponding to each file in the current period, where one file includes multiple file blocks;
[0046] S506: determining a corresponding Dirichlet distribution function according to the number of file transfer tasks corresponding to each file, and determining a corresponding normalization function according to the Dirichlet distribution function, wherein the normalization function is used to normalize the value of the output result of the Dirichlet distribution function;
[0047] S508: Inputting a first weight value corresponding to the file transmission task of each file into a normalization function to determine a normalization function value, wherein the first weight value is used to indicate a transmission resource occupancy ratio corresponding to the file transmission task of each file in the previous period;
[0048] S510: When it is determined according to the normalized function value that the transmission resource occupancy ratio needs to be adjusted, the transmission resource occupancy ratio is adjusted according to the normalized function value and the number of file transmission tasks of each file, and a corresponding second weight value is generated; and
[0049] S512: Schedule the file transfer task according to the second weight value.
[0050] Specifically, in the current cycle T, the terminal devices 301-30m (i.e., the target terminal devices) respectively send acquisition requests for acquiring file blocks of files 1-file k to the satellite 200. Files 1-file k may be provided by the terminal devices 101-10m. Table 1 shows the files that the source terminal device may provide.
[0051] Table 1
[0052]
[0053]
[0054] The terminal device 101 can provide file 1, file 2 and file 3; the terminal device 102 can provide file 3, file 5 and file 6; ...; the terminal device 10m can only provide file K. The multiple terminal devices store the same files that can be provided.
[0055] And refer to Figure 6 As shown, terminal devices 101-10m divide files 1-file k into multiple file blocks of the same size through a preset file transfer protocol. File 1 has n1 file blocks, including file block 1_1, file block 1_2, ..., file block 1_n1; file 2 has n2 file blocks, including file block 2_1, file block 2_2, ..., file block 2_n2; ...; file k has n2 file blocks, including file block k_1, file block k_2, ..., file block k_n k .
[0056] For example, terminal device 301 (i.e., target terminal device) sends an acquisition request for acquiring file block 1_1 of file 1 and an acquisition request for acquiring file block 2_1 of file 2 to satellite 200; terminal device 302 sends an acquisition request for acquiring file block 1_2 of file 1 to satellite 200; ...; terminal device 30m sends an acquisition request for acquiring file block 1_1 of file 1 and an acquisition request for acquiring file block k_1 of file k to satellite 200.
[0057] Further, the satellite 200 receives an acquisition request for acquiring file blocks of files 1 to file k, establishes a file transfer task for each acquisition request, determines the transmission status of the file transfer task, and then records the file transfer task and the corresponding status to the file transfer task statistics table. The transmission status of the file transfer task includes: completed, uncompleted, and transmitting. And the initial transmission status of the file transfer task is uncompleted.
[0058] Furthermore, the satellite 200 counts the number Num of file transmission tasks corresponding to each file i in the current period T through the file transmission statistics module 210. i In the current cycle T, the number of file transfer tasks corresponding to each file i is Num i Including: the number of file transfer tasks corresponding to each file i that have not been completed in the previous cycle T' NT' i And the number NT of file transfer tasks corresponding to each file i established in the current cycle T i .
[0059] More specifically, the satellite 200 counts the number NT of file transmission tasks corresponding to each file i established according to the acquisition request received in the current period T through the file transmission statistics module 210.i , and count the number of file transfer tasks corresponding to each file i that have not been completed in the previous cycle T' NT' i . Where i = 1 ~ k. And the number NT' i Can be 0.
[0060] Then the satellite 200 uses the file transmission statistics module 210 to calculate the number NT corresponding to each file i. i and quantity NT' i The sum of is taken as the number Num of file transfer tasks corresponding to each file i in the current cycle T i , and the number Num i Recorded in the file transfer task statistics table. For example, the number of file transfer tasks Num1 corresponding to file 1 is q1; the number of file transfer tasks Num2 corresponding to file 2 is q2; ...; the number of file transfer tasks Num corresponding to file k is q1; k Q k Table 2 shows the file transfer task statistics.
[0061] Table 2
[0062]
[0063] Further, the satellite 200 obtains, through the file transmission adjustment module 220:
[0064] α1=q1+1;
[0065] α2=q2+1; ...
[0067] α k =q k +1.
[0068] This generates the corresponding Dirichlet distribution function:
[0069]
[0070] where x1,x2,...,x k are greater than or equal to 0, and
[0071] Therefore, the satellite 200 constructs a corresponding Dirichlet distribution function according to the number of file transmission tasks corresponding to each file through the file transmission adjustment module 220.
[0072] Furthermore, the satellite 200 performs normalization processing on the Dirichlet distribution function through the file transmission adjustment module 220, that is, maps the output result of the Dirichlet distribution in the space of 0 to 1, thereby determining the corresponding normalization function g(x1, x2, ..., x k ).
[0073] Furthermore, the satellite 200 obtains the first weight values w1-w1 corresponding to the file transmission tasks of each file through the file transmission adjustment module 220. k .
[0074] The first weight value is used to indicate the transmission resource occupancy ratio corresponding to the file transmission task of each file in the previous cycle T', and can also represent the ratio of the number of file block units corresponding to each file in a single transmission. One file block unit can be a group of file blocks or a file block. This embodiment takes a file block unit as a file block as an example for description.
[0075] More specifically, in the previous period T', the satellite 200 sends the terminal devices 101-10m (ie, the source terminal devices) according to the first weight values w1-w k Obtain the corresponding file blocks. As shown in Table 1, the files that the terminal device 101 (i.e., the source terminal device) can provide include files 1 to 3, for example, the first weight values w1 to w3 of files 1 to 3 are 1:2:3. Thus, the satellite 200 simultaneously obtains 1 file block of file 1, 2 file blocks of file 2, and 3 file blocks of file 3 from the terminal device 101.
[0076] Furthermore, the satellite 200 uses the file transmission adjustment module 220 to obtain the first weight values w1 to w k Substitute into the normalization function g(x1,x2,...,x k ), and obtain the corresponding normalized function value g=g(w1,w2,...,w k ).
[0077] The normalized function value reflects the number of file transfer tasks q1~q corresponding to each file. k , the first weight value w1~w k The closer the value is to 1, the higher the degree of adaptation; otherwise, the lower the degree of adaptation.
[0078] Further, the satellite 200 determines whether it is necessary to adjust the transmission resource occupancy ratio (i.e., the first weight value) determined in the previous period T' according to the calculated normalized function value g through the file transmission adjustment module 220, thereby generating the currently required transmission resource occupancy ratio (i.e., the second weight value). For example, the satellite 200 compares the normalized function value g with a predetermined threshold value (e.g., 0.8) through the file transmission adjustment module 220. When the normalized function value g is less than the predetermined threshold value, it is determined that the transmission resource occupancy ratio (i.e., the first weight value) needs to be adjusted. When the normalized function value g is greater than or equal to the predetermined threshold value, it is determined that the transmission resource occupancy ratio (i.e., the first weight value) does not need to be adjusted. When the transmission resource occupancy ratio (i.e., the first weight value) does not need to be adjusted, the first weight value is used as the second weight value. The predetermined threshold value can be determined based on historical data, or can be set by staff based on actual conditions, and is not specifically limited here.
[0079] Therefore, when the satellite 200 determines through the file transmission adjustment module 220 that the transmission resource occupancy ratio (ie, the first weight value) determined in the previous period T' needs to be adjusted according to the normalized function value g, the number of file transmission tasks q1 to q k The proportion of all file transfer tasks in the current cycle T is used as the third weight value y1-y corresponding to each file. k .in,
[0080]
[0081] Where j=1~k.
[0082] Therefore, y1~y k Corresponding to files 1 to k respectively, and y1 to y k The sum is 1. Then, the satellite 200 uses the normalized function value g and a preset data fusion formula to fuse the first weight value W and the third weight value Y through the file transmission adjustment module 220 to generate a second weight value Z. The second weight value is used to indicate the transmission resource occupancy ratio required in the current cycle T. The data fusion formula for calculating the second weight value Z is:
[0083] Z=Y+g*(WY) (Formula 3)
[0084] Where Z = [z1,z2,...,z k ] T ; Y = [y1,y2,...,y k ] T ; and W = [w1,w2,...,w k ] T .
[0085] Furthermore, the satellite 200 forwards the acquisition request for acquiring the file block sent by the terminal devices 301 - 30m to the source terminal device that can provide the corresponding file block according to the second weight value through the task scheduling module 230 .
[0086] Taking files 1 to 3 as an example, the satellite 200 determines the source terminal device that can provide files 1 to 3 through the task scheduling module 230. For example, the terminal device 101 (i.e., the source terminal device) can provide files 1 to 3, and the terminal device 102 (i.e., the source terminal device) can provide file 3. The second weight values z1 to z3 corresponding to files 1 to 3 are 1:1:4.
[0087] Thus, the satellite 200 randomly obtains 1 acquisition request for acquiring the file block of file 1, randomly obtains 1 acquisition request for acquiring the file block of file 2, and randomly obtains 4 acquisition requests for acquiring the file block of file 3 from the file transfer tasks with the status of incomplete in the file transfer task statistics table through the task scheduling module 230 according to the second weight value 1:1:4. Then, the satellite 200 forwards the above 6 acquisition requests to the terminal device 101 (i.e., the source terminal device) through the task scheduling module 230, and modifies the task status of the above 6 acquisition requests to transmitting.
[0088] Then, the satellite 200 randomly obtains 4 acquisition requests for acquiring file blocks of file 3 from the file transfer tasks with an unfinished status in the file transfer statistics table through the task scheduling module 230, and then transmits the 4 acquisition requests to the terminal device 102 (ie, the source terminal device).
[0089] Furthermore, after receiving the file block acquisition request respectively, the terminal device 101 (ie, the source terminal device) and the terminal device 102 (ie, the source terminal device) schedule and package the corresponding file blocks according to the file block acquisition request through the corresponding file block scheduling module.
[0090] For example, the terminal device 101 schedules and packages the corresponding file blocks according to the acquisition request of the file blocks through the file block scheduling module, and the generated data packet is as follows: Figure 7 The file block acquisition request includes: file block 1_1 of file 1; file block 2_1 of file 2; file blocks 3_1, 3_1, 3_2, and 3_3 of file 3.
[0091] Furthermore, the terminal device 101 (ie, the source terminal device) and the terminal device 102 (ie, the source terminal device) send the data packets generated by packaging to the satellite 200 through the file block transmission module.
[0092] Furthermore, the satellite 200, through the task scheduling module 230, randomly obtains the acquisition request of the file block of the corresponding file from the file transfer task in the file transfer task statistics table that is incomplete according to the second weight value 1:1:4, and sends the acquisition request to the terminal device 101 (i.e., the source terminal device) and the terminal device 102 (i.e., the source terminal device), thereby sending the acquisition request of the file block to the source terminal device according to the second weight value for multiple times until all the file transfer tasks in the file transfer task statistics table are completed or the current cycle T ends. Wherein, when the current cycle T has ended but the file transfer tasks have not been completed, the unfinished file transfer tasks are transferred to the next cycle T" for execution. In addition, in each cycle, the satellite 200 establishes a Dirichlet distribution function according to the number of file transfer tasks.
[0093] Furthermore, after the satellite 200 receives the data packet sent once by the source terminal device 101~10m through the task scheduling module 230, it disassembles the data packet through the file transfer module 240, and according to the acquisition request of the file block of the target terminal device, sends the disassembled file blocks to the corresponding target terminal device in sequence through the file transfer module 240.
[0094] In addition, in another embodiment, due to the excessive number of file types or file transmission tasks, the calculation amount of satellite 200 is too large and the transmission efficiency is reduced. To solve this problem, satellite 200 will establish multiple corresponding Dirichlet distribution functions according to the file type.
[0095] Specifically, the satellite 200 groups the files to generate a plurality of combinations, and then counts the number of file transfer tasks corresponding to the files in each combination through the file transfer statistics module 210, and then establishes a corresponding Dirichlet distribution function according to the number of file transfer tasks corresponding to the files in each combination through the file transfer adjustment module 220. One combination corresponds to one Dirichlet distribution function.
[0096] The satellite 200 divides files 1 to k into L groups, each group has h files, and the number of file transmission tasks corresponding to the rth file in the fth group is q e,r Among them, e=1~L, r=1~h.
[0097] For example, for the first combination:
[0098] The number of file transfer tasks corresponding to the first file in the first combination is q 1,1 indivual;
[0099] The number of file transfer tasks corresponding to the second file in the first combination is q1,2 indivual;
[0100] …
[0101] The number of file transfer tasks corresponding to the hth file in the first combination is q 1,h indivual.
[0102] Further, the satellite 200 obtains, through the file transmission adjustment module 220:
[0103] α 1,1 =q 1,1 +1;
[0104] α 1,2 =q 1,2 +1; ...
[0106] α 1,h =q 1,h +1.
[0107] This generates the corresponding Dirichlet distribution function:
[0108]
[0109] where x 1,1 ,x 1,2 ,...,x 1,h are both greater than or equal to 0, and
[0110] Therefore, the satellite 200 constructs a corresponding Dirichlet distribution function f1 according to the number of file transmission tasks corresponding to each file in the first combination through the file transmission adjustment module 220.
[0111] For the second combination:
[0112] The number of file transfer tasks corresponding to the first file of the second combination is q 2,1 indivual;
[0113] The number of file transfer tasks corresponding to the second file in the second combination is q 2,2 indivual;
[0114] …
[0115] The number of file transfer tasks corresponding to the hth file in the second combination is q 2,h indivual.
[0116] Further, the satellite 200 obtains, through the file transmission adjustment module 220:
[0117] α 2,1 =q 2,1 +1;
[0118] α 2,2 =q 2,2 +1; ...
[0120] α 2,h =q 2,h +1.
[0121] This generates the corresponding Dirichlet distribution function:
[0122]
[0123] where x 2,1 ,x 2,2 ,...,x 2,h are both greater than or equal to 0, and
[0124] Therefore, the satellite 200 constructs a corresponding Dirichlet distribution function f2 according to the number of file transmission tasks corresponding to each file in the second combination through the file transmission adjustment module 220.
[0125] And so on, for the Lth combination:
[0126] The number of file transfer tasks corresponding to the first file of the Lth combination is q L,1 indivual;
[0127] The number of file transfer tasks corresponding to the second file of the Lth combination is q L,2 indivual;
[0128] …
[0129] The number of file transfer tasks corresponding to the hth file in the Lth combination is q L,h indivual.
[0130] Further, the satellite 200 obtains, through the file transmission adjustment module 220:
[0131] α L,1 =q L,1 +1;
[0132] α L,2 =q L,2 +1; ...
[0134] α L,h =q L,h +1.
[0135] This generates the corresponding Dirichlet distribution function:
[0136]
[0137] where x L,1 ,x L,2 ,...,x L,h are both greater than or equal to 0, and
[0138] Thus, the satellite 200 constructs a corresponding Dirichlet distribution function f according to the number of file transmission tasks corresponding to each file in the Lth combination through the file transmission adjustment module 220. L .
[0139] Furthermore, the satellite 200 uses the file transmission adjustment module 220 according to the Dirichlet distribution function f r Generate the corresponding normalized function g r (r = 1 ~ L), so as to normalize the function g according to the normalization function r It is determined whether the corresponding first weight value needs to be adjusted. If adjustment is required, the task adjustment module 220 generates second weight values corresponding to each combination, and then the file transfer module 240 transfers the file blocks according to the second weight values corresponding to each combination.
[0140] It should be noted that the rth file mentioned above is not equivalent to file r. For example, the first file is not equivalent to file 1. The first file only represents the file with the order of 1 in each combination, and does not specifically refer to the file type.
[0141] For example, if h=3, the files in the first combination include file 1, file 2, and file 3, and the files in the second combination include file 4, file 5, and file 6. Therefore, the first file in the first combination is file 1, and the first file in the second combination is file 4.
[0142] As described in the background technology, the characteristic of file transmission is that when a source terminal device receives multiple acquisition requests, it will package the file resources corresponding to the multiple acquisition requests and send them to the satellite at the same time, which will cause the problem of long transmission time and low transmission rate because the data packet of the file resource is too large. In addition, the satellite will also forward the acquisition request to all source terminal devices that can provide the file resource, which increases the transmission tasks of the source terminal device and causes excessive load, thereby causing the problem of long transmission time and low transmission rate. In addition, the target terminal device also has to wait for a long time.
[0143] In view of the technical problems described above, through the technical solutions of the embodiments of the present application, the satellite establishes a Dirichlet distribution function according to the number of file transfer tasks corresponding to each file, and generates a corresponding normalization function according to the Dirichlet distribution function, so as to use the normalization function to determine whether the transmission resource occupancy ratio corresponding to the file transfer task in the previous cycle is compatible with the number of file transfer tasks in the current cycle, and then determine whether the transmission resource occupancy ratio needs to be adjusted according to the degree of adaptation. Afterwards, if the transmission resource occupancy ratio needs to be adjusted, according to the number of file transfer tasks for each file in the current cycle, the transmission resource occupancy ratio of the previous cycle is adjusted to the transmission resource occupancy ratio that meets the file transfer task in the current cycle, so that the transmission resource occupancy ratio of the current cycle is suitable for the number of file transfer tasks.
[0144] The satellite sends a request for obtaining file resources to the corresponding source terminal device that can provide file resources (i.e., file blocks) according to the file transfer task, that is, one file transfer task corresponds to one source terminal device, and there is no need to allocate one file transfer task to multiple source terminal devices at the same time. As a result, each source terminal device greatly reduces the file transfer task, and also correspondingly reduces the data volume of a single data packet sent, thereby improving the efficiency of file transfer and saving time.
[0145] And the satellite sends a request for obtaining file resources to the source terminal device according to the transmission resource occupancy ratio of the current cycle, so that the source terminal device can send data packets to the satellite in small quantities for multiple times, thereby improving the transmission rate and avoiding the problem of low transmission rate caused by too large data packets. This solves the technical problems of long file resource transmission time and low transmission rate when sharing file resources through satellites in the prior art.
[0146] Optionally, the operation of determining the corresponding Dirichlet distribution function according to the number of file transfer tasks corresponding to each file includes: determining a distribution parameter of the Dirichlet distribution function according to the number of file transfer tasks; and determining the corresponding Dirichlet distribution function according to the determined distribution parameter.
[0147] Specifically, referring to the above, the satellite 200 uses the file transmission adjustment module 220 to adjust the number of file transmission tasks q1 to q2 corresponding to each file. k , determine the distribution parameters α1~α of the Dirichlet distribution function k Then, the satellite 200 uses the file transmission adjustment module 220 based on the distribution parameters α1~α k , construct the Dirichlet distribution function shown in Formula 1.
[0148] Thus, the Dirichlet function value reflects the number of file transfer tasks q1~q corresponding to each file.k , the weight value w1~w k The higher the value, the higher the degree of adaptation; otherwise, the lower the degree of adaptation.
[0149] Optionally, the operation of determining the corresponding Dirichlet distribution function according to the number of file transfer tasks corresponding to each file further includes: grouping each file to generate multiple combinations; and determining the corresponding Dirichlet distribution function according to the number of file transfer tasks for each file corresponding to each combination.
[0150] Optionally, after the first weight value corresponding to the file transfer task of each file is input into the normalization function and the operation of determining the normalization function value is performed, it also includes: comparing the normalization function value with a preset threshold; and when the normalization function value is greater than or equal to the preset threshold, determining that the transmission resource occupancy ratio needs to be adjusted.
[0151] Optionally, the method further includes: when the normalized function value is less than a preset threshold, determining that there is no need to adjust the transmission resource occupancy ratio; and using the first weight value as the second weight value.
[0152] Optionally, the transmission resource occupancy ratio is adjusted according to the normalized function value and the number of file transfer tasks for each file to generate an operation of a corresponding second weight value, including: determining the proportion of the number of file transfer tasks for each file in all file transfer tasks in the current period as a third weight value; and performing data fusion of the first weight value and the third weight value according to the normalized function value to generate a second weight value.
[0153] Optionally, the operation of scheduling the file transfer task according to the second weight value includes: forwarding a corresponding acquisition request to a source terminal device according to the second weight value, wherein the source terminal device is used to indicate a terminal device that provides the file; receiving a data packet sent by the source terminal device according to the acquisition request, wherein the data packet is composed of file blocks corresponding to the acquisition request; and sending the file blocks in the data packet to the corresponding target terminal device.
[0154] In addition, reference Figure 2 As shown, according to the second aspect of this embodiment, there is provided an integrated electronic system, including a memory, a processor and a computer program stored in the memory, and the processor executes the computer program to implement the steps of the above method.
[0155] In addition, reference Figure 2 As shown, according to the third aspect of this embodiment, a computer-readable storage medium is provided, on which a computer program / instruction is stored, and the steps of the above method are implemented when the computer program / instruction is executed by a processor.
[0156] In addition, reference Figure 2 As shown, according to the fourth aspect of this embodiment, a computer program product is provided, including a computer program / instruction, and the steps of the above method are implemented when the computer program / instruction is executed by a processor.
[0157] Therefore, according to this embodiment, the satellite establishes a Dirichlet distribution function according to the number of file transmission tasks corresponding to each file, and generates a corresponding normalization function according to the Dirichlet distribution function, so as to use the normalization function to determine whether the transmission resource occupancy ratio corresponding to the file transmission task of the previous cycle is adapted to the number of file transmission tasks of the current cycle, and then determine whether the transmission resource occupancy ratio needs to be adjusted according to the degree of adaptation. Afterwards, if the transmission resource occupancy ratio needs to be adjusted, according to the number of file transmission tasks of each file in the current cycle, the transmission resource occupancy ratio of the previous cycle is adjusted to match the transmission resource occupancy ratio of the file transmission task of the current cycle, so that the transmission resource occupancy ratio of the current cycle is suitable for the number of file transmission tasks.
[0158] The satellite sends a request for obtaining file resources to the corresponding source terminal device that can provide file resources (i.e., file blocks) according to the file transfer task, that is, one file transfer task corresponds to one source terminal device, and there is no need to allocate one file transfer task to multiple source terminal devices at the same time. As a result, each source terminal device greatly reduces the file transfer task, and also correspondingly reduces the data volume of a single data packet sent, thereby improving the efficiency of file transfer and saving time.
[0159] And the satellite sends a request for obtaining file resources to the source terminal device according to the transmission resource occupancy ratio of the current cycle, so that the source terminal device can send data packets to the satellite in small quantities for multiple times, thereby improving the transmission rate and avoiding the problem of low transmission rate caused by too large data packets. This solves the technical problems of long file resource transmission time and low transmission rate when sharing file resources through satellites in the prior art.
[0160] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0161] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0162] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0163] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0164] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0165] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0166] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0167] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0168] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A file transfer task scheduling method based on satellite communication, applied to satellite, characterized in that: include: Receiving an acquisition request for acquiring a file block of a file sent by a target terminal device; Establishing a file transfer task according to the acquisition request, and counting the number of file transfer tasks corresponding to each file in the current period, wherein one file includes multiple file blocks; Determining a corresponding Dirichlet distribution function according to the number of file transfer tasks corresponding to each file, and determining a corresponding normalization function according to the Dirichlet distribution function, wherein the normalization function is used to normalize the value of the output result of the Dirichlet distribution function; Inputting a first weight value corresponding to the file transfer task of each file into the normalization function to determine a normalization function value, wherein the first weight value is used to indicate a transmission resource occupancy ratio corresponding to the file transfer task of each file in a previous period; In the case where it is determined according to the normalized function value that the transmission resource occupancy ratio needs to be adjusted, adjusting the transmission resource occupancy ratio according to the normalized function value and the number of file transmission tasks of each file, and generating a corresponding second weight value; as well as The file transfer task is scheduled according to the second weight value.
2. The method according to claim 1, characterized in that The operation of determining the corresponding Dirichlet distribution function according to the number of file transfer tasks corresponding to each file includes: Determining a distribution parameter of the Dirichlet distribution function according to the number of the file transfer tasks; and According to the determined distribution parameters, the corresponding Dirichlet distribution function is determined.
3. The method according to claim 1, characterized in that The operation of determining the corresponding Dirichlet distribution function according to the number of file transfer tasks corresponding to each file also includes: Grouping the files to generate multiple combinations; and According to the number of file transmission tasks of each file corresponding to each combination, a corresponding Dirichlet distribution function is determined.
4. The method according to claim 1, characterized in that: After the operation of inputting the first weight value corresponding to the file transfer task of each file into the normalization function and determining the normalization function value, the method further includes: comparing the normalized function value with a preset threshold; and When the normalized function value is less than the preset threshold, it is determined that the transmission resource occupancy ratio needs to be adjusted.
5. The method according to claim 4, characterized in that Also includes: When the normalized function value is greater than or equal to the preset threshold, it is determined that there is no need to adjust the transmission resource occupancy ratio; as well as The first weight value is used as the second weight value.
6. The method according to claim 1, characterized in that The operation of adjusting the transmission resource occupancy ratio according to the normalized function value and the number of file transmission tasks of each file to generate a corresponding second weight value includes: determining a ratio of the number of file transfer tasks for each file to all file transfer tasks in the current period as a third weight value; and The first weight value and the third weight value are data-fused according to the normalized function value to generate the second weight value.
7. The method according to claim 1, characterized in that The operation of scheduling the file transfer task according to the second weight value includes: forwarding a corresponding acquisition request to a source terminal device according to the second weight value, wherein the source terminal device is used to indicate a terminal device that provides the file; receiving a data packet sent by the source terminal device according to the acquisition request, wherein the data packet is composed of a file block corresponding to the acquisition request; and The file blocks in the data packet are sent to the corresponding target terminal device.
8. An integrated electronic system comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method of claim 1.
9. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: The computer program / instructions implement the steps of the method of claim 1 when executed by a processor.
10. A computer program product comprising a computer program / instructions, characterized in that The computer program / instructions implement the steps of the method of claim 1 when executed by a processor.
