File transfer method and apparatus based on dynamic priority scheduling

By employing dynamic priority scheduling and intelligent breakpoint resume mechanisms, the problems of high file transfer latency and failure rate in the bank's internal management system have been solved, achieving efficient transmission of urgent files and system stability.

CN123123334APending Publication Date: 2026-11-17AGRICULTURAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611441331.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-16
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

The high latency and failure rate of file transfers in bank internal management systems, caused by complex file transfer dependencies and network fluctuations, cannot be effectively resolved by existing technologies.

Method used

A file transfer method based on dynamic priority scheduling is adopted. By obtaining file attribute information and downstream system status, the transfer priority score is calculated, the file queue is dynamically sorted, and combined with an intelligent breakpoint resume mechanism, the fine sorting and reliable recovery of files are achieved.

Benefits of technology

It improves file transfer efficiency and success rate, reduces operation and maintenance costs, ensures priority transmission of urgent files, and enables reliable recovery during network fluctuations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123123334A_ABST
    Figure CN123123334A_ABST
Patent Text Reader

Abstract

This invention discloses a file transfer method and apparatus based on dynamic priority scheduling. The method includes: upon receiving a file to be transferred, acquiring file attribute information of the file to be transferred, including file type, file timeliness requirements, and file size; calculating a transfer priority score for the file to be transferred based on the file attribute information and the current system status of the downstream system; sorting the files to be transferred and historical files to be transferred in the transfer task queue according to the transfer priority score to obtain the current transfer task queue; acquiring the real-time status of the downstream system, and transferring the files according to the file sorting in the current transfer task queue based on the real-time status. This invention solves the technical problems of high transmission delays and failure rates caused by complex file transfer dependencies and network fluctuations in bank internal management systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer network communication technology, and more specifically, to a file transfer method and apparatus based on dynamic priority scheduling. Background Technology

[0002] Internal bank management systems (such as clearing and reconciliation systems) frequently exchange documents (such as transaction reconciliation documents and report documents) with core systems, payment channels, and external partners. These systems have the following characteristics: Non-real-time: File processing is mostly batch processing with diverse timeliness requirements; Complex dependencies: File transmission requires waiting for downstream systems to be ready (such as partner systems opening interfaces every morning); Sensitive to network fluctuations: Cross-institutional file transmission is easily affected by dedicated line network jitter.

[0003] These characteristics lead to frequent manual intervention, high transmission failure rates, and the inability to prioritize urgent files. While existing technologies offer solutions to address transmission delays for urgent files, their fixed-priority approach (e.g., setting liquidation files as high priority) cannot dynamically adjust based on real-time business conditions (e.g., sudden liquidation demands). Furthermore, to address the high transmission failure rate, existing technologies include standard breakpoint resumption techniques (which only record breakpoints without integrity verification or status awareness), but lack downstream system status awareness, potentially leading to secondary failures after network recovery due to downstream system overload. Regarding the high cost of manual maintenance, existing technologies rely on scheduled task-based file transfers (e.g., daily fixed-time transfers), but these depend on manual monitoring and retries, making them particularly inefficient in cross-system dependency scenarios.

[0004] There is currently no effective solution to the above problems. Summary of the Invention

[0005] This invention provides a file transfer method and apparatus based on dynamic priority scheduling, which at least solves the technical problems of high transmission delay and failure rate caused by complex file transfer dependencies and network fluctuations in bank internal management systems in related technologies.

[0006] According to one aspect of the present invention, a file transfer method based on dynamic priority scheduling is provided, comprising: after each receipt of a file to be transferred, obtaining file attribute information of the file to be transferred, wherein the file attribute information includes file type, file timeliness requirement time, and file size; calculating a transfer priority score of the file to be transferred based on the file attribute information and the current system state of the downstream system; sorting the files to be transferred and historical files to be transferred in the transfer task queue according to the transfer priority score to obtain a current transfer task queue, wherein the historical files to be transferred are files that have been cached in the transfer task queue before the file to be transferred; obtaining the real-time state of the downstream system, and transferring the file according to the file sorting in the current transfer task queue based on the real-time state.

[0007] Optionally, obtaining the file attribute information of the file to be transmitted includes: parsing the file to be transmitted to obtain a parsing result; extracting the file type, the time requirement for file validity, and the file size of the file to be transmitted from the parsing result to obtain the file attribute information.

[0008] Optionally, calculating the transmission priority score of the file to be transmitted based on the file attribute information and the current system state of the downstream system includes: calculating the transmission priority score according to the file attribute information and the current system state of the downstream system using a dynamic priority calculation formula, wherein the dynamic priority calculation formula is: , This indicates the transmission priority score. This indicates the base weight corresponding to the file type of the file to be transmitted. This represents the adjustment coefficient. This represents the time difference between the required time for the document's timeliness and the current time. Indicates the total transmission time specified in the service. This represents the downstream dependency status score corresponding to the current system state.

[0009] Optionally, obtaining the real-time status of the downstream system includes: periodically collecting the interface response time, CPU load rate, and business time restriction information of the downstream system through an interface probe or heartbeat mechanism; calculating the status score of the downstream system based on the interface response time, CPU load rate, and business time restriction information; and mapping the status score to the real-time status.

[0010] Optionally, calculating the status score of the downstream system based on the interface response time, the CPU load rate, and the service period restriction information includes: mapping the interface response time to a first value through normalization; mapping the CPU load rate to a second value based on the relationship between the CPU load rate and different load rate thresholds; and mapping the current time to a third value based on the service period restriction information; and performing a weighted summation of the first value, the second value, and the third value to obtain the status score.

[0011] Optionally, obtaining the real-time status of the downstream system and transmitting files according to the file order in the current transmission task queue based on the real-time status includes: when the real-time status is ready, transmitting files sequentially according to the file order in the current transmission task queue; when the real-time status is busy or faulty, interrupting file transmission or adjusting the file transmission sequence, and monitoring the downstream system until the downstream system meets the file transmission conditions.

[0012] Optionally, the file transfer method further includes: during the process of transferring files according to the file sorting in the current transfer task queue based on the real-time status, if a file transfer interruption is detected, a breakpoint resumption mechanism is activated, and the breakpoint location and fragment verification information are recorded; after the network is restored, the transfer continues from the breakpoint location or the allocation after the breakpoint is retransmitted until the file integrity verification is passed.

[0013] Optionally, the interrupted transmission resumption mechanism is initiated, including: dividing the file to be transmitted into multiple fixed-size data fragments; generating a unique identifier for each data fragment and calculating the hash check value of the data fragment; when a transmission interruption is detected, recording the fragment number, the number of bytes transmitted, and the hash check value of the abnormal data fragment currently being transmitted; after network recovery is detected, reading the interruption information of the abnormal data fragment and performing a resumption operation based on the interruption information; after the resumption operation is completed, comparing the hash check values ​​of the abnormal data fragment before and after the resumption to obtain a comparison result; if the comparison result indicates that the hash check values ​​of the abnormal data fragment before and after the resumption are consistent, then the transmission of the abnormal data fragment is marked as complete; otherwise, a retransmission mechanism is triggered; when the number of executions of the retransmission mechanism exceeds a preset threshold, a warning message is generated.

[0014] According to another aspect of the present invention, a file transfer device based on dynamic priority scheduling is also provided, comprising: a first acquisition module, configured to acquire file attribute information of the file to be transferred after each receipt of the file to be transferred, wherein the file attribute information includes file type, file timeliness requirement time, and file size; a calculation module, configured to calculate a transfer priority score of the file to be transferred based on the file attribute information and the current system state of the downstream system; a sorting module, configured to sort the file to be transferred and historical files to be transferred in the transfer task queue according to the transfer priority score to obtain a current transfer task queue, wherein the historical files to be transferred are files that have been cached in the transfer task queue before the file to be transferred; and a second acquisition module, configured to acquire the real-time state of the downstream system and transfer the file according to the file sorting in the current transfer task queue based on the real-time state.

[0015] Optionally, the first acquisition module includes: a parsing unit, used to parse the file to be transmitted to obtain a parsing result; and an extraction unit, used to extract the file type, the file timeliness requirement time, and the file size of the file to be transmitted from the parsing result to obtain the file attribute information.

[0016] Optionally, the calculation module includes: a first calculation unit, configured to calculate the transmission priority score based on the file attribute information and the current system state of the downstream system using a dynamic priority calculation formula, wherein the dynamic priority calculation formula is: , This indicates the transmission priority score. This indicates the base weight corresponding to the file type of the file to be transmitted. This represents the adjustment coefficient. This represents the time difference between the required time for the document's timeliness and the current time. Indicates the total transmission time specified in the service. This represents the downstream dependency status score corresponding to the current system state.

[0017] Optionally, the second acquisition module includes: a collection unit, used to periodically collect interface response time, CPU load rate, and business time restriction information of the downstream system through an interface probe or heartbeat mechanism; a second calculation unit, used to calculate the status score of the downstream system based on the interface response time, the CPU load rate, and the business time restriction information; and a mapping unit, used to map the status score to the real-time status.

[0018] Optionally, the second calculation unit includes: a mapping subunit, used to map the interface response time to a first value through normalization, map the CPU load rate to a second value based on the relationship between the CPU load rate and different load rate thresholds, and map the current time to a third value based on the service period restriction information; and a summation subunit, used to perform a weighted summation of the first value, the second value, and the third value to obtain the status score.

[0019] Optionally, the second acquisition module includes: a transmission unit, configured to transmit files sequentially according to the file order in the current transmission task queue when the real-time state is ready; and a detection unit, configured to interrupt file transmission or adjust file transmission timing when the real-time state is busy or faulty, and monitor the downstream system until the downstream system meets the file transmission conditions.

[0020] Optionally, the file transfer device further includes: a first processing module, configured to, during the process of transferring files according to the file sorting in the current transfer task queue based on the real-time status, if a file transfer interruption is detected, initiate a breakpoint resumption mechanism and record the breakpoint location and fragment verification information; and a second processing module, configured to, after the network is restored, continue the transfer from the breakpoint location or retransmit the allocation after the breakpoint until the file integrity verification is passed.

[0021] Optionally, the first processing module includes: a cutting unit for cutting the file to be transmitted into multiple fixed-size data fragments; a third calculation unit for generating a unique identifier for each data fragment and calculating the hash check value of the data fragment; a recording unit for recording the fragment number, the number of bytes transmitted, and the hash check value of the abnormal data fragment currently being transmitted when a transmission interruption is detected; a reading unit for reading the breakpoint information of the abnormal data fragment after network recovery is detected, and performing a resume operation based on the breakpoint information; a comparison unit for comparing the hash check values ​​of the abnormal data fragment before and after the resume operation is completed, and obtaining a comparison result; a marking unit for marking the transmission of the abnormal data fragment as completed if the comparison result indicates that the hash check values ​​of the abnormal data fragment before and after the resume operation are consistent; otherwise, triggering a retransmission mechanism; and a generation unit for generating a warning message when the number of executions of the retransmission mechanism exceeds a preset threshold.

[0022] According to another aspect of the present invention, a computer program product is also provided, including computer instructions, which, when executed by a processor, perform the file transfer method based on dynamic priority scheduling described above.

[0023] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored program, wherein the program executes the file transfer method based on dynamic priority scheduling described in any one of the foregoing embodiments.

[0024] According to another aspect of the present invention, a processor is also provided, the processor being used to run a program, wherein the program, when running, executes the file transfer method based on dynamic priority scheduling as described above.

[0025] In this embodiment of the invention, after each received file to be transmitted, the file attribute information of the file to be transmitted is obtained, including file type, file timeliness requirement time, and file size. Based on the file attribute information and the current system status of the downstream system, the transmission priority score of the file to be transmitted is calculated. According to the transmission priority score, the files to be transmitted and historical files to be transmitted in the transmission task queue are sorted to obtain the current transmission task queue, wherein the historical files to be transmitted are files that have been cached in the transmission task queue before the file to be transmitted. The real-time status of the downstream system is obtained, and the files are transmitted according to the file sorting in the current transmission task queue based on the real-time status. By utilizing a dynamic priority calculation mechanism based on file attributes and the real-time status of the downstream system, and an intelligent breakpoint resumption strategy, the fine-grained sorting of transmission tasks and reliable recovery after interruption are achieved. This achieves the goal of prioritizing the transmission of urgent files and ensuring high availability of the transmission process, thereby improving the technical effects of file transmission efficiency and success rate and reducing operation and maintenance costs. This solves the technical problems of high transmission delay and failure rate caused by complex file transmission dependencies and network fluctuations in the internal management system of banks in related technologies. Attached Figure Description

[0026] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0027] Figure 1 This is a hardware structure block diagram of a mobile terminal based on a file transfer method with dynamic priority scheduling according to an embodiment of the present invention.

[0028] Figure 2 This is a flowchart of a file transfer method based on dynamic priority scheduling according to an embodiment of the present invention;

[0029] Figure 3 This is a system architecture diagram of a file transfer method based on dynamic priority scheduling according to an embodiment of the present invention;

[0030] Figure 4 This is a schematic diagram of a file transfer device based on dynamic priority scheduling according to an embodiment of the present invention.

[0031] The above figures include the following reference numerals:

[0032] 102. Processor; 104. Memory; 106. Transmission device; 108. Input / output device. Detailed Implementation

[0033] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0034] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0035] As described in the background section, related technologies suffer from drawbacks such as complex file transfer dependencies, high transmission delays due to network fluctuations, and high failure rates in internal bank management systems. This invention provides a file transfer method and apparatus based on dynamic priority scheduling, a computer-readable storage medium, a processor, and a computer program product.

[0036] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0037] The methods and embodiments provided in this invention can be executed on a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal according to an embodiment of the file transfer method based on dynamic priority scheduling of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0038] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the file transfer method based on dynamic priority scheduling in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or send data via a network. Specific examples of the aforementioned networks may include wireless networks provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0039] According to an embodiment of the present invention, a method embodiment of a file transfer method based on dynamic priority scheduling is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0040] Figure 2 This is a flowchart of a file transfer method based on dynamic priority scheduling according to an embodiment of the present invention, such as... Figure 2 As shown, the method includes the following steps:

[0041] Step S202: After receiving a file to be transmitted each time, obtain the file attribute information of the file to be transmitted, wherein the file attribute information includes the file type, the time limit for file validity, and the file size.

[0042] In this embodiment, by parsing the metadata and business attributes of the file to be transmitted, basic data support is provided for subsequent dynamic priority scheduling. This enables accurate identification of the file's business type, clarification of its timeliness constraints, and assessment of its processing complexity, thereby ensuring that urgent and important files can be prioritized for identification and processing.

[0043] Step S204: Calculate the transmission priority score of the file to be transmitted based on the file attribute information and the current system status of the downstream system.

[0044] In this embodiment, a dynamic priority algorithm is used to combine the static business attributes of a file with the dynamic network and downstream system status to quantify and generate transmission priority scores. This enables fine-grained sorting of transmission tasks, ensuring that in complex cross-system interaction environments, urgent and time-sensitive files can be assigned higher transmission weights based on real-time business urgency and system load. This effectively balances bandwidth resources, prioritizes the timely transmission of high-value services, and improves overall transmission efficiency.

[0045] Step S206: Sort the files to be transmitted and the historical files to be transmitted in the task queue according to the transmission priority score to obtain the current task queue. The historical files to be transmitted are files that have been cached in the task queue before the files to be transmitted.

[0046] In this embodiment, a dynamic sorting algorithm is used to sort newly connected files to be transmitted and cached historical files to be transmitted according to their calculated transmission priority scores. This generates the current optimal transmission task queue in real time, ensuring that the transmission order can be flexibly adjusted according to the real-time business urgency and file attributes. This avoids newly arrived high-priority urgent files from waiting too long due to the backlog of historical low-priority files, thereby achieving dynamic optimization of transmission resources and improving the timeliness of urgent file transmission and system response speed.

[0047] Step S208: Obtain the real-time status of the downstream system and transmit the files according to the file order in the current transmission task queue based on the real-time status.

[0048] In this embodiment, a linkage mechanism is established between transmission execution and the status of downstream systems. The readiness, busy or fault status of downstream systems is monitored in real time, and the timing and order of file transmission are determined accordingly. This can avoid invalid transmission when the network fluctuates or the downstream system is unavailable. By adopting a status-based file transmission strategy, the transmission failure rate and resource waste caused by repeated retries can be reduced. This ensures that files are sent in an orderly manner according to priority only when the downstream system has the processing capacity, thereby improving the transmission success rate and reducing operation and maintenance costs.

[0049] Figure 3 This is a system architecture diagram of a file transfer method based on dynamic priority scheduling according to an embodiment of the present invention, such as... Figure 3 As shown, a layered modular design is adopted, consisting of the following core modules: File Reception and Parsing: responsible for receiving files to be transmitted and extracting file attributes; Dynamic Priority Calculation: parsing file attributes and business rules, and calculating transmission priority in real time based on a priority algorithm; Transmission Scheduling Center: maintaining a priority queue, performing concurrency control and resource allocation, and generating transmission tasks; Transmission Execution Engine: executing file transmission tasks and recording transmission status in real time; Intelligent Breakpoint Resumption Engine: managing transmission interruptions and recovery, recording breakpoints and verifying file integrity; Downstream Status Awareness: obtaining downstream system status in real time through interface probes, such as CPU load and interface response time, and assessing network quality; Data Storage Layer: storing task queues, transmission logs, temporary storage for files to be transmitted, and business configuration rule weights, etc.

[0050] As described above, in this embodiment of the invention, after each received file to be transmitted, the file attribute information of the file to be transmitted is obtained, including file type, file timeliness requirement time, and file size. Based on the file attribute information and the current system status of the downstream system, the transmission priority score of the file to be transmitted is calculated. According to the transmission priority score, the files to be transmitted and historical files to be transmitted in the transmission task queue are sorted to obtain the current transmission task queue, wherein the historical files to be transmitted are files that have been cached in the transmission task queue before the file to be transmitted. The real-time status of the downstream system is obtained, and the files are transmitted according to the file sorting in the current transmission task queue based on the real-time status. By utilizing a dynamic priority calculation mechanism based on file attributes and the real-time status of the downstream system, and an intelligent breakpoint resumption strategy, the fine-grained sorting of transmission tasks and reliable recovery after interruption are achieved, thus achieving the goal of prioritizing the transmission of urgent files and ensuring high availability of the transmission process. This achieves the technical effect of improving file transmission efficiency and success rate while reducing operation and maintenance costs.

[0051] The technical solutions provided by the embodiments of the present invention solve the technical problems of high transmission delay and failure rate in the internal management system of banks due to the complexity of file transmission and network fluctuations.

[0052] According to the above embodiments of the present invention, obtaining file attribute information of a file to be transmitted includes: parsing the file to be transmitted to obtain a parsing result; and extracting the file type, file timeliness requirement, and file size of the file to be transmitted from the parsing result to obtain file attribute information.

[0053] In this embodiment, by using automated parsing technology, key business feature parameters can be accurately extracted from the original file, which can eliminate the errors and inefficiencies caused by manual identification of file attributes. This provides accurate basic data for subsequent dynamic priority calculation, ensuring that the system can formulate differentiated transmission strategies based on the specific file type, strict timeliness constraints, and physical size, thereby improving the accuracy of file identification and the scientific nature of scheduling decisions.

[0054] Specifically, the file receiving and attribute parsing steps include automatically extracting the following attributes when the system receives a file, such as the reconciliation file ACCT_20231001.CSV: file type, identified by filename suffix or metadata, such as liquidation file CLR, reconciliation file ACCT; business timeliness, matched from a preset rule base, such as liquidation files needing to be delivered within 2 hours of generation; and file size, which affects the fragmentation and transmission strategy, such as files larger than 1GB being automatically fragmented into 100MB blocks.

[0055] It should be noted that the above file types are matched with business type identifiers based on filenames or suffixes, such as clearing files (CLR) and reconciliation files (ACCT). The timeliness requirements corresponding to the business type are matched according to the preset rule base, such as delivery within 2 hours after generation.

[0056] According to the above embodiments of the present invention, calculating the transmission priority score of the file to be transmitted based on file attribute information and the current system state of the downstream system includes: calculating the transmission priority score according to the file attribute information and the current system state of the downstream system using a dynamic priority calculation formula, wherein the dynamic priority calculation formula is: , Indicates the transmission priority score. This indicates the base weight corresponding to the file type of the file to be transferred. This represents the adjustment coefficient. This represents the time difference between the document's timeliness requirement and the current time. Indicates the total transmission time specified in the service. This represents the downstream dependency status score corresponding to the current system state.

[0057] In this embodiment, a quantitative priority evaluation model is established. By integrating basic file attributes, remaining time urgency, and downstream system load, a weighted formula is used to accurately calculate the transmission priority score. This enables a shift in transmission decision-making from static rules to dynamic awareness, ensuring that the weight of non-urgent tasks is reduced when downstream systems are busy, or that the priority is increased when a task is nearing its deadline. This maximizes the use of network bandwidth resources while ensuring file integrity and prioritizes the transmission needs of time-sensitive services.

[0058] It should be noted that the above Optimization was performed using historical data, with default values ​​of α=0.6, β=0.3, and γ=0.1. The values ​​are: downstream ready = 1, busy = 0.5, fault = 0.

[0059] Taking a liquidation file with 30 minutes remaining (total time limit 2 hours) as an example, this embodiment is explained. If the downstream status is ready, then: P = 100 × 0.6 + (30 / 120) × 0.3 + 1 × 0.1 = 60 + 0.075 + 0.1 = 60.175. The files are dynamically sorted, and the scheduling center generates a transmission queue according to the score, prioritizing the transmission of files with P > 60.

[0060] According to the above embodiments of the present invention, obtaining the real-time status of the downstream system includes: periodically collecting the interface response time, CPU load rate, and business time restriction information of the downstream system through interface probes or heartbeat mechanisms; calculating the status score of the downstream system based on the interface response time, CPU load rate, and business time restriction information; and mapping the status score to the real-time status.

[0061] In this embodiment, a real-time perception mechanism for the health status of downstream systems is constructed. Through comprehensive evaluation of multi-dimensional indicators, the complex system status is quantified into a calculable status score, which can accurately identify the busy or faulty state of the downstream system, provide accurate decision-making basis for transmission scheduling, and ensure that file transmission only occurs when the downstream system has processing capabilities, thereby improving the success rate of transmission and system stability.

[0062] According to the above embodiments of the present invention, calculating the status score of the downstream system based on interface response time, CPU load rate, and business time restriction information includes: mapping the interface response time to a first value through normalization, mapping the CPU load rate to a second value based on the relationship between the CPU load rate and different load rate thresholds, and mapping the current time to a third value based on the business time restriction information; and performing a weighted summation of the first value, the second value, and the third value to obtain the status score.

[0063] In this embodiment, heterogeneous system monitoring indicators are uniformly transformed into comparable status scores through multi-dimensional quantization mapping and weighting algorithms. This enables a refined assessment of the health status of downstream systems, comprehensively considering network latency, computing resource pressure, and business window periods, thereby generating objective and accurate system busyness indicators and providing data support for subsequent dynamic adjustment of transmission strategies.

[0064] According to the above embodiments of the present invention, obtaining the real-time status of the downstream system and transmitting files according to the file order in the current transmission task queue based on the real-time status includes: when the real-time status is ready, transmitting files sequentially according to the file order in the current transmission task queue; when the real-time status is busy or faulty, interrupting file transmission or adjusting the file transmission timing, and monitoring the downstream system until the downstream system meets the file transmission conditions.

[0065] In this embodiment, an adaptive transmission control mechanism based on the real-time status of the downstream system is established. By determining whether the system is in a ready, busy, or faulty state, the transmission or pause strategy is dynamically executed. This can avoid invalid transmission attempts when the downstream system has insufficient processing capacity or is unavailable, prevent the waste of network resources and the increase in transmission failure rate, and ensure that files are sent in an orderly manner according to priority only when the downstream system has the conditions to receive them, thereby improving the success rate of file transmission and the stability of the overall system operation.

[0066] Specifically, the downstream system status is monitored every 30 seconds via HTTP API or heartbeat packets. Key metrics collected include interface response time, system load rate, and business time restrictions, such as the partner system being unavailable daily from 00:00 to 06:00. A status score is also collected. The transmission strategy is calculated based on the weighted average of the above indicators. If the downstream status is "ready" and the network is unobstructed, transmission is initiated immediately; if the downstream is "busy," the file is temporarily stored in a buffer, and its status is polled every 5 minutes until it becomes ready; if the downstream is "faulty," transmission is paused, and maintenance personnel are notified, while a backup channel is activated.

[0067] It should be noted that the above interface response time >500ms is considered busy, and the system load rate CPU >80% is marked as busy.

[0068] According to the above embodiments of the present invention, the file transfer method further includes: during the process of transferring files according to the file order in the current transfer task queue based on the real-time status, if a file transfer interruption is detected, a breakpoint resumption mechanism is activated, and the breakpoint location and fragment verification information are recorded; after the network is restored, the transfer continues from the breakpoint location or the allocation after the breakpoint is retransmitted until the file integrity verification is passed.

[0069] In this embodiment, an intelligent breakpoint resume mechanism with fault tolerance is constructed. By monitoring transmission interruptions in real time and recording breakpoint and fragment verification information, the transmission progress is accurately saved. This ensures that after network fluctuations or interruption recovery, the transmission can be seamlessly resumed or damaged fragments can be retransmitted from the breakpoint. Furthermore, integrity verification ensures the accuracy of file data, thereby reducing the risk of transmission failure due to network instability and improving transmission efficiency and data reliability.

[0070] like Figure 3 As shown, the exception handling mechanism includes two scenarios: transmission timeout and downstream interface change. Transmission timeout occurs when the transmission time of a single fragment exceeds a threshold, such as 300 seconds, automatically switching to an alternative transmission path, such as switching from a dedicated line to a VPN. Downstream interface change occurs when the dependency awareness module detects a downstream interface version upgrade, automatically calling a compatibility testing tool to update the transmission configuration after confirming that there are no errors.

[0071] It should be noted that, compared with ordinary breakpoint resume, it combines fragmented transmission, hash verification, and downstream status awareness to ensure integrity and avoid invalid retries. The dynamic priority algorithm supports custom rules, such as special weights for holidays, to adapt to changes in banking business and has scalability.

[0072] According to the above embodiments of the present invention, initiating a breakpoint resumption mechanism includes: dividing the file to be transmitted into multiple fixed-size data fragments; generating a unique identifier for each data fragment and calculating the hash check value of the data fragment; when a transmission interruption is detected, recording the fragment number, the number of bytes transmitted, and the hash check value of the currently transmitted abnormal data fragment; after network recovery is detected, reading the breakpoint information of the abnormal data fragment and performing a resumption operation based on the breakpoint information; after the resumption operation is completed, comparing the hash check values ​​of the abnormal data fragment before and after the resumption to obtain a comparison result; if the comparison result indicates that the hash check values ​​of the abnormal data fragment before and after the resumption are consistent, then marking the transmission of the abnormal data fragment as completed; otherwise, triggering a retransmission mechanism; when the number of executions of the retransmission mechanism exceeds a preset threshold, generating a warning message.

[0073] In this embodiment, fine-grained breakpoint resumption management based on fragment granularity and hash verification can achieve precise positioning and recovery of transmission progress by pre-calculating file fragments, unique identifiers, and hash values, as well as recording interruption status. This ensures that after network recovery, precise resumption or retransmission can be performed only for damaged fragments. Furthermore, hash comparison is used to strictly ensure data integrity, preventing data corruption or loss. At the same time, timely warnings are issued when multiple retransmissions fail, thereby improving the efficiency of large file transmission while ensuring high reliability and security of data transmission.

[0074] Specifically, the steps to achieve intelligent breakpoint resume are as follows: Large files are split into fixed-size blocks, such as 100MB, and each block is transmitted independently with its status recorded; Breakpoint recording and recovery: If transmission is interrupted, such as when the network is disconnected, the current block number, the number of bytes transmitted, and the block's MD5 hash value are recorded. After the network is restored, transmission resumes from the broken block. After transmission is completed, the MD5 values ​​before and after the resumption are compared. If the hash values ​​are inconsistent, the block is automatically retransmitted until three consecutive verification failures trigger a manual alarm.

[0075] It should be noted that the dynamic priority algorithm is an algorithm that calculates the transmission priority in real time based on file attributes (such as timeliness and business type); intelligent breakpoint resumption is a technology that records the breakpoint position when the transmission is interrupted, and automatically resumes the transmission and verifies the file integrity after recovery; dependency-aware transmission is a strategy that dynamically adjusts the file transmission sequence based on the status of downstream systems (such as busy or faulty); and the transaction ID is a unique code that identifies the file transmission task and is used to track the status of the entire process.

[0076] like Figure 3 As shown, the specific data flow is as follows: 1) File access flow (upstream system → file receiving module): original reconciliation / settlement files are accessed via various protocols such as SFTP / FTPS; 2) Attribute parsing flow (file receiving module → priority calculation engine): file attributes are extracted, including filename, size, timeliness requirements, etc., and matched with pre-configured weight rules; 3) Priority calculation flow (priority calculation engine → transmission scheduling center): basic weights, timeliness parameters, dependency parameters, etc., are calculated to generate a task queue with priority coefficients; 4) Task scheduling flow (transmission scheduling center → transmission execution engine): the transmission task queue is sorted according to priority, and transmission resources are allocated according to the concurrency limits of the downstream system. 5) Transmission Execution Flow (Transmission Execution Engine → Downstream System): Executes file transfer tasks, records transmission status, and confirms completion status; 6) Status Feedback Flow (Transmission Execution Engine → Downstream Status Awareness Module): Collects parameters such as transmission success rate and time consumption, and monitors changes in downstream system load; 7) Dynamic Adjustment Flow (Downstream Status Awareness Module → Priority Calculation Engine): Dynamically reduces the priority of non-urgent tasks when the downstream system is busy; triggers intelligent breakpoint resumption strategies when the network is disconnected; 8) Breakpoint Data Flow (Intelligent Breakpoint Resumption Module <—> Transmission Execution Engine): Two-way interaction ensures that breakpoints are recorded when transmission is interrupted and read when resumed. For example, file reception → attribute parsing (type = liquidation, timeout = 2 hours) → priority calculation (P = 60.175) → downstream status detection (ready) → fragmented transmission → transmission completion and verification → notifying the downstream system to consume the file.

[0077] In addition, it should be noted that manually configuring the priority table (non-dynamically adjusted) cannot adapt to sudden business needs, and relying solely on network status for retransmission (ignoring the status of downstream systems) still carries the risk of transmission failure. Existing alternatives cannot simultaneously meet the three elements of dynamic priority, integrity verification, and dependency awareness.

[0078] As can be seen from the above, in this embodiment of the invention, a dynamic priority algorithm is designed to automatically allocate transmission priority based on file type and business urgency; an intelligent breakpoint resume mechanism is introduced to ensure automatic recovery and data integrity after transmission interruption; and a dependency awareness module is constructed to monitor the status of downstream systems in real time and dynamically adjust the transmission strategy.

[0079] The technical solutions provided by the above embodiments of the present invention solve the following technical problems: 1) Delay in emergency file transmission: File transmission systems based on fixed priorities use fixed priorities and cannot be dynamically adjusted according to real-time business status; 2) High transmission failure rate: Ordinary breakpoint resume technology lacks downstream system status awareness, and may still fail twice due to downstream system busyness after network recovery; 3) High manual operation and maintenance costs: File transmission based on scheduled tasks relies on manual monitoring and retries, which is particularly inefficient in cross-system dependency scenarios.

[0080] Meanwhile, it has the following beneficial effects: 1) Improve transmission efficiency by ensuring that urgent files occupy bandwidth first through dynamic priority algorithms, thereby reducing business delays; 2) Improve transmission success rate by avoiding blind retries when downstream systems are unavailable through dependency perception modules, and transmitting only when both upstream and downstream are ready; 3) Reduce operation and maintenance costs by combining intelligent breakpoint resume and automated scheduling strategies to reduce the need for manual intervention.

[0081] In other words, the technical solution provided by the embodiments of the present invention comprehensively considers multiple factors and adopts a method for dynamically calculating transmission priority based on file attributes and real-time status. It integrates the "timeliness coefficient" calculation logic in the dynamic priority algorithm, the file integrity guarantee mechanism combined with hash verification, and the interactive scheduling strategy that relies on the status awareness of downstream systems. This solves the problem of high transmission delay and failure rate caused by complex file transmission dependencies and network fluctuations in the internal management system, thereby improving file transmission efficiency and system stability.

[0082] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0083] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.

[0084] According to embodiments of the present invention, a file transfer apparatus based on dynamic priority scheduling is also provided for implementing the above-described file transfer method based on dynamic priority scheduling. Figure 4 This is a schematic diagram of a file transfer device based on dynamic priority scheduling according to an embodiment of the present invention, such as... Figure 4 As shown, the device includes: a first acquisition module 401, a calculation module 403, a sorting module 405, and a second acquisition module 407. The following is a description of this file transfer device based on dynamic priority scheduling.

[0085] The first acquisition module 401 is used to acquire the file attribute information of the file to be transmitted after each receiving of the file to be transmitted. The file attribute information includes the file type, the time limit for file validity, and the file size.

[0086] The calculation module 403 is used to calculate the transmission priority score of the file to be transmitted based on file attribute information and the current system status of the downstream system.

[0087] The sorting module 405 is used to sort the files to be transmitted and the historical files to be transmitted in the task queue according to the transmission priority score to obtain the current task queue. The historical files to be transmitted are files that have been cached in the task queue before the files to be transmitted.

[0088] The second acquisition module 407 is used to acquire the real-time status of the downstream system and transmit files according to the file order in the current transmission task queue based on the real-time status.

[0089] It should be noted that the first acquisition module 401, calculation module 403, sorting module 405 and second acquisition module 407 mentioned above correspond to steps S202 to S208 in the above embodiments. The four modules and the corresponding steps implement the same instances and application scenarios, but are not limited to the content disclosed in the above embodiments.

[0090] As can be seen from the above, in the scheme described in the above embodiments of the present invention, firstly, the first acquisition module can acquire the file attribute information of the file to be transmitted each time a file to be transmitted is received, wherein the file attribute information includes the file type, the file timeliness requirement time, and the file size; secondly, the calculation module can calculate the transmission priority score of the file to be transmitted based on the file attribute information and the current system status of the downstream system; then, the sorting module can sort the files to be transmitted and the historical files to be transmitted in the transmission task queue according to the transmission priority score to obtain the current transmission task queue, wherein the historical files to be transmitted are files that have been cached in the transmission task queue before the file to be transmitted; finally, the second acquisition module can acquire the real-time status of the downstream system and transmit the file according to the file sorting in the current transmission task queue according to the real-time status. By using a dynamic priority calculation mechanism based on file attributes and the real-time status of the downstream system and an intelligent breakpoint resume strategy, the fine sorting of transmission tasks and reliable recovery after interruption are achieved, thereby achieving the purpose of prioritizing the transmission of urgent files and ensuring high availability of the transmission process, thus achieving the technical effect of improving file transmission efficiency and success rate and reducing operation and maintenance costs.

[0091] The technical solutions provided by the embodiments of the present invention solve the technical problems of high transmission delay and failure rate in the internal management system of banks due to the complexity of file transmission and network fluctuations.

[0092] In one optional embodiment, the first acquisition module includes: a parsing unit, used to parse the file to be transmitted and obtain a parsing result; and an extraction unit, used to extract the file type, file timeliness requirement time, and file size of the file to be transmitted from the parsing result to obtain file attribute information.

[0093] In one optional embodiment, the calculation module includes: a first calculation unit, configured to calculate a transmission priority score based on file attribute information and the current system state of the downstream system using a dynamic priority calculation formula, wherein the dynamic priority calculation formula is: , Indicates the transmission priority score. This indicates the base weight corresponding to the file type of the file to be transferred. This represents the adjustment coefficient. This represents the time difference between the document's timeliness requirement and the current time. Indicates the total transmission time specified in the service. This represents the downstream dependency status score corresponding to the current system state.

[0094] In one optional embodiment, the second acquisition module includes: a collection unit, used to periodically collect interface response time, CPU load rate, and business time restriction information of the downstream system through an interface probe or heartbeat mechanism; a second calculation unit, used to calculate the status score of the downstream system based on the interface response time, CPU load rate, and business time restriction information; and a mapping unit, used to map the status score to a real-time status.

[0095] In one optional embodiment, the second calculation unit includes: a mapping subunit, used to map the interface response time to a first value through normalization, map the CPU load rate to a second value based on the relationship between the CPU load rate and different load rate thresholds, and map the current time to a third value based on business time period restriction information; and a summation subunit, used to perform weighted summation of the first value, the second value, and the third value to obtain a status score.

[0096] In one optional embodiment, the second acquisition module includes: a transmission unit, configured to transmit files sequentially according to the file order in the current transmission task queue when the real-time state is ready; and a detection unit, configured to interrupt file transmission or adjust the file transmission timing when the real-time state is busy or faulty, and monitor the downstream system until the downstream system meets the file transmission conditions.

[0097] In an optional embodiment, the file transfer device further includes: a first processing module, configured to, during the process of transferring files according to the file order in the current transfer task queue based on the real-time status, if a file transfer interruption is detected, initiate a breakpoint resumption mechanism and record the breakpoint location and fragment verification information; and a second processing module, configured to, after the network is restored, continue the transfer from the breakpoint location or retransmit the allocation after the breakpoint until the file integrity verification is passed.

[0098] In one optional embodiment, the first processing module includes: a cutting unit for cutting the file to be transmitted into multiple fixed-size data fragments; a third calculation unit for generating a unique identifier for each data fragment and calculating the hash check value of the data fragment; a recording unit for recording the fragment number, the number of bytes transmitted, and the hash check value of the abnormal data fragment currently being transmitted when a transmission interruption is detected; a reading unit for reading the breakpoint information of the abnormal data fragment after network recovery is detected and performing a resume operation based on the breakpoint information; a comparison unit for comparing the hash check values ​​of the abnormal data fragment before and after the resume operation is completed to obtain a comparison result; a marking unit for marking the transmission of the abnormal data fragment as completed if the comparison result indicates that the hash check values ​​of the abnormal data fragment before and after the resume operation are consistent; otherwise, triggering a retransmission mechanism; and a generation unit for generating a warning message when the number of executions of the retransmission mechanism exceeds a preset threshold.

[0099] According to another aspect of the present invention, a computer program product is also provided, including computer instructions, which, when executed by a processor, perform any of the above-described file transfer methods based on dynamic priority scheduling.

[0100] According to another aspect of the present invention, a processor is also provided, which is used to run a program, wherein the program executes any of the above-described file transfer methods based on dynamic priority scheduling.

[0101] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored program, wherein the program executes the file transfer method based on dynamic priority scheduling as described above.

[0102] Optionally, in this embodiment, the computer-readable storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any communication device in a group of communication devices.

[0103] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: upon receiving a file to be transmitted each time, obtaining file attribute information of the file to be transmitted, wherein the file attribute information includes file type, file timeliness requirement time, and file size; calculating the transmission priority score of the file to be transmitted based on the file attribute information and the current system status of the downstream system; sorting the files to be transmitted and historical files to be transmitted in the transmission task queue according to the transmission priority score to obtain the current transmission task queue, wherein the historical files to be transmitted are files that have been cached in the transmission task queue before the file to be transmitted; obtaining the real-time status of the downstream system, and transmitting the file according to the file sorting in the current transmission task queue based on the real-time status.

[0104] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: parsing the file to be transmitted to obtain a parsing result; extracting the file type, file timeliness requirement, and file size of the file to be transmitted from the parsing result to obtain file attribute information.

[0105] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: calculating a transmission priority score based on file attribute information and the current system state of the downstream system using a dynamic priority calculation formula, wherein the dynamic priority calculation formula is: , Indicates the transmission priority score. This indicates the base weight corresponding to the file type of the file to be transferred. This represents the adjustment coefficient. This represents the time difference between the document's timeliness requirement and the current time. Indicates the total transmission time specified in the service. This represents the downstream dependency status score corresponding to the current system state.

[0106] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: periodically collecting interface response time, CPU load rate, and business time restriction information of the downstream system through an interface probe or heartbeat mechanism; calculating the status score of the downstream system based on the interface response time, CPU load rate, and business time restriction information; and mapping the status score to real-time status.

[0107] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: mapping the interface response time to a first value through normalization, mapping the CPU load rate to a second value based on the relationship between the CPU load rate and different load rate thresholds, and mapping the current time to a third value based on business time restriction information; and performing a weighted summation of the first, second, and third values ​​to obtain a status score.

[0108] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: when the real-time state is ready, the files are transmitted sequentially according to the file order in the current transmission task queue; when the real-time state is busy or faulty, the file transmission is interrupted or the file transmission timing is adjusted, and the downstream system is monitored until the downstream system meets the file transmission conditions.

[0109] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: during the process of transmitting files according to the file order in the current transmission task queue based on the real-time status, if a file transmission interruption is detected, a breakpoint resumption mechanism is initiated, and the breakpoint location and fragment verification information are recorded; after the network is restored, transmission continues from the breakpoint location or the allocation after the breakpoint is retransmitted until the file integrity verification is passed.

[0110] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: cutting the file to be transmitted into multiple fixed-size data fragments; generating a unique identifier for each data fragment and calculating the hash check value of the data fragment; when a transmission interruption is detected, recording the fragment number, the number of bytes transmitted, and the hash check value of the abnormal data fragment currently being transmitted; after network recovery is detected, reading the breakpoint information of the abnormal data fragment and performing a resume operation based on the breakpoint information; after the resume operation is completed, comparing the hash check values ​​of the abnormal data fragment before and after the resume operation to obtain a comparison result; if the comparison result indicates that the hash check values ​​of the abnormal data fragment before and after the resume operation are consistent, then marking the transmission of the abnormal data fragment as completed; otherwise, triggering a retransmission mechanism; when the number of retransmissions exceeds a preset threshold, generating a warning message.

[0111] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0112] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0113] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between units or modules may be electrical or other forms.

[0114] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0115] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0116] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0117] If the integrated unit is implemented as 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. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0118] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A file transfer method based on dynamic priority scheduling, characterized in that, include: After receiving a file to be transmitted each time, the file attribute information of the file to be transmitted is obtained, wherein the file attribute information includes file type, file timeliness requirement time and file size; Based on the file attribute information and the current system status of the downstream system, calculate the transmission priority score of the file to be transmitted; Based on the transmission priority score, the files to be transmitted and the historical files to be transmitted in the transmission task queue are sorted to obtain the current transmission task queue. The historical files to be transmitted are files that have been cached in the transmission task queue before the files to be transmitted. Obtain the real-time status of the downstream system, and transmit the files according to the file sorting in the current transmission task queue based on the real-time status.

2. The file transfer method based on dynamic priority scheduling according to claim 1, characterized in that, Obtain the file attribute information of the file to be transferred, including: The file to be transmitted is parsed to obtain the parsing result; The file type, the required time for file expiration, and the file size of the file to be transmitted are extracted from the parsing results to obtain the file attribute information.

3. The file transfer method based on dynamic priority scheduling according to claim 1, characterized in that, Based on the file attribute information and the current system status of the downstream system, the transmission priority score of the file to be transmitted is calculated, including: The transmission priority score is calculated based on the file attribute information and the current system state of the downstream system using a dynamic priority calculation formula. The dynamic priority calculation formula is as follows: , This indicates the transmission priority score. This indicates the base weight corresponding to the file type of the file to be transmitted. This represents the adjustment coefficient. This represents the time difference between the required time for the document's timeliness and the current time. Indicates the total transmission time specified in the service. This represents the downstream dependency status score corresponding to the current system state.

4. The file transfer method based on dynamic priority scheduling according to claim 1, characterized in that, Obtaining the real-time status of the downstream system includes: The interface response time, CPU load rate, and business time restriction information of the downstream system are periodically collected through interface probes or heartbeat mechanisms. The status score of the downstream system is calculated based on the interface response time, the CPU load rate, and the business time restriction information. The status score is mapped to the real-time status.

5. The file transfer method based on dynamic priority scheduling according to claim 4, characterized in that, The status score of the downstream system is calculated based on the interface response time, the CPU load rate, and the service time limit information, including: The interface response time is mapped to a first value through normalization, the CPU load rate is mapped to a second value based on the relationship between the CPU load rate and different load rate thresholds, and the current time is mapped to a third value based on the business time period restriction information. The first value, the second value, and the third value are weighted and summed to obtain the state score.

6. The file transfer method based on dynamic priority scheduling according to any one of claims 1 to 5, characterized in that, Obtaining the real-time status of the downstream system and transmitting files according to the file order in the current transmission task queue based on the real-time status includes: When the real-time state is ready, the files are transmitted sequentially according to the file order in the current transmission task queue. When the real-time status is busy or faulty, file transfer is interrupted or the file transfer timing is adjusted, and the downstream system is monitored until the downstream system meets the file transfer conditions.

7. The file transfer method based on dynamic priority scheduling according to any one of claims 1 to 5, characterized in that, The file transfer method further includes: During the process of transmitting files according to the file sorting in the current transmission task queue based on the real-time status, if a file transmission interruption is detected, the breakpoint resume mechanism is activated, and the breakpoint location and fragment verification information are recorded. After the network is restored, the transmission continues from the breakpoint or the allocation after the breakpoint is retransmitted until the file integrity verification passes.

8. The file transfer method based on dynamic priority scheduling according to claim 7, characterized in that, Enable the resume function, including: The file to be transmitted is divided into multiple data fragments of fixed size; Generate a unique identifier for each data fragment and calculate the hash check value of the data fragment; When a transmission interruption is detected, the fragment number of the currently transmitting abnormal data fragment, the number of bytes transmitted, and the hash check value of the abnormal data fragment are recorded. After network recovery is detected, the breakpoint information of the abnormal data fragment is read, and a resume operation is performed based on the breakpoint information. After the resume operation is completed, the hash check values ​​of the abnormal data fragments before and after the resume operation are compared to obtain the comparison results. If the comparison result indicates that the hash check value of the abnormal data fragment is consistent before and after the retransmission, then the transmission of the abnormal data fragment is marked as complete; otherwise, a retransmission mechanism is triggered. When the number of times the retransmission mechanism is executed exceeds a preset threshold, an early warning message is generated.

9. A file transfer device based on dynamic priority scheduling, characterized in that, include: The first acquisition module is used to acquire the file attribute information of the file to be transmitted after each receiving of the file to be transmitted, wherein the file attribute information includes file type, file timeliness requirement time and file size; The calculation module is used to calculate the transmission priority score of the file to be transmitted based on the file attribute information and the current system status of the downstream system. The sorting module is used to sort the files to be transmitted and the historical files to be transmitted in the task queue according to the transmission priority score to obtain the current task queue. The historical files to be transmitted are files that have been cached in the task queue before the files to be transmitted. The second acquisition module is used to acquire the real-time status of the downstream system and transmit files according to the file sorting in the current transmission task queue based on the real-time status.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program executes the file transfer method based on dynamic priority scheduling as described in any one of claims 1 to 8.