CN116915767B - Document transmission method and device - Google Patents

Document transmission method and device Download PDF

Info

Publication number
CN116915767B
CN116915767B CN202311175775.8A CN202311175775A CN116915767B CN 116915767 B CN116915767 B CN 116915767B CN 202311175775 A CN202311175775 A CN 202311175775A CN 116915767 B CN116915767 B CN 116915767B
Authority
CN
China
Prior art keywords
document
transmission
target
document set
transmission link
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.)
Active
Application number
CN202311175775.8A
Other languages
Chinese (zh)
Other versions
CN116915767A (en
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.)
Chongqing Huayue Ecological Environment Engineering Research Institute Co ltd
Chongqing Huayue Ecological Environment Engineering Research Institute Co ltd Shenzhen Branch
Original Assignee
Chongqing Huayue Ecological Environment Engineering Research Institute Co ltd
Chongqing Huayue Ecological Environment Engineering Research Institute Co ltd Shenzhen Branch
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 Chongqing Huayue Ecological Environment Engineering Research Institute Co ltd, Chongqing Huayue Ecological Environment Engineering Research Institute Co ltd Shenzhen Branch filed Critical Chongqing Huayue Ecological Environment Engineering Research Institute Co ltd
Priority to CN202311175775.8A priority Critical patent/CN116915767B/en
Publication of CN116915767A publication Critical patent/CN116915767A/en
Application granted granted Critical
Publication of CN116915767B publication Critical patent/CN116915767B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to the technical field of data transmission, and provides a document transmission method and device. The method comprises the following steps: obtaining each target document according to each record document which is received from the monitoring end and recorded with the operation data of the reservoir; according to a preset document format corresponding to the management terminal, carrying out format conversion on each target document to obtain each document to be uploaded in the same format; dividing each document to be uploaded to obtain a first document set and a second document set, sending the first document set to a monitoring end according to a first transmission link, enabling the monitoring end to send the first document set to a management terminal through a second transmission link, and sending the second document set to the management terminal according to a third transmission link. The document transmission method provided by the embodiment of the invention can improve the transmission efficiency of the document.

Description

Document transmission method and device
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a method and an apparatus for transmitting a document.
Background
At present, when the operation detection is carried out on the reservoir, a monitoring end of the reservoir gathers related documents for recording operation data of the reservoir and uploads the documents to a management terminal of a manager, so that the manager can analyze the operation condition of the reservoir conveniently, and meanwhile, the operation condition of the reservoir can be traced conveniently.
When the related documents of the reservoir are summarized, the data recording formats of the related documents aiming at different areas of the reservoir may be different, the formats of the documents uploaded to the management terminal are complex and changeable, the user is inconvenient to check, and the management terminal may be caused to lose part of the documents due to the fact that the documents cannot be compatible with a certain format. In addition, the related documents which need to be uploaded to the management terminal comprise water quality detection records, operation records of related detection equipment, operation records of reservoirs, reservoir inspection records and the like, so that the data volume of the transmitted documents is large, and the transmission efficiency of the documents is affected.
Disclosure of Invention
The present application aims to solve at least one of the technical problems existing in the related art. Therefore, the document transmission method can improve the transmission efficiency of the document.
The application also provides a document transmission device.
The application also provides electronic equipment.
The present application also proposes a computer-readable storage medium.
The document transmission method according to the embodiment of the first aspect of the application comprises the following steps:
obtaining each target document according to each record document which is received from the monitoring end and recorded with the operation data of the reservoir;
According to a preset document format corresponding to the management terminal, performing format conversion on each target document to obtain each document to be uploaded in the same format;
dividing each document to be uploaded to obtain a first document set and a second document set, sending the first document set to the monitoring end according to a first transmission link, enabling the monitoring end to send the first document set to the management terminal through a second transmission link, and sending the second document set to the management terminal according to a third transmission link.
The method comprises the steps of obtaining each target document based on each recorded document recorded with operation data of a reservoir, carrying out format conversion on each target document according to a preset document format corresponding to a management terminal, dividing each document to be uploaded in the same format after obtaining each document to be uploaded, obtaining a first document set and a second document set, uploading the first document set to the management terminal through a first transmission link between a server and a monitoring end and a second transmission link between the monitoring end and the management terminal, and uploading the second document set to the management terminal through a second transmission link between the server and the management terminal, so that the condition that part of documents are lost due to non-uniform formats of the documents uploaded to the management terminal can be reduced, document checking by a user using the management terminal is facilitated, time required by uploading each document in the converted format to the management terminal is saved, and the transmission efficiency of the documents is improved.
According to one embodiment of the application, the record document is a new document with no uploading mark in each document recorded with the operation data of the reservoir, and the uploading mark of the document is generated after the monitoring end sends the document to the server.
According to one embodiment of the present application, obtaining each target document from each record document received from a monitoring device and recorded with operation data of a reservoir includes:
according to a preset target scene, carrying out data analysis on the recorded document to obtain an analysis document corresponding to the recorded document;
and obtaining each target document according to each recorded document and each analysis document.
According to one embodiment of the present application, according to a preset target scene, performing data analysis on the record document to obtain an analysis document corresponding to the record document, including:
according to at least one preset vocabulary entry corresponding to a preset target scene, acquiring each target sentence comprising any preset vocabulary entry from the record document;
and carrying out semantic analysis on each target sentence according to the preset target scene to obtain the analysis document.
According to an embodiment of the present application, dividing each document to be uploaded to obtain a first document set and a second document set includes:
And dividing each document to be uploaded according to the transmission delay of a first transmission link between the server and the monitoring terminal, the transmission delay of a second transmission link between the monitoring terminal and the management terminal and the transmission delay of a third transmission link between the server and the management terminal to obtain the first document set and the second document set.
According to an embodiment of the present application, according to a transmission delay of a first transmission link between the server and the monitoring end, a transmission delay of a second transmission link between the monitoring end and the management terminal, and a transmission delay of a third transmission link between the server and the management terminal, dividing each document to be uploaded to obtain the first document set and the second document set, including:
obtaining a target transmission delay according to the transmission delay of the first transmission link and the transmission delay of the second transmission link;
and dividing each document to be uploaded according to the ratio between the target transmission delay and the transmission delay of the third transmission link to obtain the first document set and the second document set.
According to an embodiment of the present application, according to a transmission delay of a first transmission link between the server and the monitoring end, a transmission delay of a second transmission link between the monitoring end and the management terminal, and a transmission delay of a third transmission link between the server and the management terminal, dividing each document to be uploaded to obtain the first document set and the second document set, including:
obtaining a target transmission delay according to the transmission delay of the first transmission link and the transmission delay of the second transmission link;
determining the sizes of the documents which are allowed to be added in the first document set and the second document set according to the comparison result between the target transmission delay and the transmission delay of the third transmission link;
and dividing each document to be uploaded according to the sizes of the documents which are allowed to be added in the first document set and the second document set, so as to obtain the first document set and the second document set.
The document transmission device according to the embodiment of the second aspect of the application comprises:
the document acquisition module is used for acquiring each target document according to each recorded document which is received from the monitoring end and recorded with the operation data of the reservoir;
The document conversion module is used for carrying out format conversion on each target document according to a preset document format corresponding to the management terminal to obtain each document to be uploaded in the same format;
the document transmission module is used for dividing each document to be uploaded to obtain a first document set and a second document set, sending the first document set to the monitoring end according to a first transmission link, enabling the monitoring end to send the first document set to the management terminal through a second transmission link, and sending the second document set to the management terminal according to a third transmission link.
An electronic device according to an embodiment of a third aspect of the present application includes a processor and a memory storing a computer program, where the processor implements the document transmission method according to any of the above embodiments when executing the computer program.
A computer readable storage medium according to an embodiment of a fourth aspect of the present application, on which a computer program is stored, which when executed by a processor, implements the document transmission method according to any of the above embodiments.
The above technical solutions in the embodiments of the present application have at least one of the following technical effects:
The method comprises the steps of obtaining each target document based on each recorded document recorded with operation data of a reservoir, carrying out format conversion on each target document according to a preset document format corresponding to a management terminal, dividing each document to be uploaded in the same format after obtaining each document to be uploaded, obtaining a first document set and a second document set, uploading the first document set to the management terminal through a first transmission link between a server and a monitoring end and a second transmission link between the monitoring end and the management terminal, and uploading the second document set to the management terminal through a second transmission link between the server and the management terminal, so that the condition that part of documents are lost due to non-uniform formats of the documents uploaded to the management terminal can be reduced, document checking by a user using the management terminal is facilitated, time required by uploading each document in the converted format to the management terminal is saved, and the transmission efficiency of the documents is improved.
Drawings
For a clearer description of the present application or of the prior art, the drawings that are used in the description of the embodiments or of the prior art will be briefly described, it being apparent that the drawings in the description below are some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a first flowchart of a document transfer method according to some embodiments of the present application;
FIG. 2 is a second flowchart of a document transfer method according to some embodiments of the present application;
FIG. 3 is a third flowchart of a document transmission method according to some embodiments of the present application;
FIG. 4 is a fourth flowchart of a document transmission method according to some embodiments of the present application;
FIG. 5 is a fifth flowchart of a document transmission method according to some embodiments of the present application;
FIG. 6 is a schematic diagram of a document transmission device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The document transmission method and apparatus provided in the embodiments of the present application will be described and illustrated in detail below by means of several specific embodiments.
In an embodiment, a document transmission method is provided, which is applied to a server and is used for uploading a document recorded with relevant data of a reservoir to a management terminal, so that a manager of the management terminal can conveniently analyze the operation condition of the reservoir. The server may be an independent server or a server cluster formed by a plurality of servers, and may also be a cloud server for providing basic cloud computing services such as cloud services, cloud message databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, large message data, artificial intelligent sampling point devices, and the like.
As shown in fig. 1, the document transmission method provided in this embodiment includes:
step 101, obtaining each target document according to each record document which is received from a monitoring end and recorded with the operation data of the reservoir;
102, performing format conversion on each target document according to a preset document format corresponding to a management terminal to obtain each document to be uploaded in the same format;
step 103, dividing each document to be uploaded to obtain a first document set and a second document set, so as to send the first document set to the monitoring end according to a first transmission link, so that the monitoring end sends the first document set to the management terminal through a second transmission link, and sends the second document set to the management terminal according to a third transmission link.
In some embodiments, the monitoring terminal is used for detecting the operation state of the reservoir and generating a record file for recording the operation data of the reservoir. When the recorded documents are required to be uploaded to the management terminal, the monitoring terminal can send the document data to the server in advance, and the server can determine the recorded documents as target documents after receiving the recorded documents from the monitoring terminal.
After obtaining each target document, the server can convert each target document according to a preset document format compatible with the management terminal so as to convert all the target documents into documents to be uploaded in a unified format. The preset document format of the management terminal can be set according to actual conditions. By way of example, since the target document includes a record document in which the operation data of the reservoir is recorded, and the operation data of the reservoir includes a reservoir status, it is usually shown by pictures, that is, the target document may include a large number of pictures for showing the reservoir status. Therefore, in order to facilitate the management terminal to view the document, the preset document format may be a picture format, such as jpg, png, or may be a PDF (Portable Document Format, portable file) format, so that all the target documents are subjected to format conversion by the picture format or the PDF format, and thus, each document to be uploaded in the same format can be obtained.
After obtaining each document to be uploaded, in order to improve the uploading efficiency of each document to be uploaded, each document to be uploaded can be divided according to a preset proportion, so that a first document set formed by part of the documents to be uploaded and a second document set formed by the other part of the documents to be uploaded are obtained. The preset ratio may be set according to actual conditions, for example, may be set to 1:1, thereby obtaining a first document set consisting of half of the documents to be uploaded and a first document set consisting of the other half of the documents to be uploaded. After the first document set and the second document set are obtained, the first document set including part of the document to be uploaded can be uploaded to the management terminal via a first transmission link between the server and the monitoring terminal and a second transmission link between the monitoring terminal and the management terminal. And simultaneously, uploading a second document set comprising another part of the documents to be uploaded to the management terminal through a third transmission link between the server and the management terminal.
The method comprises the steps of obtaining each target document based on each recorded document recorded with operation data of a reservoir, carrying out format conversion on each target document according to a preset document format corresponding to a management terminal, dividing each document to be uploaded in the same format after obtaining each document to be uploaded, obtaining a first document set and a second document set, uploading the first document set to the management terminal through a first transmission link between a server and a monitoring end and a second transmission link between the monitoring end and the management terminal, and uploading the second document set to the management terminal through a second transmission link between the server and the management terminal, so that the condition that part of documents are lost due to non-uniform formats of the documents uploaded to the management terminal can be reduced, document checking by a user using the management terminal is facilitated, time required by uploading each document in the converted format to the management terminal is saved, and the transmission efficiency of the documents is improved.
In order to further improve the transmission efficiency of the document, in some embodiments, the recorded document is a new document with no uploading mark in each document recorded with the operation data of the reservoir, and the uploading mark of the document is generated after the monitoring end sends the document to the server.
In some embodiments, if a document stored in the monitoring end has been uploaded to the server, the monitoring end adds an upload flag to the document. Thus, when the document needs to be uploaded to the server again, whether any document has an upload flag or not can be detected. If yes, the document is indicated to be non-newly added, and the document is ignored at the moment; if the file does not exist, the file is indicated to be a new added file, and the file is taken as a record file and uploaded to a server at the moment. Therefore, the recorded documents uploaded to the server are newly added documents, and the uploaded documents are not repeatedly transmitted, so that the data quantity required to be transmitted can be effectively reduced, and the transmission efficiency of the documents is further improved.
In order to facilitate the analysis of the operation data of the reservoir by the user, in some embodiments, as shown in fig. 2, according to each record document received from the monitoring device and recorded with the operation data of the reservoir, each target document is obtained, including:
Step 201, according to a preset target scene, carrying out data analysis on the recorded document to obtain an analysis document corresponding to the recorded document;
and 202, obtaining each target document according to each recorded document and each analysis document.
In some embodiments, the data uploaded to the server by the monitoring end is a record file recorded with the operation data of the reservoir, such as a record file including a water quality detection record, an operation record of related detection equipment, an operation record of the reservoir and a reservoir inspection record. The server can set corresponding analysis strategies in advance for different target scenes, if the target scenes are related to water quality detection, the analysis strategies can be cross analysis or averaging, and the like, and after each recorded document is acquired, the data analysis can be carried out on the recorded document based on the selected preset target scenes to obtain the analysis document corresponding to the recorded document. For example, assuming that the preset target scene is a water quality average value, data analysis may be performed on water quality data in the record document to obtain a water quality average value, so as to record the water quality average value into a new document, and obtain an analysis document corresponding to the record document, including the water quality average value. Therefore, according to the actual situation, the preset target scene corresponding to each recorded document can be selected to perform data analysis on each recorded document, and the analysis document corresponding to each recorded document is obtained.
After each analysis document is obtained, each record document and each analysis document can be used as a target document, so that the obtained target document comprises the record document and the analysis document, and further the documents sent to the management terminal subsequently also comprise the record document and the analysis document, and the operation data in the record document is not required to be analyzed.
In order to make the analysis of the recorded document more accurate, in some embodiments, as shown in fig. 3, according to a preset target scene, the data analysis is performed on the recorded document to obtain an analyzed document corresponding to the recorded document, including:
step 301, obtaining each target sentence including any one preset term from the record document according to at least one preset term corresponding to a preset target scene;
and step 302, carrying out semantic analysis on each target sentence according to the preset target scene to obtain the analysis document.
In some embodiments, the server may set different preset vocabulary entry sets for different preset target scenes in advance. For example, the preset vocabulary entry set of the analysis strategy for water quality can comprise preset vocabulary entries such as algae phase, smell, water temperature, chlorophyll a content and the like. When an analysis document needs to be generated, if text information exists in a record document, each sentence comprising any preset vocabulary entry can be extracted from the record document as a target sentence according to each preset vocabulary entry in a preset vocabulary entry set corresponding to the record document.
After each target sentence is obtained, a semantic analysis model of a corresponding training number can be determined according to a corresponding preset target scene, and semantic analysis is carried out on each target sentence, so that an analysis document is obtained. The semantic analysis model corresponding to the preset target scene can be obtained by performing semantic training through sentence samples.
Each target sentence comprising any preset term is obtained from the recorded document through at least one preset term corresponding to the preset target scene, so that semantic analysis is carried out on each target sentence according to the preset target scene to obtain an analysis document, and the corresponding sentence can be obtained through the preset term corresponding to the preset target scene to carry out semantic analysis, so that the obtained analysis document is more accurate.
In some embodiments, if text information does not exist in the record document, if the record document is a picture showing a reservoir state, a corresponding decision model may be determined according to a preset target scene of the record document, and then the record document is input into a trained decision model, so that an abnormal probability representing the record document output by the decision model is used as an analysis document of the record document. The training of the decision model may be training by using a sample picture corresponding to a preset target scene. If the preset target scene to be analyzed is a reservoir environment, the decision model corresponding to the reservoir environment can be trained by a sample picture representing the reservoir environment.
After obtaining each document to be uploaded, each document to be uploaded can be divided to obtain a first document set and a second document set, so that the first document set and the second document set are uploaded to the management terminal through different transmission links.
In order to further improve the transmission efficiency of the documents, in some embodiments, dividing each document to be uploaded to obtain a first document set and a second document set includes:
and dividing each document to be uploaded according to the transmission delay of a first transmission link between the server and the monitoring terminal, the transmission delay of a second transmission link between the monitoring terminal and the management terminal and the transmission delay of a third transmission link between the server and the management terminal to obtain the first document set and the second document set.
In some embodiments, the server may determine the transmission delay of the first transmission link between the server and the monitoring end, the transmission delay of the second transmission link between the monitoring end and the management terminal, and the transmission delay of the third transmission link between the server and the management terminal by transmitting the test data. After the transmission delays of the first transmission link, the second transmission link and the third transmission link are obtained, since one transmission path of the document to be uploaded to the management terminal includes the first transmission link and the second transmission link, the transmission delay of the first transmission link and the transmission delay of the second transmission link can be added to obtain the total transmission delay of the document uploaded through the first transmission link and the second transmission link, namely the target transmission delay.
After the target transmission delay is obtained, the target transmission delay may be compared with the transmission delay of the third transmission link. If the target transmission delay is greater than the transmission delay of the third transmission link and the difference value of the target transmission delay and the target transmission delay is greater than the preset value, the transmission time of uploading the documents through the first transmission link and the second transmission link is longer, and at the moment, the document proportion in the first document set and the second document set can be adjusted, so that the number of documents to be uploaded in the first document set is smaller than the number of documents to be uploaded in the second document set. If the target transmission delay is smaller than the transmission delay of the third transmission link and the difference value of the target transmission delay and the third transmission delay is larger than a preset value, the document proportion in the first document set and the second document set can be adjusted, so that the number of documents to be uploaded in the second document set is larger than that in the second document set. If the difference between the target transmission delay and the transmission delay of the third transmission link is not greater than the preset value, the document uploading through the first transmission link and the second transmission link is indicated to be similar to the time consumption of uploading the document through the third transmission link, and at the moment, the document proportion in the first document set and the second document set can be adjusted to be 1:1, namely, dividing half of the documents to be uploaded into a first document set and the other half of the documents into a second document set. The preset value can be determined according to actual conditions.
The method comprises the steps of dividing each document to be uploaded into a first document set and a second document set through the transmission delay of a first transmission link between a server and a monitoring end, the transmission delay of a second transmission link between the monitoring end and a management terminal and the transmission delay of a third transmission link between the server and the management terminal, so that the division of each document to be uploaded is more reasonable, and the transmission efficiency of the document is further improved.
In order to further improve the partition rationality of each document to be uploaded so as to further improve the transmission efficiency of the document, in some embodiments, as shown in fig. 4, according to the transmission delay of the first transmission link between the server and the monitoring end, the transmission delay of the second transmission link between the monitoring end and the management terminal, and the transmission delay of the third transmission link between the server and the management terminal, the partition is performed on each document to be uploaded, so as to obtain the first document set and the second document set, including:
step 401, obtaining a target transmission delay according to the transmission delay of the first transmission link and the transmission delay of the second transmission link;
and step 402, dividing each document to be uploaded according to the ratio between the target transmission delay and the transmission delay of the third transmission link to obtain the first document set and the second document set.
In some embodiments, after the transmission delays of the first transmission link, the second transmission link, and the third transmission link are obtained, the transmission delay of the first transmission link and the transmission delay of the second transmission link are added to obtain a total transmission delay for uploading the document through the first transmission link and the second transmission link, that is, a target transmission delay. And then, comparing the target transmission delay with the transmission delay of the third transmission link to obtain the ratio of the target transmission delay to the transmission delay of the third transmission link.
After the ratio of the target transmission delay to the transmission delay of the third transmission link is obtained, the reciprocal of the ratio can be used as the document quantity ratio of the first document set and the second document set, so that the documents to be uploaded are divided according to the document quantity ratio, and the first document set and the second document set can be obtained.
For example, assuming that the target transmission delay is t1 and the transmission delay of the third transmission link is t2, it may be determined that the ratio of the target transmission delay to the transmission delay of the third transmission link is t1/t2. The longer the transmission delay of the transmission link, the smaller the data volume transmitted in unit time, so as to improve the transmission efficiency of the data, the data volume allocated to the transmission link needs to be reduced, i.e. the longer the transmission delay is inversely proportional to the allocated data volume. Thus, after the ratio t1/t2 is obtained, the inverse t2/t1 of the ratio t1/t2 can be used as the document number ratio of the first document set a and the second document set b, i.e., a/b=t2/t 1. Assuming that the number of the documents to be uploaded is A, it can be determined that the documents to be uploaded allocated to the first document set a are A×t2/t1+t2 and the documents to be uploaded allocated to the second document set b are A×t1/t1+t2 according to the document number ratio t2/t1.
The documents to be uploaded are divided through the ratio of the target transmission delay obtained by the transmission delays of the first transmission link and the second transmission link to the transmission delay of the third transmission link, and a first document set and a second document set are obtained, so that the division of the documents is more reasonable, and the transmission efficiency of the documents is further improved.
In addition to dividing each document to be uploaded by a ratio between a target transmission delay and a transmission delay of the third transmission link, in some embodiments, as shown in fig. 5, according to a transmission delay of a first transmission link between the server and the monitoring end, a transmission delay of a second transmission link between the monitoring end and the management terminal, and a transmission delay of a third transmission link between the server and the management terminal, dividing each document to be uploaded to obtain the first document set and the second document set, including:
step 501, obtaining a target transmission delay according to the transmission delay of the first transmission link and the transmission delay of the second transmission link;
step 502, determining the document sizes of the first document set and the second document set which are allowed to be added according to the comparison result between the target transmission delay and the transmission delay of the third transmission link;
And step 503, dividing each document to be uploaded according to the sizes of the documents allowed to be added in the first document set and the second document set, so as to obtain the first document set and the second document set.
In some embodiments, after the transmission delays of the first transmission link, the second transmission link, and the third transmission link are obtained, the transmission delay of the first transmission link and the transmission delay of the second transmission link are added to obtain a total transmission delay for uploading the document through the first transmission link and the second transmission link, that is, a target transmission delay. And then, comparing the target transmission delay with the transmission delay of the third transmission link to obtain a comparison result of the target transmission delay and the transmission delay of the third transmission link. The comparison result comprises three situations that the target transmission delay is larger than the transmission delay of the third transmission link, the target transmission delay is smaller than the transmission delay of the third transmission link, and the target transmission delay is equal to the transmission delay of the third transmission link.
After the comparison result between the target transmission delay and the transmission delay of the third transmission link is obtained, the sizes of the documents allowed to be added by the first document set and the second document set can be determined according to the comparison results of the three different conditions. For example, in the case where the target transmission delay is greater than the transmission delay of the third transmission link, it may be determined that the document size permitted to be added by the first document set is lower than the preset document size, and it may be determined that the document size permitted to be added by the second document set reaches the preset document size. In the case where the target transmission delay is less than the transmission delay of the third transmission link, it may be determined that the document size permitted to be added by the first document set reaches a preset document size, and that the document size permitted to be added by the second document set is less than the preset document size. In the case where the target transmission delay is equal to the transmission delay of the third transmission link, the document sizes that the first document set and the second document set are permitted to join may not be limited. The preset document size is determined according to the average document size of each document to be uploaded.
By way of example, assuming that the average document size of each document to be uploaded is 100M, the preset document size may be determined to be 100M. If the comparison result shows that the target transmission delay is larger than the transmission delay of the third transmission link, the transmission speed of the first document set is lower, and the transmission speed of the second document set is higher, at this time, the size of the document which the first document set is allowed to join is determined to be smaller than 100M, and the size of the document which the second document set is allowed to join is determined to be larger than or equal to 100M. In this way, among the documents to be uploaded, the documents to be uploaded smaller than 100M are divided into the first document set, and the documents to be uploaded larger than or equal to 100M are divided into the second document set.
The method comprises the steps of determining the sizes of documents which are allowed to be added by a first document set and a second document set through the comparison result of the target transmission delay obtained by the transmission delays of a first transmission link and a second transmission link and the transmission delay of a third transmission link, dividing each document to be uploaded based on the sizes of the documents which are allowed to be added by the first document set and the second document set, and obtaining the first document set and the second document set, so that the division of the documents is more reasonable, and further the transmission efficiency of the documents is further improved.
After the documents to be uploaded are divided, the first document set can be uploaded to the management terminal through the first transmission link and the second transmission link, and the second document set is uploaded to the management terminal through the third transmission link.
The document transmission device provided in the present application will be described below, and the document transmission device described below and the document transmission method described above may be referred to correspondingly to each other.
In one embodiment, as shown in fig. 6, there is provided a document transmission apparatus including:
a document acquisition module 210, configured to obtain each target document according to each record document received from the monitoring device and recorded with the operation data of the reservoir;
the document conversion module 220 is configured to perform format conversion on each target document according to a preset document format corresponding to the management terminal, so as to obtain each document to be uploaded in the same format;
the document transmission module 230 is configured to divide each document to be uploaded to obtain a first document set and a second document set, so that the first document set is sent to the monitoring end according to a first transmission link, so that the monitoring end sends the first document set to the management terminal through a second transmission link, and sends the second document set to the management terminal according to a third transmission link.
The method comprises the steps of obtaining each target document based on each recorded document recorded with operation data of a reservoir, carrying out format conversion on each target document according to a preset document format corresponding to a management terminal, dividing each document to be uploaded in the same format after obtaining each document to be uploaded, obtaining a first document set and a second document set, uploading the first document set to the management terminal through a first transmission link between a server and a monitoring end and a second transmission link between the monitoring end and the management terminal, and uploading the second document set to the management terminal through a second transmission link between the server and the management terminal, so that the condition that part of documents are lost due to non-uniform formats of the documents uploaded to the management terminal can be reduced, document checking by a user using the management terminal is facilitated, time required by uploading each document in the converted format to the management terminal is saved, and the transmission efficiency of the documents is improved.
In an embodiment, the record document is a new document with no uploading mark in each document with the operation data of the reservoir recorded, and the uploading mark of the document is generated after the monitoring end sends the document to the server.
In one embodiment, the document acquisition module 210 is specifically configured to:
according to a preset target scene, carrying out data analysis on the recorded document to obtain an analysis document corresponding to the recorded document;
and obtaining each target document according to each recorded document and each analysis document.
In one embodiment, the document acquisition module 210 is specifically configured to:
according to at least one preset vocabulary entry corresponding to a preset target scene, acquiring each target sentence comprising any preset vocabulary entry from the record document;
and carrying out semantic analysis on each target sentence according to the preset target scene to obtain the analysis document.
In one embodiment, the document transfer module 230 is specifically configured to:
and dividing each document to be uploaded according to the transmission delay of a first transmission link between the server and the monitoring terminal, the transmission delay of a second transmission link between the monitoring terminal and the management terminal and the transmission delay of a third transmission link between the server and the management terminal to obtain the first document set and the second document set.
In one embodiment, the document transfer module 230 is specifically configured to:
Obtaining a target transmission delay according to the transmission delay of the first transmission link and the transmission delay of the second transmission link;
and dividing each document to be uploaded according to the ratio between the target transmission delay and the transmission delay of the third transmission link to obtain the first document set and the second document set.
In one embodiment, the document transfer module 230 is specifically configured to:
obtaining a target transmission delay according to the transmission delay of the first transmission link and the transmission delay of the second transmission link;
determining the sizes of the documents which are allowed to be added in the first document set and the second document set according to the comparison result between the target transmission delay and the transmission delay of the third transmission link;
and dividing each document to be uploaded according to the sizes of the documents which are allowed to be added in the first document set and the second document set, so as to obtain the first document set and the second document set.
Fig. 7 illustrates a physical schematic diagram of an electronic device, as shown in fig. 7, which may include: processor 810, communication interface (Communication Interface) 820, memory 830, and communication bus 840, wherein processor 810, communication interface 820, memory 830 accomplish communication with each other through communication bus 840. Processor 810 may invoke computer programs in memory 830 to perform document transfer methods including, for example:
Obtaining each target document according to each record document which is received from the monitoring end and recorded with the operation data of the reservoir;
according to a preset document format corresponding to the management terminal, performing format conversion on each target document to obtain each document to be uploaded in the same format;
dividing each document to be uploaded to obtain a first document set and a second document set, sending the first document set to the monitoring end according to a first transmission link, enabling the monitoring end to send the first document set to the management terminal through a second transmission link, and sending the second document set to the management terminal according to a third transmission link.
Further, the logic instructions in the memory 830 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, embodiments of the present application further provide a storage medium, where the storage medium includes a computer program, where the computer program may be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer is capable of executing the document transmission method provided in the foregoing embodiments, for example, including:
obtaining each target document according to each record document which is received from the monitoring end and recorded with the operation data of the reservoir;
according to a preset document format corresponding to the management terminal, performing format conversion on each target document to obtain each document to be uploaded in the same format;
dividing each document to be uploaded to obtain a first document set and a second document set, sending the first document set to the monitoring end according to a first transmission link, enabling the monitoring end to send the first document set to the management terminal through a second transmission link, and sending the second document set to the management terminal according to a third transmission link.
The apparatus embodiments described above are merely illustrative, wherein elements illustrated as separate elements may or may not be physically separate, and elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (7)

1. A document transmission method, applied to a server, comprising:
obtaining each target document according to each record document which is received from the monitoring end and recorded with the operation data of the reservoir;
according to a preset document format corresponding to the management terminal, performing format conversion on each target document to obtain each document to be uploaded in the same format;
dividing each document to be uploaded to obtain a first document set and a second document set, sending the first document set to the monitoring end according to a first transmission link, enabling the monitoring end to send the first document set to the management terminal through a second transmission link, and sending the second document set to the management terminal according to a third transmission link;
dividing each document to be uploaded to obtain a first document set and a second document set, wherein the method comprises the following steps:
obtaining a target transmission delay according to the transmission delay of the first transmission link and the transmission delay of the second transmission link;
dividing each document to be uploaded according to the target transmission delay and the transmission delay of the third transmission link to obtain the first document set and the second document set;
Dividing each document to be uploaded according to the target transmission delay and the transmission delay of the third transmission link to obtain the first document set and the second document set, including:
determining the sizes of the documents which are allowed to be added in the first document set and the second document set according to the comparison result between the target transmission delay and the transmission delay of the third transmission link;
and dividing each document to be uploaded according to the sizes of the documents which are allowed to be added in the first document set and the second document set, so as to obtain the first document set and the second document set.
2. The document transmission method according to claim 1, wherein the recorded document is a new document in which an upload flag does not exist in each document in which operation data of a reservoir is recorded, and the upload flag of the document is generated after the monitoring terminal transmits the document to the server.
3. The document transmission method according to claim 1, wherein obtaining each target document from each recorded document in which operation data of the reservoir is recorded received from the monitoring device, comprises:
according to a preset target scene, carrying out data analysis on the recorded document to obtain an analysis document corresponding to the recorded document;
And obtaining each target document according to each recorded document and each analysis document.
4. The document transmission method according to claim 3, wherein the data analysis is performed on the recorded document according to a preset target scene to obtain an analysis document corresponding to the recorded document, comprising:
according to at least one preset vocabulary entry corresponding to a preset target scene, acquiring each target sentence comprising any preset vocabulary entry from the record document;
and carrying out semantic analysis on each target sentence according to the preset target scene to obtain the analysis document.
5. A document transmission apparatus, comprising:
the document acquisition module is used for acquiring each target document according to each recorded document which is received from the monitoring end and recorded with the operation data of the reservoir;
the document conversion module is used for carrying out format conversion on each target document according to a preset document format corresponding to the management terminal to obtain each document to be uploaded in the same format;
the document transmission module is used for dividing each document to be uploaded to obtain a first document set and a second document set, sending the first document set to the monitoring end according to a first transmission link, enabling the monitoring end to send the first document set to the management terminal through a second transmission link, and sending the second document set to the management terminal according to a third transmission link;
The document transmission module is specifically used for:
obtaining a target transmission delay according to the transmission delay of the first transmission link and the transmission delay of the second transmission link;
dividing each document to be uploaded according to the target transmission delay and the transmission delay of the third transmission link to obtain the first document set and the second document set;
the document transmission module is specifically used for:
determining the sizes of the documents which are allowed to be added in the first document set and the second document set according to the comparison result between the target transmission delay and the transmission delay of the third transmission link;
and dividing each document to be uploaded according to the sizes of the documents which are allowed to be added in the first document set and the second document set, so as to obtain the first document set and the second document set.
6. An electronic device comprising a processor and a memory storing a computer program, wherein the processor implements the document transmission method of any one of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the document transmission method of any one of claims 1 to 4.
CN202311175775.8A 2023-09-13 2023-09-13 Document transmission method and device Active CN116915767B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311175775.8A CN116915767B (en) 2023-09-13 2023-09-13 Document transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311175775.8A CN116915767B (en) 2023-09-13 2023-09-13 Document transmission method and device

Publications (2)

Publication Number Publication Date
CN116915767A CN116915767A (en) 2023-10-20
CN116915767B true CN116915767B (en) 2024-03-29

Family

ID=88358785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311175775.8A Active CN116915767B (en) 2023-09-13 2023-09-13 Document transmission method and device

Country Status (1)

Country Link
CN (1) CN116915767B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108566430A (en) * 2018-04-19 2018-09-21 西安电子科技大学 A kind of data distributing method
WO2019238025A1 (en) * 2018-06-15 2019-12-19 中兴通讯股份有限公司 Data transmission method and device, sending device, receiving device and storage medium
CN111263402A (en) * 2020-01-17 2020-06-09 广东中兴新支点技术有限公司 Data transmission method and device and electronic equipment
CN112580363A (en) * 2020-12-24 2021-03-30 平安普惠企业管理有限公司 Requirement document processing method and device, computer equipment and storage medium
CN115495556A (en) * 2022-09-27 2022-12-20 广州金山移动科技有限公司 Document processing method and device
CN116366740A (en) * 2023-03-17 2023-06-30 中科云谷科技有限公司 Data transmission method, device, system, storage medium and processor
WO2023125056A1 (en) * 2021-12-29 2023-07-06 苏州盛科通信股份有限公司 Network data control method and apparatus, and storage medium and electronic device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7612903B2 (en) * 2003-09-08 2009-11-03 Castelle Line utilization in integrated document delivery method and apparatus
US20130227162A1 (en) * 2012-02-29 2013-08-29 F-Secure Corporation Management of Data Upload Speed

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108566430A (en) * 2018-04-19 2018-09-21 西安电子科技大学 A kind of data distributing method
WO2019238025A1 (en) * 2018-06-15 2019-12-19 中兴通讯股份有限公司 Data transmission method and device, sending device, receiving device and storage medium
CN111263402A (en) * 2020-01-17 2020-06-09 广东中兴新支点技术有限公司 Data transmission method and device and electronic equipment
CN112580363A (en) * 2020-12-24 2021-03-30 平安普惠企业管理有限公司 Requirement document processing method and device, computer equipment and storage medium
WO2023125056A1 (en) * 2021-12-29 2023-07-06 苏州盛科通信股份有限公司 Network data control method and apparatus, and storage medium and electronic device
CN115495556A (en) * 2022-09-27 2022-12-20 广州金山移动科技有限公司 Document processing method and device
CN116366740A (en) * 2023-03-17 2023-06-30 中科云谷科技有限公司 Data transmission method, device, system, storage medium and processor

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
异构水文信息系统间的数据共享技术;秦昊;张晶;高;陈瑜彬;;中国防汛抗旱(第11期);全文 *
秦昊 ; 张晶 ; 高珺 ; 陈瑜彬 ; .异构水文信息系统间的数据共享技术.中国防汛抗旱.2018,(第11期),全文. *

Also Published As

Publication number Publication date
CN116915767A (en) 2023-10-20

Similar Documents

Publication Publication Date Title
CN109961204B (en) Service quality analysis method and system under micro-service architecture
CN110929880A (en) Method and device for federated learning and computer readable storage medium
CN111107423A (en) Video service playing card pause identification method and device
CN107085549B (en) Method and device for generating fault information
US11188443B2 (en) Method, apparatus and system for processing log data
CN111966289B (en) Partition optimization method and system based on Kafka cluster
CN111294849B (en) LTE user Internet surfing quality difference judging method and device
CN109669795A (en) Crash info processing method and processing device
CN103428249B (en) A kind of Collecting and dealing method of HTTP request bag, system and server
CN111666193B (en) Method and system for monitoring and testing terminal function based on real-time log analysis
CN105447148B (en) A kind of Cookie mark correlating method and device
CN117130870B (en) Transparent request tracking and sampling method and device for Java architecture micro-service system
CN116915767B (en) Document transmission method and device
CN117271645A (en) Test data processing method and device and computer readable storage medium
WO2015132222A1 (en) Method to determine re-buffering events in video sessions
JP5072880B2 (en) Metadata extraction server, metadata extraction method and program
JP6199844B2 (en) Suspicious part estimation device and suspected part estimation method
CN107341086B (en) Method and system for monitoring running state of server
CN113438503B (en) Video file restoring method, device, computer equipment and storage medium
CN116112209A (en) Vulnerability attack flow detection method and device
CN115866235A (en) Video quality evaluation method and device, electronic equipment and storage medium
CN111159244B (en) Data query method and device
CN108133046B (en) Data analysis method and device
AU2020335019A1 (en) Evaluation method based on mobile news client and system thereof
CN111382345A (en) Topic screening and publishing method and device and server

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
GR01 Patent grant
GR01 Patent grant