CN111245934A - Feedback method, device and equipment for file transmission and storage medium - Google Patents

Feedback method, device and equipment for file transmission and storage medium Download PDF

Info

Publication number
CN111245934A
CN111245934A CN202010025292.XA CN202010025292A CN111245934A CN 111245934 A CN111245934 A CN 111245934A CN 202010025292 A CN202010025292 A CN 202010025292A CN 111245934 A CN111245934 A CN 111245934A
Authority
CN
China
Prior art keywords
file
transmission
terminal
information
defective
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010025292.XA
Other languages
Chinese (zh)
Inventor
黄武科
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN202010025292.XA priority Critical patent/CN111245934A/en
Priority to PCT/CN2020/087616 priority patent/WO2021139052A1/en
Publication of CN111245934A publication Critical patent/CN111245934A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1812Hybrid protocols; Hybrid automatic repeat request [HARQ]
    • H04L1/1816Hybrid protocols; Hybrid automatic repeat request [HARQ] with retransmission of the same, encoded, message
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities

Abstract

The application relates to the field of software monitoring, and provides a method, a device, equipment and a storage medium for feedback of file transmission, wherein the method comprises the following steps: according to the connection mode adaptation transmission protocol with the second terminal, receiving a file transmission sending request from the second terminal; after receiving a file transmission request, acquiring a transmission file with a preset format; receiving a confirmation message from the second terminal, and issuing the transmission files to corresponding partition node servers according to the partition node identifiers corresponding to the transmission files; when the transmission of the transmission file fails, sending out warning information and failure reasons and detecting whether the failure reasons are processed or not when the transmission file is executed again, and executing again when the failure reasons are processed; and storing the file information of the file and feeding back the file information to the second terminal. Through the compensation mechanism and the early warning mechanism, the success rate of file transmission can be improved, manual intervention can be informed through early warning mails, and the success rate of file data transmission is guaranteed to be one hundred percent.

Description

Feedback method, device and equipment for file transmission and storage medium
Technical Field
The present application relates to the field of software monitoring, and in particular, to a method, an apparatus, a device, and a storage medium for feedback of file transmission.
Background
The existing bank protection products, whether data interface-based data transmission or file transmission-based data transmission, have a certain rate of transmission failure due to various reasons, such as network jitter, system abnormality, or natural disaster in a part of areas. After the file transmission fails, the operator often does not know whether the file is missed, and the file transmission fails can be found only by comparing a large number of received files.
Disclosure of Invention
The embodiment of the invention provides a new claim settlement service mode, which applies an AI picture recognition and loss assessment technology to a vehicle insurance accident claim settlement scene, provides a convenient client and enables a user to quickly and conveniently complete all processes of claim settlement.
In a first aspect, the present application provides a method for feedback of file transmission, including:
and after receiving the file transmission request, acquiring a transmission file with a preset format. The transmission file with the preset format comprises transmission file information and release range information corresponding to the transmission file, the transmission file with the preset format is processed according to the release range information corresponding to the transmission file information, transmission files corresponding to all partition nodes are generated, and a file release task carrying partition node identifiers of the transmission file to be received is initiated to the second terminal.
And receiving a confirmation message from the second terminal, and issuing the transmission files to the corresponding partition node servers according to the partition node identifiers corresponding to the transmission files.
And when the transmission of the transmission file fails, retransmitting the transmission file to the server within a set time, analyzing the reason of the file transmission failure, transmitting warning information and the reason of the failure, and retransmitting the transmission file when the reason of the failure is detected and processed. If the time detected by the overtime thread exceeds the set time, the transmission file is repeatedly detected until the failure reason is not processed after the number of times detection thread reaches the set early warning number, and the warning information is upgraded to high-level warning information and sent out by using a mail or a short message.
Or detecting all received files of the interface on the day of the set time by the date of the set time, and sending high-level warning information by using a mail or a short message if detecting that the file information of the transmission file does not contain the corresponding file information.
And storing the file information of the transmission file and feeding back the file information to the second terminal.
In some possible designs, after the re-transmitting the file to the server within the set time and analyzing the reason for the file transmission failure, the method further includes:
and when the transmission file is damaged, compensating the transmission file, wherein the compensation comprises the steps of obtaining the file defect of the transmission file through an Internet transmission protocol and an independent redundant disk array, and obtaining the damaged part of the transmission file from a network source.
In some possible designs, the compensating for the transmission file includes:
and acquiring the identification ID of the transmission file through a network, and allocating a storage space with a preset value for the transmission file.
When the transmission of the defective part of the transmission file is restarted, the first terminal acquires from the network that the fragment of the transmission file is unstable, so that the defective fragment in the transmission process is lost, the disk space corresponding to the defective fragment is vacant, and the ID number of the defective fragment cannot be recorded, so that the lost fragment is searched, and the independent redundant disk array of the transmission file is subjected to parity check to obtain the defective information of the downloaded file, wherein the defective fragment comprises the missing fragment and the damaged fragment.
And acquiring defective parts from a server and other users through the ID numbers of the defective fragments, writing the defective fragments into a disk space according to the ID numbers of the defective fragments after acquiring the defective parts, and writing the defective fragments into a pre-allocated space according to the ID numbers of the defective fragments so as to supplement the transmission file.
In some possible designs, compensating for the transmission file, the method further comprises:
and receiving indication information which is sent by the second terminal and is added to the defective fragments, wherein the indication information is used for indicating the preset frame number of the file and the importance of the file.
And when the transmission is finished and the actual frame number in the received indication information is higher than the frame number threshold value, judging that the file is normally received.
And if the actual frame number of the received indication information is lower than the frame number threshold, feeding the missing indication information back to the second terminal, so that the second terminal resends the missing frame file according to the missing indication information.
In some possible designs, after receiving the request for transmitting the file, the method further includes:
and if a plurality of different file transmission requests are received, file transmission is carried out in a multithreading mode. The file transmission in a multi-thread mode refers to:
and when the number of the received different file transmission requests exceeds a first threshold value, performing multi-thread file transmission by adopting the first threads with the number of the first threshold value, wherein the first threshold value refers to the upper limit of the number of the threads in the thread pool.
And when the number of the different file transmission requests is smaller than or equal to the first threshold value, performing multi-thread file transmission by adopting the thread number of the file transmission requests.
In some possible designs, before the transmitting the transmission file to the corresponding partition node server according to the partition node identifier corresponding to each transmission file, the method further includes:
and sending the first public key to the second terminal so that the second terminal encrypts the transmission file according to the first public key.
And receiving the transmission file sent by the second terminal.
The method comprises the steps of obtaining a first private key corresponding to a first public key according to a mapping table, wherein the mapping table comprises a corresponding relation between a second public key and a second private key, the mapping table is stored in a database, the second public key comprises the first public key, and the second private key comprises the first private key.
And decrypting the transmission file according to the first private key.
In some possible designs, after receiving the request for transmitting the file, the method further includes:
and after receiving a file transmission request of the second terminal, performing identity authentication on the second terminal, wherein the identity authentication comprises checking whether the file transmission server name, the file transmission client name, the IP address, the port number, the user name and the password information are correct.
In a second aspect, the present application provides an apparatus for feedback of file transfer, having a function of implementing a method corresponding to the platform for feedback of file transfer provided in the first aspect. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions, which may be software and/or hardware.
The device for feeding back the file transmission comprises:
and the acquisition module is used for receiving a file transmission sending request from the second terminal according to the transmission protocol adapted to the connection mode of the second terminal.
The processing module is used for receiving a file transmission sending request from the second terminal according to the transmission protocol adapted by the connection mode with the second terminal; after receiving a file transmission request, acquiring a transmission file with a preset format; the transmission file with the preset format comprises transmission file information and release range information corresponding to the transmission file, the transmission file with the preset format is processed according to the release range information corresponding to the transmission file information, transmission files corresponding to all partition nodes are generated, and a file release task carrying partition node identifiers of the transmission file to be received is initiated to a second terminal; receiving a confirmation message from the second terminal, and issuing the transmission files to corresponding partition node servers according to the partition node identifiers corresponding to the transmission files; when the transmission of the transmission file fails, retransmitting the transmission file to a server within a set time, analyzing the reason of the file transmission failure, transmitting warning information and the reason of the failure, and retransmitting the transmission file when the reason of the failure is detected and processed; if the time detected by the overtime thread exceeds the set time, the transmission file is repeatedly detected until the failure reason is not processed after the number of times detection thread reaches the set early warning number, and the warning information is upgraded into high-grade warning information by the input and output module and is sent out by using mails or short messages; or, detecting all received files of the interface on the current day of the set time by the date of the set time, and if detecting that the file information of the transmission file does not contain corresponding file information, sending out advanced warning information by an email or a short message through the input and output module; and storing the file information of the transmission file and feeding back the file information to the second terminal.
In some possible designs, the processing module is further to:
and when the transmission file is damaged, compensating the transmission file, wherein the compensation comprises the steps of obtaining the file defect of the transmission file through an Internet transmission protocol and an independent redundant disk array, and obtaining the damaged part of the transmission file from a network source.
In some possible designs, the processing module is further to:
and acquiring the identification ID of the transmission file through a network, and allocating a storage space with a preset value for the transmission file.
When the transmission of the defective part of the transmission file is restarted, the first terminal acquires from the network that the fragment of the transmission file is unstable, so that the defective fragment in the transmission process is lost, the disk space corresponding to the defective fragment is vacant, and the ID number of the defective fragment cannot be recorded, so that the lost fragment is searched, and the independent redundant disk array of the transmission file is subjected to parity check to obtain the defective information of the downloaded file, wherein the defective fragment comprises the missing fragment and the damaged fragment.
And acquiring defective parts from a server and other users through the ID numbers of the defective fragments, writing the defective fragments into a disk space according to the ID numbers of the defective fragments after acquiring the defective parts, and writing the defective fragments into a pre-allocated space according to the ID numbers of the defective fragments so as to supplement the transmission file. In some possible designs, the processing module is further to:
and receiving indication information which is sent by the second terminal and is added to the defective fragments, wherein the indication information is used for indicating the preset frame number of the file and the importance of the file.
And when the transmission is finished and the actual frame number in the received indication information is higher than the frame number threshold value, judging that the file is normally received.
And if the actual frame number of the received indication information is lower than the frame number threshold, feeding the missing indication information back to the second terminal, so that the second terminal resends the missing frame file according to the missing indication information.
In some possible designs, the processing module is further to:
and if a plurality of different file transmission requests are received, file transmission is carried out in a multithreading mode. The file transmission in a multi-thread mode refers to:
and when the number of the received different file transmission requests exceeds a first threshold value, performing multi-thread file transmission by adopting the first threads with the number of the first threshold value, wherein the first threshold value refers to the upper limit of the number of the threads in the thread pool.
And when the number of the different file transmission requests is smaller than or equal to the first threshold value, performing multi-thread file transmission by adopting the thread number of the file transmission requests.
In some possible designs, the processing module is further to:
and sending the first public key to the second terminal so that the second terminal encrypts the transmission file according to the first public key.
And receiving the transmission file sent by the second terminal.
The method comprises the steps of obtaining a first private key corresponding to a first public key according to a mapping table, wherein the mapping table comprises a corresponding relation between a second public key and a second private key, the mapping table is stored in a database, the second public key comprises the first public key, and the second private key comprises the first private key.
And decrypting the transmission file according to the first private key.
In some possible designs, the processing module is further to:
and after receiving a file transmission request of the second terminal, performing identity authentication on the second terminal, wherein the identity authentication comprises checking whether the file transmission server name, the file transmission client name, the IP address, the port number, the user name and the password information are correct.
The application further provides a device for feedback of file transfer, which includes at least one connected processor, a memory, and an input/output unit, wherein the memory is used for storing program codes, and the processor is used for calling the program codes in the memory to execute the method of the above aspects.
Yet another aspect of the present application provides a computer storage medium comprising instructions which, when executed on a computer, cause the computer to perform the method of the above-described aspects.
Compared with the prior art, the invention provides a new file early warning mode, and existing bank protection products, whether based on data interface transmission data or file transmission, are lost at a certain rate due to various reasons, such as network jitter, system abnormity or partial area natural disasters. Through the compensation mechanism and the early warning mechanism, the success rate of file transmission can be improved, manual intervention can be informed through early warning mails, and the success rate of file data transmission is guaranteed to be one hundred percent.
Drawings
Fig. 1 is a schematic flowchart of a method for feedback of file transmission in an embodiment of the present application;
FIG. 2 is a schematic structural diagram of a device for feedback of document transmission in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a computer device in an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. The terms "first," "second," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not explicitly listed or inherent to such process, method, article, or apparatus, and such that a division of modules presented in this application is merely a logical division that may be implemented in an actual application in a different manner, such that multiple modules may be combined or integrated into another system, or some features may be omitted, or may not be implemented.
Referring to fig. 1, a method for providing feedback of file transmission according to the present application is illustrated as follows, where the method includes:
101. and receiving a file transmission sending request from the second terminal according to the transmission protocol adapted by the connection mode with the second terminal.
The adaptive transmission protocol is a protocol for controlling data transmission by two communication parties, and defines the format used by a data unit, information and meaning which the information unit should contain, a connection mode, and the time sequence of information transmission and reception, so as to ensure that data in a network is smoothly transmitted to a determined place. The appointed content at least includes the definition of data format, synchronous mode, transmission speed, transmission step, error detection and correction mode and control character, the first terminal and the second terminal must comply together.
102. And after receiving the file transmission request, acquiring a transmission file with a preset format.
The product information file to be issued in the preset format comprises transmission file information and issuing range information corresponding to the transmission file, the transmission file in the preset format is processed according to the issuing range information corresponding to the transmission file information, the transmission file corresponding to each partition node is generated, and a file issuing task carrying the partition node identification of the transmission file to be received is initiated to the second terminal.
The transmission speed can be determined by the priority level of the transmission of a plurality of files. For example, the operation of simultaneously transmitting 2 files, referred to as a and B, sets the priority of the file a to be higher than that of the file B, and the transmission speed of the file a is faster than that of the file B.
103. And receiving a confirmation message from the second terminal, and issuing the transmission files to the corresponding partition node servers according to the partition node identifiers corresponding to the transmission files.
Detecting whether the transmission file is sent completely, and if the transmission file is sent completely, prompting that the transmission is finished; and if the transmission of the transmission file is interrupted, retransmitting the transmission file or prompting a transmission error.
104-1, when the transmission of the transmission file fails, retransmitting the transmission file to the server within the set time, analyzing the reason of the file transmission failure, transmitting the warning information and the failure reason, and retransmitting the transmission file when the reason of the failure is detected to be processed.
If the time detected by the overtime thread exceeds the set time, the transmission file is repeatedly detected until the failure reason is not processed after the number of times detection thread reaches the set early warning number, and the warning information is upgraded to high-level warning information and sent out by using a mail or a short message.
104-2, detecting all received files of the interface on the current day at the set time through the date at the set time, and sending high-level warning information by using a mail or a short message if detecting that the file information of the transmission file does not contain the corresponding file information.
The warning information acquisition and warning processing implement strict authority hierarchical control, namely, different warning processing authorities are given to people at different posts and the authority for acquiring warning information is given to people at different posts according to different post responsibilities. For example, one of the following is a rights implementation: a is an operator, B is a technician, A will receive the warning message and possess the processing authority of the warning message, B will receive the advanced warning message and possess the processing authority of the advanced warning message.
105. And storing the file information of the transmission file and feeding back the file information to the second terminal.
The file information at least comprises a file storage position, file attribute information, a file name and error reporting specific information. The error information at least comprises file uploading failure information, downloading failure information and file pushing failure information. After the file transmission is finished, the file information is stored in the database and summarized, and the summarized information is presented by using the monitoring log. The monitoring log is used for recording information of hardware, software and system problems in the system and monitoring events occurring in the system. Through which the user can check the cause of the error occurrence. The system log includes a system log, an application log, and a security log.
Compared with the prior art, the invention provides a new file early warning mode, and existing bank protection products, whether based on data interface transmission data or file transmission, are lost at a certain rate due to various reasons, such as network jitter, system abnormity or partial area natural disasters. Through the compensation mechanism and the early warning mechanism, the success rate of file transmission can be improved, manual intervention can be informed through early warning mails, and the success rate of file data transmission is guaranteed to be one hundred percent.
In some embodiments, after the file is retransmitted to the server within the set time and the reason for the file transmission failure is analyzed, the method further includes:
and when the transmission file is damaged, compensating the transmission file, wherein the compensation comprises the steps of obtaining the file defect of the transmission file through an Internet transmission protocol and an independent redundant disk array, and obtaining the damaged part of the transmission file from a network source.
The probability of file transmission failure can also be reduced by compensation mechanisms, namely forward compensation and backward compensation. Forward backoff is the repeated sending of a certain percentage of data through the network, but reduces the efficiency of the transmission communication. Backward compensation requires a large number of data node servers to be established on the internet to meet the requirement of ground data transmission, which results in a high cost of the whole system. The invention breaks through the internet transmission limit of the traditional backward compensation, reduces the number of ground data node servers, greatly reduces the system cost, and can improve the ground network compensation speed and the network resource utilization rate. An effective bank file transmission back compensation system is constructed with low cost.
In some embodiments, the compensating for the transmission file includes:
and acquiring the identification ID of the transmission file through a network, and allocating a storage space with a preset value for the transmission file.
When the transmission of the defective part of the transmission file is restarted, the first terminal acquires from the network that the fragment of the transmission file is unstable, so that the defective fragment in the transmission process is lost, the disk space corresponding to the defective fragment is vacant, and the ID number of the defective fragment cannot be recorded, so that the lost fragment is searched, and the independent redundant disk array of the transmission file is subjected to parity check to obtain the defective information of the downloaded file, wherein the defective fragment comprises the missing fragment and the damaged fragment.
And acquiring defective parts from a server and other users through the ID numbers of the defective fragments, writing the defective fragments into a disk space according to the ID numbers of the defective fragments after acquiring the defective parts, and writing the defective fragments into a pre-allocated space according to the ID numbers of the defective fragments so as to supplement the transmission file.
Unnecessary expenditure of messages is reduced in this way to reduce the use of bandwidth.
In some embodiments, the compensating for the transmission file further comprises:
and receiving indication information which is sent by the second terminal and is added to the defective fragments, wherein the indication information is used for indicating the preset frame number of the file and the importance of the file.
And when the transmission is finished and the actual frame number in the received indication information is higher than the frame number threshold value, judging that the file is normally received.
And if the actual frame number of the received indication information is lower than the frame number threshold, feeding the missing indication information back to the second terminal, so that the second terminal resends the missing frame file according to the missing indication information.
In some embodiments, after receiving the request for transmitting the file, the method further includes:
and if a plurality of different file transmission requests are received, file transmission is carried out in a multithreading mode. The file transmission in a multi-thread mode refers to:
and when the number of the received different file transmission requests exceeds a first threshold value, performing multi-thread file transmission by adopting the first threads with the number of the first threshold value, wherein the first threshold value refers to the upper limit of the number of the threads in the thread pool.
And when the number of the different file transmission requests is smaller than or equal to the first threshold value, performing multi-thread file transmission by adopting the thread number of the file transmission requests.
The thread is used, so that tasks in a program which occupies a long time can be put into the background to be processed, the processing speed of the tasks is increased, and the waiting time of a user is reduced.
In some embodiments, before issuing the transmission file to the corresponding partition node server according to the partition node identifier corresponding to each transmission file, the method further includes:
and sending the first public key to the second terminal so that the second terminal encrypts the transmission file according to the first public key.
And receiving the transmission file sent by the second terminal.
The method comprises the steps of obtaining a first private key corresponding to a first public key according to a mapping table, wherein the mapping table comprises a corresponding relation between a second public key and a second private key, the mapping table is stored in a database, the second public key comprises the first public key, and the second private key comprises the first private key.
And decrypting the transmission file according to the first private key.
To increase the security of the transmitted file.
In some embodiments, after receiving the request for transmitting the file, the method further includes:
and after receiving a file transmission request of the second terminal, performing identity authentication on the second terminal, wherein the identity authentication comprises checking whether the file transmission server name, the file transmission client name, the IP address, the port number, the user name and the password information are correct.
Checking whether the transmitted file is normal;
fig. 2 is a schematic structural diagram of a device 20 for feedback of file transmission, which can be applied to feedback of file transmission. The device for feeding back file transmission in the embodiment of the present application can implement the steps of the method for feeding back file transmission performed in the embodiment corresponding to fig. 1. The functions implemented by the file transmission feedback device 20 may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions, which may be software and/or hardware. The device for feeding back the file transmission may include an input/output module 201 and a processing module 202, and the processing module 202 and the input/output module 201 may refer to operations executed in the embodiment corresponding to fig. 1 for realizing the functions, which are not described herein again. The input-output module 201 may be used to control input, output, and acquisition operations of the input-output module 201.
In some embodiments, the input/output module 201 may be configured to receive a request for sending a transmission file from the second terminal according to a transmission protocol adapted according to a connection mode with the second terminal.
The processing module 202 may be configured to receive a request for sending a transmission file from a second terminal according to a transmission protocol adapted to a connection mode with the second terminal; after receiving a file transmission request, acquiring a transmission file with a preset format; the transmission file with the preset format comprises transmission file information and release range information corresponding to the transmission file, the transmission file with the preset format is processed according to the release range information corresponding to the transmission file information, transmission files corresponding to all partition nodes are generated, and a file release task carrying partition node identifiers of the transmission file to be received is initiated to a second terminal; receiving a confirmation message from the second terminal, and issuing the transmission files to corresponding partition node servers according to the partition node identifiers corresponding to the transmission files; when the transmission of the transmission file fails, retransmitting the transmission file to a server within a set time, analyzing the reason of the file transmission failure, transmitting warning information and the reason of the failure, and retransmitting the transmission file when the reason of the failure is detected and processed; if the time detected by the overtime thread exceeds the set time, the transmission file is repeatedly detected until the failure reason is not processed after the number of times detection thread reaches the set early warning number, and the warning information is upgraded into high-grade warning information by the input and output module and is sent out by using mails or short messages; or, detecting all received files of the interface on the current day of the set time by the date of the set time, and if detecting that the file information of the transmission file does not contain corresponding file information, sending out advanced warning information by an email or a short message through the input and output module; and storing the file information of the transmission file and feeding back the file information to the second terminal.
In some embodiments, the processing module 202 is further configured to:
and when the transmission file is damaged, compensating the transmission file, wherein the compensation comprises the steps of obtaining the file defect of the transmission file through an Internet transmission protocol and an independent redundant disk array, and obtaining the damaged part of the transmission file from a network source.
In some embodiments, the processing module 202 is further configured to:
and acquiring the identification ID of the transmission file through a network, and allocating a storage space with a preset value for the transmission file.
When the transmission of the defective part of the transmission file is restarted, the first terminal acquires from the network that the fragment of the transmission file is unstable, so that the defective fragment in the transmission process is lost, the disk space corresponding to the defective fragment is vacant, and the ID number of the defective fragment cannot be recorded, so that the lost fragment is searched, and the independent redundant disk array of the transmission file is subjected to parity check to obtain the defective information of the downloaded file, wherein the defective fragment comprises the missing fragment and the damaged fragment.
And acquiring defective parts from a server and other users through the ID numbers of the defective fragments, writing the defective fragments into a disk space according to the ID numbers of the defective fragments after acquiring the defective parts, and writing the defective fragments into a pre-allocated space according to the ID numbers of the defective fragments so as to supplement the transmission file. In some embodiments, the processing module 202 is further configured to:
and receiving indication information which is sent by the second terminal and is added to the defective fragments, wherein the indication information is used for indicating the preset frame number of the file and the importance of the file.
And when the transmission is finished and the actual frame number in the received indication information is higher than the frame number threshold value, judging that the file is normally received.
And if the actual frame number of the received indication information is lower than the frame number threshold, feeding the missing indication information back to the second terminal, so that the second terminal resends the missing frame file according to the missing indication information.
In some embodiments, the processing module 202 is further configured to:
and if a plurality of different file transmission requests are received, file transmission is carried out in a multithreading mode. The file transmission in a multi-thread mode refers to:
and when the number of the received different file transmission requests exceeds a first threshold value, performing multi-thread file transmission by adopting the first threads with the number of the first threshold value, wherein the first threshold value refers to the upper limit of the number of the threads in the thread pool.
And when the number of the different file transmission requests is smaller than or equal to the first threshold value, performing multi-thread file transmission by adopting the thread number of the file transmission requests.
In some embodiments, the processing module 202 is further configured to:
and sending the first public key to the second terminal so that the second terminal encrypts the transmission file according to the first public key.
And receiving the transmission file sent by the second terminal.
The method comprises the steps of obtaining a first private key corresponding to a first public key according to a mapping table, wherein the mapping table comprises a corresponding relation between a second public key and a second private key, the mapping table is stored in a database, the second public key comprises the first public key, and the second private key comprises the first private key.
And decrypting the transmission file according to the first private key.
In some embodiments, the processing module 202 is further configured to:
and after receiving a file transmission request of the second terminal, performing identity authentication on the second terminal, wherein the identity authentication comprises checking whether the file transmission server name, the file transmission client name, the IP address, the port number, the user name and the password information are correct.
The creating apparatus in the embodiment of the present application is described above from the perspective of the modular functional entity, and the following describes a computer device from the perspective of hardware, as shown in fig. 3, which includes: a processor, a memory, an input-output unit (which may also be a transceiver, not identified in fig. 3), and a computer program stored in the memory and executable on the processor. For example, the computer program may be a program corresponding to the method for feeding back the file transmission in the embodiment corresponding to fig. 1. For example, when a computer device implements the functions of the apparatus 20 for feedback of file transmission shown in fig. 2, the processor executes the computer program to implement the steps of the method for feedback of file transmission executed by the apparatus 20 for feedback of file transmission in the embodiment corresponding to fig. 2. Alternatively, the processor implements the functions of the modules in the apparatus 20 for feeding back file transmission according to the embodiment corresponding to fig. 2 when executing the computer program. For another example, the computer program may be a program corresponding to the method for feeding back the file transmission in the embodiment corresponding to fig. 1.
The processor may be a Central Processing Unit (CPU), other general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like which is the control center for the computer device and which connects the various parts of the overall computer device using various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the computer device by running or executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, video data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card (FlashCard), at least one magnetic disk storage device, a flash memory device, or other volatile solid state storage device.
The input-output unit may also be replaced by a receiver and a transmitter, which may be the same or different physical entities. When they are the same physical entity, they may be collectively referred to as an input-output unit. The input and output may be a transceiver.
The memory may be integrated in the processor or may be provided separately from the processor.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM), and includes several instructions for enabling a terminal (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the drawings, but the present application is not limited to the above-mentioned embodiments, which are only illustrative and not restrictive, and those skilled in the art can make many changes and modifications without departing from the spirit and scope of the present application and the protection scope of the claims, and all changes and modifications that come within the meaning and range of equivalency of the claims are to be embraced within their scope.

Claims (10)

1. A feedback method for file transmission, the method being performed by a first terminal, the method comprising:
according to the connection mode adaptation transmission protocol with the second terminal, receiving a file transmission sending request from the second terminal;
after receiving a file transmission request, acquiring a transmission file with a preset format; the transmission file with the preset format comprises transmission file information and release range information corresponding to the transmission file, the transmission file with the preset format is processed according to the release range information corresponding to the transmission file information, transmission files corresponding to all partition nodes are generated, and a file release task carrying partition node identifiers of the transmission file to be received is initiated to a second terminal;
receiving a confirmation message from the second terminal, and issuing the transmission files to corresponding partition node servers according to the partition node identifiers corresponding to the transmission files;
when the transmission of the transmission file fails, retransmitting the transmission file to a server within a set time, analyzing the reason of the file transmission failure, transmitting warning information and the reason of the failure, and retransmitting the transmission file when the reason of the failure is detected and processed; if the time detected by the overtime thread exceeds the set time, the transmission file is repeatedly detected until the failure reason is not processed after the number of times detection thread reaches the set early warning number, and the warning information is upgraded to high-level warning information and sent out by using a mail or a short message;
or, detecting all received files of the interface on the day of the set time by the date of the set time, and if detecting that the file information of the transmission file does not contain corresponding file information, sending out high-level warning information by using a mail or a short message;
and storing the file information of the transmission file and feeding back the file information to the second terminal.
2. The method according to claim 1, wherein after the file is retransmitted to the server within the set time and the reason for the file transmission failure is resolved, the method further comprises:
and when the transmission file is damaged, compensating the transmission file, wherein the compensation comprises the steps of obtaining the file defect of the transmission file through an Internet transmission protocol and an independent redundant disk array, and obtaining the damaged part of the transmission file from a network source.
3. The method of claim 2, wherein compensating for the transmission file comprises:
acquiring the identification ID of the transmission file through a network, and allocating a storage space with a preset value for the transmission file;
when the transmission of the defective part of the transmission file is restarted, the first terminal acquires from the network that the fragment of the transmission file is unstable and causes the loss of the defective fragment in the transmission process, the disk space corresponding to the defective fragment is vacant, and the ID number of the defective fragment cannot be recorded, so that the lost fragment is searched, and the defective information of the downloaded file is obtained by performing parity check on the independent redundant disk array of the transmission file, wherein the defective fragment comprises the missing fragment and the damaged fragment;
and acquiring defective parts from a server and other users through the ID numbers of the defective fragments, writing the defective fragments into a disk space according to the ID numbers of the defective fragments after acquiring the defective parts, and writing the defective fragments into a pre-allocated space according to the ID numbers of the defective fragments so as to supplement the transmission file.
4. The method of claim 3, wherein the compensating for the transmission file further comprises:
receiving indication information which is sent by the second terminal and is added to the defective fragments, wherein the indication information is used for indicating the preset frame number of the files and the importance of the files;
when the transmission is finished and the actual frame number in the received indication information is higher than the frame number threshold value, judging that the file is normally received;
and if the actual frame number of the received indication information is lower than the frame number threshold, feeding the missing indication information back to the second terminal, so that the second terminal resends the missing frame file according to the missing indication information.
5. The method of claim 1, wherein after receiving the request to transfer the file, the method further comprises:
if a plurality of different file transmission requests are received, file transmission is carried out in a multithreading mode; the file transmission in a multi-thread mode refers to:
when the number of the received different file transmission requests exceeds a first threshold value, performing multi-thread file transmission by adopting first threads with the number of the first threshold value, wherein the first threshold value is the upper limit of the number of the threads in a thread pool;
and when the number of the different file transmission requests is smaller than or equal to the first threshold value, performing multi-thread file transmission by adopting the thread number of the file transmission requests.
6. The method of claim 1, wherein before sending the transmission files to the corresponding partition node servers according to the partition node identifiers corresponding to the transmission files, the method further comprises:
sending a first public key to the second terminal so that the second terminal encrypts a transmission file according to the first public key;
receiving the transmission file sent by the second terminal;
obtaining a first private key corresponding to the first public key according to a mapping table, wherein the mapping table comprises a corresponding relation between a second public key and a second private key, the mapping table is stored in a database, the second public key comprises the first public key, and the second private key comprises the first private key;
and decrypting the transmission file according to the first private key.
7. The method according to claim 1 or 6, wherein after receiving the request for transmitting the file, the method further comprises:
and after receiving a file transmission request of the second terminal, performing identity authentication on the second terminal, wherein the identity authentication comprises checking whether the file transmission server name, the file transmission client name, the IP address, the port number, the user name and the password information are correct.
8. An apparatus for feedback of file transfer, the apparatus comprising:
the input/output module is used for receiving a file transmission sending request from the second terminal according to the transmission protocol adapted to the connection mode of the second terminal;
the processing module is used for receiving a file transmission sending request from the second terminal according to the transmission protocol adapted to the connection mode of the second terminal; after receiving a file transmission request, acquiring a transmission file with a preset format; the transmission file with the preset format comprises transmission file information and release range information corresponding to the transmission file, the transmission file with the preset format is processed according to the release range information corresponding to the transmission file information, transmission files corresponding to all partition nodes are generated, and a file release task carrying partition node identifiers of the transmission file to be received is initiated to a second terminal; receiving a confirmation message from the second terminal, and issuing the transmission files to corresponding partition node servers according to the partition node identifiers corresponding to the transmission files; when the transmission of the transmission file fails, retransmitting the transmission file to a server within a set time, analyzing the reason of the file transmission failure, transmitting warning information and the reason of the failure, and retransmitting the transmission file when the reason of the failure is detected and processed; if the time detected by the overtime thread exceeds the set time, the transmission file is repeatedly detected until the failure reason is not processed after the number of times detection thread reaches the set early warning number, and the warning information is upgraded into high-grade warning information by the input and output module and is sent out by using mails or short messages; or, detecting all received files of the interface on the current day of the set time by the date of the set time, and if detecting that the file information of the transmission file does not contain corresponding file information, sending out advanced warning information by an email or a short message through the input and output module; and storing the file information of the transmission file and feeding back the file information to the second terminal.
9. A computer device, characterized in that the computer device comprises:
at least one processor, a memory, and an input-output unit;
wherein the memory is configured to store program code and the processor is configured to invoke the program code stored in the memory to perform the method of any of claims 1-7.
10. A computer storage medium comprising instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1-7.
CN202010025292.XA 2020-01-10 2020-01-10 Feedback method, device and equipment for file transmission and storage medium Pending CN111245934A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010025292.XA CN111245934A (en) 2020-01-10 2020-01-10 Feedback method, device and equipment for file transmission and storage medium
PCT/CN2020/087616 WO2021139052A1 (en) 2020-01-10 2020-04-28 File transmission feedback method, device, apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010025292.XA CN111245934A (en) 2020-01-10 2020-01-10 Feedback method, device and equipment for file transmission and storage medium

Publications (1)

Publication Number Publication Date
CN111245934A true CN111245934A (en) 2020-06-05

Family

ID=70876086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010025292.XA Pending CN111245934A (en) 2020-01-10 2020-01-10 Feedback method, device and equipment for file transmission and storage medium

Country Status (2)

Country Link
CN (1) CN111245934A (en)
WO (1) WO2021139052A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112469030A (en) * 2020-12-01 2021-03-09 北京小熊博望科技有限公司 Cross-terminal multi-file transmission method
CN113297261A (en) * 2021-06-17 2021-08-24 中国农业银行股份有限公司 Early warning method and device for data processing, server and storage medium
CN114465972A (en) * 2021-06-11 2022-05-10 北京字跳网络技术有限公司 Method, device and equipment for transmitting folder and computer readable storage medium
CN117749789B (en) * 2024-02-07 2024-05-03 成都倍特数字能源科技有限公司 Transmission method based on UDP protocol

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113992654A (en) * 2021-10-22 2022-01-28 西安热工研究院有限公司 High-speed file transmission method, system, equipment and medium
CN113992668B (en) * 2021-10-25 2022-08-23 深圳市华创智慧健康科技有限公司 Information real-time transmission method, device, equipment and medium based on multiple concurrences
CN114338650A (en) * 2021-12-23 2022-04-12 中电金信软件有限公司 File transmission method and device, electronic equipment and readable storage medium
CN115865903B (en) * 2022-12-06 2023-10-03 中安网脉(北京)技术股份有限公司 File transmission control system and method based on double channels

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101446963A (en) * 2008-12-31 2009-06-03 中国建设银行股份有限公司 System for publishing information file of bank product and method
CN101494585A (en) * 2009-03-11 2009-07-29 杭州华三通信技术有限公司 Method and equipment for implementing reliable transmission of universal route encapsulation tunnel
CN104866241A (en) * 2015-05-28 2015-08-26 四川效率源信息安全技术有限责任公司 Data recovery method for RAID6
CN105743865A (en) * 2014-12-12 2016-07-06 上海大潮电子技术有限公司 Multimedia file data transmission system and transmission method
CN108880994A (en) * 2018-07-02 2018-11-23 网宿科技股份有限公司 A kind of method and apparatus for retransmitting mail

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5768527A (en) * 1996-04-23 1998-06-16 Motorola, Inc. Device, system and method of real-time multimedia streaming
CN101272354B (en) * 2007-03-20 2012-05-02 重庆优腾信息技术有限公司 File transfer method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101446963A (en) * 2008-12-31 2009-06-03 中国建设银行股份有限公司 System for publishing information file of bank product and method
CN101494585A (en) * 2009-03-11 2009-07-29 杭州华三通信技术有限公司 Method and equipment for implementing reliable transmission of universal route encapsulation tunnel
CN105743865A (en) * 2014-12-12 2016-07-06 上海大潮电子技术有限公司 Multimedia file data transmission system and transmission method
CN104866241A (en) * 2015-05-28 2015-08-26 四川效率源信息安全技术有限责任公司 Data recovery method for RAID6
CN108880994A (en) * 2018-07-02 2018-11-23 网宿科技股份有限公司 A kind of method and apparatus for retransmitting mail

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112469030A (en) * 2020-12-01 2021-03-09 北京小熊博望科技有限公司 Cross-terminal multi-file transmission method
CN114465972A (en) * 2021-06-11 2022-05-10 北京字跳网络技术有限公司 Method, device and equipment for transmitting folder and computer readable storage medium
CN114465972B (en) * 2021-06-11 2023-11-21 北京字跳网络技术有限公司 Method, apparatus, device and computer readable storage medium for folder transmission
CN113297261A (en) * 2021-06-17 2021-08-24 中国农业银行股份有限公司 Early warning method and device for data processing, server and storage medium
CN117749789B (en) * 2024-02-07 2024-05-03 成都倍特数字能源科技有限公司 Transmission method based on UDP protocol

Also Published As

Publication number Publication date
WO2021139052A1 (en) 2021-07-15

Similar Documents

Publication Publication Date Title
CN111245934A (en) Feedback method, device and equipment for file transmission and storage medium
CN111866769B (en) Message sending method, device, server and medium
CN107426711B (en) Method, device and system for binding or unbinding mobile phone number
CN109039724B (en) Log uploading method and device
CN108696831B (en) Short message sending method and device
US11030063B1 (en) Ensuring data integrity during large-scale data migration
CN111158933A (en) Distributed transaction processing method and system based on message queue
CN103269384A (en) Rich client abnormality processing method, processing device and processing system
CN111126940B (en) Service application processing method, device, equipment and computer readable storage medium
CN112087475B (en) Message pushing method and device for cloud platform component application and message server
CN110225109B (en) Multi-queue data transmission method based on 'industrial and commercial connection' platform
CN105554136A (en) Backup data restoration method, device and system
CN109408251B (en) Message sending method and device and message receiving processing method and device
CN114117482A (en) Database encryption method and device, electronic equipment and storage medium
CN112187898A (en) Data access system, method and device based on public security network
CN114979109B (en) Behavior track detection method, behavior track detection device, computer equipment and storage medium
CN116015683A (en) Authentication method, device, equipment and storage medium based on random key
CN114553863A (en) File transmission method and device, storage medium and electronic equipment
CN108880994B (en) Method and device for retransmitting mails
CN107566422A (en) A kind of verification method of third party user
CN110098931B (en) Data transmission method based on trusted 'government-enterprise connection' platform
CN113642046A (en) Method and equipment for issuing operation and maintenance lists in batches
CN101534292A (en) Interconnecting and switching gateway, system and realization method thereof
JP4237164B2 (en) Telegram-guaranteed communication system and method, transmitting apparatus and program
CN114095933A (en) Block chain-based security vulnerability processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200605