CN109639666A - Meteorological data document transmission method and device - Google Patents

Meteorological data document transmission method and device Download PDF

Info

Publication number
CN109639666A
CN109639666A CN201811494353.6A CN201811494353A CN109639666A CN 109639666 A CN109639666 A CN 109639666A CN 201811494353 A CN201811494353 A CN 201811494353A CN 109639666 A CN109639666 A CN 109639666A
Authority
CN
China
Prior art keywords
meteorological data
file destination
client
data file
download
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.)
Granted
Application number
CN201811494353.6A
Other languages
Chinese (zh)
Other versions
CN109639666B (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.)
New Energy Polytron Technologies Inc
Original Assignee
New Energy Polytron Technologies Inc
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 New Energy Polytron Technologies Inc filed Critical New Energy Polytron Technologies Inc
Priority to CN201811494353.6A priority Critical patent/CN109639666B/en
Publication of CN109639666A publication Critical patent/CN109639666A/en
Application granted granted Critical
Publication of CN109639666B publication Critical patent/CN109639666B/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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • 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
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present invention provides a kind of meteorological data document transmission method and device.Wherein, meteorological data document transmission method includes: and receives the meteorological data file download request that client is sent to authenticate client according to https protocol header entrained by meteorological data file download request;If certification does not pass through, judge that client authenticates whether unacceptable number reaches preset maximum times within a preset time period;If not up to, judging whether to meet preset force download condition according to the current trial download time of requested file destination;If satisfied, then allowing client downloads file destination;If not satisfied, not allowing client downloads file destination then.Meteorological data document transmission method and device provided in an embodiment of the present invention can improve the safety of meteorological data file transmission based on the downloading of https protocol realization meteorological data file.

Description

Meteorological data document transmission method and device
Technical field
The present embodiments relate to field of computer technology more particularly to a kind of meteorological data document transmission methods and dress It sets.
Background technique
With the fast development of new energy project, power prediction technology is also constantly updating iteration.Power prediction refers to It is predicted according to power of the meteorological data to new energy power plant.Meteorological data file is for storing meteorological data.Therefore, meteorological The safe transmission steady in a long-term of data file is always the field that power prediction producer is extremely concerned about.
In the prior art, weather server downloads meteorological data file from numerical weather forecast server.Due to meteorological number According to the fields such as communications and transportation, agricultural, daily life are widely used in, there is public attribute, ordinary populace can obtain meteorological number According to not needing that special consideration should be given to safety problems.Therefore, at present downloading meteorological data file when common transmission technology be ftp and sftp.In meteorological data document transmission process, it is only necessary to which the downloading that user name, password can carry out meteorological data file is provided And upload, What is more, and can log in numerical weather forecast server using third party software need to download meteorological data to check File.Above-mentioned transmission mode is tampered numerical weather forecast server by hacker attack, meteorological data file, is deleted Risk greatly increases, and influences greatly on the precision of new energy power plant power prediction, and meteorological data file download success or not Related personnel can not be notified in time, influence the safety in production of new energy power plant.
Summary of the invention
In view of the problems of the existing technology, the embodiment of the present invention provides one kind and overcomes the above problem or at least partly The meteorological data document transmission method and device to solve the above problems.
In a first aspect, the embodiment of the present invention provides a kind of meteorological data document transmission method, comprising:
The meteorological data file download request that client is sent is received, is taken according to the meteorological data file download request The https protocol header of band, authenticates the client;
If certification does not pass through, judge that the client authenticates whether unacceptable number reaches within a preset time period Preset maximum times;If not up to, judging whether to meet according to the current trial download time of requested file destination Preset force download condition;If satisfied, then allowing file destination described in the client downloads;If not satisfied, not allowing then File destination described in the client downloads;
Wherein, the format of https protocol header is predetermined;Https protocol header includes account authentication information, target text The current trial download time of part information and the file destination.
Second aspect, the embodiment of the present invention provide a kind of meteorological data document transmission method, comprising:
Meteorological data file download request is sent to server-side, so that the server-side is according to the meteorological data file The entrained https protocol header of downloading request is authenticated, and after certification is obstructed, judgement authenticates not within a preset time period By number whether reach preset maximum times, and reply judging result;
The judging result is received, the judging result is not up to, by total trial of the file destination if knowing Download time adds 1, and the current trial new as the file destination of the new total trial download time of the file destination is downloaded Number generates new meteorological data file download request;
Wherein, the meteorological data file download request carries https protocol header;The format of the https protocol header is It is predetermined;The https protocol header includes currently tasting for account authentication information, file destination information and the file destination Try download time.
The third aspect, the embodiment of the present invention provide a kind of meteorological data file transfer means, comprising:
Authentication module, for receiving the meteorological data file download request of client transmission, according to the meteorological data text The entrained https protocol header of part downloading request, authenticates the client;
Judgment module judges that the client authenticates within a preset time period and does not pass through if not passing through for authenticating Number whether reach preset maximum times;If not up to, being downloaded according to the current trial of requested file destination secondary Number judges whether to meet preset force download condition;If satisfied, then allowing file destination described in the client downloads;If no Meet, does not then allow file destination described in the client downloads;
Wherein, the format of https protocol header is predetermined;Https protocol header includes account authentication information, target text The current trial download time of part information and the file destination.
Fourth aspect, the embodiment of the present invention provide a kind of meteorological data file transfer means, comprising:
Sending module, for sending meteorological data file download request to server-side, so that the server-side is according to institute It states https protocol header entrained by meteorological data file download request to be authenticated, after certification is obstructed, judge preset Whether the unacceptable number of certification reaches preset maximum times in period, and replys judging result;
Receiving module, for receiving the judging result, if knowing, the judging result is not up to, by the target Total trial download time of file adds 1, the new total trial download time of the file destination is new as the file destination It is current to attempt download time, generate new meteorological data file download request;
Wherein, the meteorological data file download request carries https protocol header;The format of the https protocol header is It is predetermined;The https protocol header includes currently tasting for account authentication information, file destination information and the file destination Try download time.
5th aspect, the embodiment of the present invention provide a kind of electronic equipment, comprising:
At least one processor;And
At least one processor being connect with the processor communication, in which:
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to refer to Order is able to carry out meteorological data provided by any possible implementation in the various possible implementations of first aspect Document transmission method.
6th aspect, the embodiment of the present invention provide a kind of non-transient computer readable storage medium, the non-transient calculating Machine readable storage medium storing program for executing stores computer instruction, and the computer instruction makes the various possibility of the computer execution first aspect Implementation in meteorological data document transmission method provided by any possible implementation.
Meteorological data document transmission method and device provided in an embodiment of the present invention are based on https protocol realization meteorology number It is overflowed and force download condition according to the downloading of file, and according to whether meeting erroneous authentication window, it is determined whether allow to download, tie Modern transmission technology and corresponding security strategy are closed, authenticity, the integrality of meteorological data file is can guarantee, safely and steadly passes It is defeated, the safety of meteorological data file transmission can be improved.It further, can be new energy to grasp power prediction progress in real time The accuracy rate of power plant's power prediction provides safeguard.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow diagram according to meteorological data document transmission method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram according to meteorological data document transmission method provided in an embodiment of the present invention;
Fig. 3 is the functional block diagram according to meteorological data file transfer means provided in an embodiment of the present invention;
Fig. 4 is the functional block diagram according to meteorological data file transfer means provided in an embodiment of the present invention;
Fig. 5 is the structural block diagram according to electronic equipment provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Embodiment in the present invention, those of ordinary skill in the art are not having Every other embodiment obtained under the premise of creative work is made, shall fall within the protection scope of the present invention.
In order to overcome the above problem of the prior art, the embodiment of the present invention provide a kind of meteorological data document transmission method and Device, inventive concept are to be communicated (including data transmission) based on https agreement between server-side and client, and right The format of the protocol header (abbreviation https protocol header) of https agreement carries out preparatory definition, according to the agreement of https agreement Head is authenticated, and realizes the safe transmission of meteorological data file.
For the ease of the understanding to various embodiments of the present invention, first power prediction system is illustrated below.
Power prediction system may include three regions: meteorological data file transmission range, the first safety zone and the second safety Area.There are one-way data transfers between meteorological data file transmission range and the second safety zone;First safety zone and the second safety zone Between there are data transmission.
Meteorological data file transmission range may include weather server, numerical weather forecast server and reverse isolation dress It sets.Numerical weather forecast server, the meteorological data for obtaining weather forecast, is deposited in the form of meteorological data file Storage.Weather server is used for from carrier gas image data file above and below numerical weather forecast server.Weather server and Numerical Weather Data transmission between forecast servers can be carried out by internet (Internet).Reverse isolation device, such as gateway are used In meteorological data file transmission range and the second safety zone are carried out reverse isolation, i.e., only allow the second safety zone from meteorological data text Part transmission range obtains data, without allowing the second safety zone property meteorological data file transmission range that data are written.
Can be connected by private network between each device inside first safety zone, due to private network have relative to internet it is higher Safety, thus can be described as the first safety zone.First safety zone may include EMS (electric energy management system, Energy Management System) database.
Can be connected by private network between each device inside second safety zone, due to private network have relative to internet it is higher Safety, thus can be described as the second safety zone.Second safety zone may include that forecasting system working machine, forecasting system are spare Machine, data acquisition server and work station.Forecasting system guest machine, data acquisition server and work station respectively with forecasting system Working machine connection.Forecasting system working machine is connect with reverse isolation device, to obtain meteorological data file;Forecasting system working machine EMS data are obtained from EMS database.It further include firewall between first safety zone and the second safety zone, specifically, firewall portion It is deployed between forecasting system working machine and EMS database.Data acquisition server for store except meteorological data and EMS data it Outside, power prediction needs other data used.User by work station call forecasting system working machine according to meteorological data, EMS data and other data carry out power prediction to new energy power plant.It is pre- to cannot proceed normally power in forecasting system working machine When survey, power prediction is carried out by forecasting system guest machine.
Meteorological data file transmission in various embodiments of the present invention, refers to weather server from numerical weather forecast server Download the process of meteorological data file.Below in each example, server-side is https server-side, index value weather forecast servers; Client is https client, refers to weather server.
Fig. 1 is the flow diagram according to meteorological data document transmission method provided in an embodiment of the present invention.Such as Fig. 1 institute Show, a kind of meteorological data document transmission method includes: step S101, receives the meteorological data file download that client is sent and ask It asks, according to https protocol header entrained by meteorological data file download request, client is authenticated;Wherein, https is assisted It is predetermined for discussing the format of head;Https protocol header includes working as account authentication information, file destination information and file destination Preceding trial download time.
It should be noted that the executing subject of meteorological data document transmission method provided in an embodiment of the present invention is service End.
It should be noted that being based in advance to being communicated between server-side and client and (to be transmitted including data) The format of https protocol header carries out customized.The format of customized https protocol header includes account authentication information (Authentication), the current trial download time of file destination information (TargetFileInfo) and file destination (AttemptTimes).The current trial download time of account authentication information, file destination information and file destination is variable.
Account authentication information refers to the information for being authenticated to client.Account authentication information may include user Name, password and other verification informations.
File destination refers to that client requests the meteorological data file of downloading.File destination information, referring to has with file destination The information of pass can include but is not limited to title, size, MD5 value of file destination etc..
The current trial download time of file destination refers to that the client has requested that the total degree for downloading the file destination (contains Currently transmitted meteorological data file download request is this time).
Https agreement (Secure Socket Layer Hyper text transfer security protocol, Hyper Text TransferProtocol Over Secure Socket Layer or Hypertext Transfer Protocol Secure), it is safely for target The channel http, it will be appreciated that be http safe version.That is SSL layers of (Secure Socket Layer, Secure Socket are added under http Layer), the foundation for security of httpS is SSL, and SSL carrys out the identity of authentication server by certificate, and is browser and server Between communication encryption.Accordingly, with respect to the communication based on http agreement, the communication based on https agreement is safer, can It leans on.
Meteorological data file download request refers to the request for the slave server-side downloading object file that client is sent.
Meteorological data file download request and client include https association to the response of meteorological data file download request Discuss head.
It, can be with according to the https protocol header that downloading request carries after server-side receives meteorological data file download request Obtain account authentication information, the current trial download time of file destination information and file destination.
After obtaining account authentication information, client is authenticated according to account authentication information.
If step S102, certification does not pass through, judge that client authenticates unacceptable number within a preset time period and is It is no to reach preset maximum times;If not up to, being according to the judgement of the current trial download time of requested file destination It is no to meet preset force download condition;If satisfied, then allowing client downloads file destination;If not satisfied, not allowing visitor then Family end downloading object file.
Specifically, if certification does not pass through, whether authentication authorization and accounting failure, the then authentication window that judges incorrectly overflows.
Erroneous authentication window overflows, and refers to that the unacceptable number of client certificate reaches preset maximum in the preset period Number.Such as customer end A authentification failure 10000 times in 3 hours.
If erroneous authentication window does not overflow, i.e. the unacceptable number of client certificate is not up to preset maximum times, after It is continuous to judge whether to meet preset force download condition.
Preset force download condition, is whether the current trial download time of file destination is preset number.It is default Number be special value.
For example, preset number is 6, if 5 downloadings fail before some file, this document is downloaded in the 6th request, if recognizing Card does not pass through and unacceptable number is not up to preset maximum times, then meets preset force download condition;If some is literary 4 downloadings fail before part, the 5th request downloading this document, if certification does not pass through and unacceptable number is not up to preset Maximum times are then unsatisfactory for preset force download condition.
If meeting preset force download condition, server-side allows client downloads file destination.
Default force download condition, is that new energy power plant leads to authentication error for some reason and misses in order to prevent Best download time, so that new energy power plant can also download meteorological data file in these cases, even if data are stolen, Only a small amount data influence can be ignored.
If being unsatisfactory for preset force download condition, server-side does not allow client downloads file destination, and notifies client End, since erroneous authentication window does not overflow, client can continue to attempt to download the file destination.
It should be noted that server-side also sends downloading response to client, to inform that client error authentication window is The judging result of no spilling.
Downloading of the embodiment of the present invention based on https protocol realization meteorological data file, and recognize according to whether meeting mistake It demonstrate,proves window to overflow and force download condition, it is determined whether allow to download, in conjunction with Modern transmission technology and corresponding security strategy, can protect Authenticity, the integrality for demonstrate,proving meteorological data file, are safely and steadly transmitted, and can improve the safety of meteorological data file transmission. Further, it can be provided safeguard to grasp power prediction progress in real time for the accuracy rate of new energy power plant power prediction.
Content based on the various embodiments described above, judges whether client authenticates unacceptable number within a preset time period After reaching preset maximum times further include: if reaching, refuse whole meteorological data file download requests of client.
Specifically, if erroneous authentication window overflows, refuse whole meteorological data file download requests of client.
Whole meteorological data file download requests of client, this meteorological data file download including client are asked It asks and each secondary meteorological data file download request after this.
The mode that can be closed from the IP address that application layer uses the client refuses the institute of IP address sending There is meteorological data file download request, realize whole meteorological data file download requests of refusal client, but is not limited to the party Formula.
Application layer refers to the layer 7 of seven layers of osi model, directly provides service for application process, and effect is more in realization While a system application process is in communication with each other, a series of service needed for completing business processings.Https agreement belongs to application layer Agreement.
Whole meteorological datas text that the embodiment of the present invention passes through the refusal client in the case where erroneous authentication window overflows Part downloading request, can improve the safety of meteorological data file transmission.
Content based on the various embodiments described above, after being authenticated to client further include: if certification passes through, according to mesh Mark the file information judges that file destination whether there is;If it exists, then allow client downloads file destination.
Specifically, if client certificate passes through, judge that client requests the target of downloading according to file destination information File whether there is in server-side, that is, judge in server-side with the presence or absence of (either with or without) file destination.
If there are the file destinations in server-side, allow the client downloads file destination.
Downloading of the embodiment of the present invention based on https protocol realization meteorological data file, can guarantee meteorological data file Authenticity, integrality, are safely and steadly transmitted, and can improve the safety of meteorological data file transmission.
Content based on the various embodiments described above judges that file destination is also wrapped with the presence or absence of after according to file destination information It includes: if it does not exist, then downloading response is sent to client, to inform that client objectives file is not present.
Specifically, downloading response, refers to response of the client to meteorological data file download request.
Https protocol header can also include status code (StatusCode).Status code is for describing meteorological data file Download state, for example, can be used for describing whether breakpoint transmission, file destination whether there is, whether password mistake etc..Status code For variable.
Since downloading response also carries https protocol header, if file destination is not present, downloading response can be carried Status code in https protocol header is revised as file destination, and there is no corresponding settings, and send downloading response to client.Visitor After family termination accepts load response, it can know that the file destination of this request is not present according to downloading response, in request later In continue request download the file destination.
It should be noted that client download requests are by about in the configuration of period.There are two types of basic for meteorological data file Type: the first be for short term power prediction meteorological data file, the file of the type be usually one day one;Second It is the meteorological data file for ultra-short term power prediction, the file of the type is usually per several minutes one (for example, every 15 Minute one).It, for the first meteorological data file, can be configured for meteorological data file configuration download time section For a hour;For second of meteorological data file, it is configurable to (for example, 15 points identical as the generation interval of file Clock).Since meteorological data file is to the importance of power prediction, and server-side and client do not know what when of file destination Between appear on numerical weather forecast server, therefore, configuration download time section in, if client knows that this is asked The file destination asked is not present, and will continue to request and downloads the file destination;Other than the download time section of configuration, if client Know that the file destination of this request is not present, then can no longer request to download the file destination, and can be in next downloading Between section when arriving, according to the title for the meteorological data file for requesting downloading at this time and/or the information such as MD5 value, judge whether at this time Whether the meteorological data file of request downloading is new file destination.
The embodiment of the present invention by judging that file destination whether there is, and in the absence of inform client so that client The downloading request for continuing to initiate in the download time section of configuration to the file destination is held, can guarantee that bigger may download to needs The meteorological data file wanted.
Fig. 2 is the flow diagram according to meteorological data document transmission method provided in an embodiment of the present invention.Based on above-mentioned The content of each embodiment, as shown in Fig. 2, a kind of meteorological data document transmission method characterized by comprising step S201, to Server-side sends meteorological data file download request, so that server-side is according to entrained by meteorological data file download request Https protocol header is authenticated, and after certification is obstructed, judgement authenticates whether unacceptable number reaches within a preset time period To preset maximum times, and reply judging result;Wherein, meteorological data file download request carries https protocol header; The format of https protocol header is predetermined;Https protocol header includes account authentication information, file destination information and target The current trial download time of file.
It should be noted that the executing subject of meteorological data document transmission method provided in an embodiment of the present invention is client End.
It is communicated between server-side and client based on https agreement.
When client needs to download some meteorological data file, using the meteorological data file as file destination, according to pre- If https protocol header format, generate https protocol header entrained by meteorological data file download request, and generate file Downloading request, sends the meteorological data file download request to server-side.
It, can be with according to the https protocol header that downloading request carries after server-side receives meteorological data file download request Obtain account authentication information, the current trial download time of file destination information and file destination.After obtaining account authentication information, Client is authenticated according to account authentication information.If certification does not pass through, the client is judged within a preset time period It authenticates whether unacceptable number reaches preset maximum times, and visitor can be informed by the downloading response sent to client The judging result whether family end erroneous authentication window overflows.
Step S202, judging result is received, judging result is that not up to, total trial of file destination is downloaded if knowing Number adds 1, and the new total trial download time of the file destination current trial download time new as file destination generates new Meteorological data file download request.
After client receives judging result, if knowing, judging result is to be not up to, and illustrates that erroneous authentication window does not overflow, and And since this meteorological data file download request is not allowed to, can continue to initiate download instruction.Continue to initiate download instruction Detailed process may include: by the current trial download time (AttemptTimes) of file destination plus 1, as next time The current trial download time of file destination in https protocol header entrained by this meteorological data file download request (AttemptTimes), this meteorological data file download request next time is generated, returns and executes transmission meteorological data file The step of downloading request, the file destination is downloaded in request again.
Downloading of the embodiment of the present invention based on https protocol realization meteorological data file, and recognize according to whether meeting mistake It demonstrate,proves window to overflow, it is determined whether allow to download, in conjunction with Modern transmission technology and corresponding security strategy, can guarantee meteorological data file Authenticity, integrality, safely and steadly transmit, can improve meteorological data file transmission safety.Further, can be Power prediction progress is grasped in real time, is provided safeguard for the accuracy rate of new energy power plant power prediction.
Content based on the various embodiments described above, receive judging result after further include: if know judging result be reach, Notify scheduled staff.
Specifically, after client receives judging result, if knowing, judging result is to reach, and illustrates that erroneous authentication window overflows Out, there is mistake in some part in the transmission of meteorological data file, needs to handle by staff, therefore, client End can notify scheduled staff by sending the modes such as short message, instant communication information, Email.Scheduled work people Member can be received by terminals such as mobile phone, computers and be notified, to be handled in time.
The embodiment of the present invention is by notifying scheduled staff when erroneous authentication window overflows, so that staff Can technology to meteorological data file transmission in mistake excluded and handled, can in real time, notify staff in time, be able to achieve The real-time informing of meteorological data Record Carrier completeness guarantees that meteorological data file security steadily transmits.
Fig. 3 is the functional block diagram according to meteorological data file transfer means provided in an embodiment of the present invention.Based on above-mentioned each The content of embodiment, as shown in figure 3, the meteorological data file transfer means include authentication module 301 and judgment module 302, In:
Authentication module 301, for receiving the meteorological data file download request of client transmission, according to meteorological data file The entrained https protocol header of downloading request, authenticates client;
It is unacceptable to judge that client authenticates within a preset time period if not passing through for authenticating for judgment module 302 Whether number reaches preset maximum times;If not up to, according to the current trial download time of requested file destination Judge whether to meet preset force download condition;If satisfied, then allowing client downloads file destination;If not satisfied, then not Allow client downloads file destination;
Wherein, the format of https protocol header is predetermined;Https protocol header includes account authentication information, target text The current trial download time of part information and file destination.
Specifically, it after authentication module 301 receives meteorological data file download request, is carried according to downloading request Https protocol header, the current trial download time of available account authentication information, file destination information and file destination;It obtains After obtaining account authentication information, client is authenticated according to account authentication information.
If certification does not pass through, judgment module 302 judges in the preset period whether is the unacceptable number of client certificate Preset maximum times (i.e. whether erroneous authentication window overflows) reached, if erroneous authentication window does not overflow, according to file destination Current trial download time judge whether to meet preset force download condition, if satisfied, then allowing client downloads target File;If not satisfied, not allowing client downloads file destination then.
Meteorological data file transfer means provided in an embodiment of the present invention are server-side, are mentioned for executing the embodiment of the present invention The service end side meteorological data document transmission method of confession, the submodule which includes realize corresponding function The specific method and process of energy are detailed in the embodiment of above-mentioned service end side meteorological data document transmission method, and details are not described herein again.
The meteorological data file transfer means are used for the service end side meteorological data document transmission method of foregoing embodiments. Therefore, the description and definition in the service end side meteorological data document transmission method in foregoing embodiments, can be used for this The understanding of each execution module in inventive embodiments.
Downloading of the embodiment of the present invention based on https protocol realization meteorological data file, and recognize according to whether meeting mistake It demonstrate,proves window to overflow and force download condition, it is determined whether allow to download, in conjunction with Modern transmission technology and corresponding security strategy, can protect Authenticity, the integrality for demonstrate,proving meteorological data file, are safely and steadly transmitted, and can improve the safety of meteorological data file transmission. Further, it can be provided safeguard to grasp power prediction progress in real time for the accuracy rate of new energy power plant power prediction.
Fig. 4 is the functional block diagram according to meteorological data file transfer means provided in an embodiment of the present invention.Based on above-mentioned each The content of embodiment, as shown in figure 4, the meteorological data file transfer means include sending module 401 and receiving module 402, In:
Sending module 401, for sending meteorological data file download request to server-side, so that server-side is according to meteorology The entrained https protocol header of data file downloading request is authenticated, and after certification is obstructed, is judged in the preset period Whether the interior unacceptable number of certification reaches preset maximum times, and replys judging result;
Receiving module 402, for receiving judging result, if knowing, judging result is not up to, by the total of file destination It attempts download time and adds 1, the current trial download time using the new total trial download time of file destination as file destination newly, Generate new meteorological data file download request;
Wherein, meteorological data file download request carries https protocol header;The format of https protocol header is pre-defined 's;Https protocol header includes the current trial download time of account authentication information, file destination information and file destination.
Specifically, sending module 401 sends the meteorological data file download request for carrying https protocol header to server-side.
The certification that receiving module 402 receives server-side reply is obstructed out-of-date, to client certification in the preset period Whether unacceptable number reaches the judging result of preset maximum times, and when knowing that judging result is not up to after supervention Play download instruction.
Meteorological data file transfer means provided in an embodiment of the present invention are client, are mentioned for executing the embodiment of the present invention The client-side meteorological data document transmission method of confession, the submodule which includes realize corresponding function The specific method and process of energy are detailed in the embodiment of above-mentioned client-side meteorological data document transmission method, and details are not described herein again.
The meteorological data file transfer means are used for the client-side meteorological data document transmission method of foregoing embodiments. Therefore, the description and definition in the client-side meteorological data document transmission method in foregoing embodiments can be used for this The understanding of each execution module in inventive embodiments.
Downloading of the embodiment of the present invention based on https protocol realization meteorological data file, and recognize according to whether meeting mistake It demonstrate,proves window to overflow, it is determined whether allow to download, in conjunction with Modern transmission technology and corresponding security strategy, can guarantee meteorological data file Authenticity, integrality, safely and steadly transmit, can improve meteorological data file transmission safety.Further, can be Power prediction progress is grasped in real time, is provided safeguard for the accuracy rate of new energy power plant power prediction.
Fig. 5 is the structural block diagram according to electronic equipment provided in an embodiment of the present invention.Content based on the above embodiment, such as Shown in Fig. 5, which may include: processor (processor) 501, memory (memory) 502 and bus 503;Its In, processor 501 and memory 502 pass through bus 503 and complete mutual communication;Processor 501 is stored in for calling In reservoir 502 and the computer program instructions that can be run on processor 501, to execute provided by above-mentioned each method embodiment Method, for example, the meteorological data file download request that client is sent is received, according to meteorological data file download request institute The https protocol header of carrying, authenticates client, if certification does not pass through, judges client within a preset time period Authenticate whether unacceptable number reaches preset maximum times, if not up to, according to the current of requested file destination Download time is attempted to judge whether to meet preset force download condition, if satisfied, then allow client downloads file destination, if It is unsatisfactory for, does not then allow client downloads file destination;Alternatively, meteorological data file download request is sent to server-side, so that Server-side https protocol header according to entrained by meteorological data file download request is obtained to be authenticated, after certification is obstructed, root Judge whether to meet preset force download condition according to the current trial download time of requested file destination, and replys judgement As a result, receiving judging result, if knowing, judging result is not up to, total trial download time of file destination to be added 1, by mesh The new total trial download time of the file current trial download time new as file destination is marked, new meteorological data file is generated Downloading request.
Another embodiment of the present invention discloses a kind of computer program product, and computer program product is non-transient including being stored in Computer program on computer readable storage medium, computer program include program instruction, when program instruction is held by computer When row, computer is able to carry out method provided by above-mentioned each method embodiment, for example, receives the meteorology that client is sent Data file downloading request, according to https protocol header entrained by meteorological data file download request, recognizes client Card, if certification do not pass through, judge client authenticate within a preset time period unacceptable number whether reach it is preset most Big number, if not up to, judging whether to meet according to the current trial download time of requested file destination preset strong Downloading condition processed, if satisfied, then allowing client downloads file destination, if not satisfied, not allowing then client downloads target literary Part;Alternatively, meteorological data file download request is sent to server-side, so that server-side is according to meteorological data file download request Entrained https protocol header is authenticated, and after certification is obstructed, is downloaded according to the current trial of requested file destination Number judges whether to meet preset force download condition, and replys judging result, judging result is received, if knowing judging result Not up to, then total trial download time of file destination to be added 1, using the new total trial download time of file destination as target The new current trial download time of file, generates new meteorological data file download request.
In addition, the logical order in above-mentioned memory 502 can be realized by way of SFU software functional unit and conduct Independent product when selling or using, can store in a computer readable storage medium.Based on this understanding, originally The technical solution of the inventive embodiments substantially part of the part that contributes to existing technology or the technical solution in other words It can be embodied in the form of software products, which is stored in a storage medium, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes the present invention respectively The all or part of the steps of a embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk Etc. the various media that can store program code.
Another embodiment of the present invention provides a kind of non-transient computer readable storage medium, non-transient computer readable storages Medium storing computer instruction, computer instruction makes computer execute method provided by above-mentioned each method embodiment, such as wraps It includes: the meteorological data file download request that client is sent is received, according to https entrained by meteorological data file download request Protocol header authenticates client, if certification does not pass through, it is unacceptable to judge that client authenticates within a preset time period Whether number reaches preset maximum times, if not up to, according to the current trial download time of requested file destination Judge whether to meet preset force download condition, if satisfied, then allowing client downloads file destination, if not satisfied, then not Allow client downloads file destination;Alternatively, to server-side send meteorological data file download request so that server-side according to Https protocol header entrained by meteorological data file download request is authenticated, after certification is obstructed, according to requested mesh The current trial download time of mark file judges whether to meet preset force download condition, and replys judging result, and reception is sentenced It is disconnected as a result, judging result is not up to, total trial download time of file destination to be added 1 if knowing, it is that file destination is new It is total to attempt the download time current trial download time new as file destination, generate new meteorological data file download request.
The apparatus embodiments described above are merely exemplary, wherein unit can be as illustrated by the separation member Or may not be and be physically separated, component shown as a unit may or may not be physical unit, i.e., It can be located in one place, or may be distributed over multiple network units.It can select according to the actual needs therein Some or all of the modules achieves the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creative labor In the case where dynamic, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Such understanding, above-mentioned skill Substantially the part that contributes to existing technology can be embodied in the form of software products art scheme in other words, the calculating Machine software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used So that a computer equipment (can be personal computer, server or the network equipment etc.) executes above-mentioned each implementation The method of certain parts of example or embodiment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of meteorological data document transmission method characterized by comprising
The meteorological data file download request that client is sent is received, according to entrained by the meteorological data file download request Https protocol header authenticates the client;
If certification does not pass through, judge that the client authenticates whether unacceptable number reaches default within a preset time period Maximum times;If not up to, judging whether to meet according to the current trial download time of requested file destination default Force download condition;If satisfied, then allowing file destination described in the client downloads;If not satisfied, not allowing then described File destination described in client downloads;
Wherein, the format of https protocol header is predetermined;Https protocol header includes account authentication information, file destination letter The current trial download time of breath and the file destination.
2. meteorological data document transmission method according to claim 1, which is characterized in that the judgement client exists Whether the interior unacceptable number of certification of preset period reaches after preset maximum times further include:
If reaching, refuse whole meteorological data file download requests of the client.
3. meteorological data document transmission method according to claim 1 or 2, which is characterized in that described to the client After being authenticated further include:
If certification passes through, judge that the file destination whether there is according to the file destination information;
If it exists, then allow file destination described in the client downloads.
4. meteorological data document transmission method according to claim 3, which is characterized in that described according to the file destination After information judges that the file destination whether there is further include:
If it does not exist, then downloading response is sent to the client, to inform that file destination described in the client is not present.
5. a kind of meteorological data document transmission method characterized by comprising
Meteorological data file download request is sent to server-side, so that the server-side is according to the meteorological data file download The entrained https protocol header of request is authenticated, and after certification is obstructed, judgement authenticates within a preset time period not to be passed through Number whether reach preset maximum times, and reply judging result;
The judging result is received, the judging result is not up to, by total trial download time of file destination if knowing Add 1, the new total trial download time of the file destination current trial download time new as the file destination generates New meteorological data file download request;
Wherein, the meteorological data file download request carries https protocol header;The format of the https protocol header is preparatory Definition;The https protocol header includes under the current trial of account authentication information, file destination information and the file destination Carry number.
6. meteorological data document transmission method according to claim 5, which is characterized in that described to receive the judging result Later further include:
If knowing, the judging result is to reach, and notifies scheduled staff.
7. a kind of meteorological data file transfer means characterized by comprising
Authentication module, for receiving the meteorological data file download request of client transmission, according under the meteorological data file The entrained https protocol header of request is carried, the client is authenticated;
Judgment module judges that the client authenticates unacceptable time within a preset time period if not passing through for authenticating Whether number reaches preset maximum times;If not up to, being sentenced according to the current trial download time of requested file destination It is disconnected whether to meet preset force download condition;If satisfied, then allowing file destination described in the client downloads;If discontented Foot, then do not allow file destination described in the client downloads;
Wherein, the format of https protocol header is predetermined;Https protocol header includes account authentication information, file destination letter The current trial download time of breath and the file destination.
8. a kind of meteorological data file transfer means characterized by comprising
Sending module, for sending meteorological data file download request to server-side, so that the server-side is according to the gas Https protocol header entrained by image data file download request is authenticated, and after certification is obstructed, is judged in the preset time Whether the unacceptable number of certification reaches preset maximum times in section, and replys judging result;
Receiving module, for receiving the judging result, if knowing, the judging result is not up to, by the total of file destination It attempts download time and adds 1, using the current trial new as the file destination of the new total trial download time of the file destination Download time generates new meteorological data file download request;
Wherein, the meteorological data file download request carries https protocol header;The format of the https protocol header is preparatory Definition;The https protocol header includes under the current trial of account authentication information, file destination information and the file destination Carry number.
9. a kind of electronic equipment characterized by comprising
At least one processor;And
At least one processor being connect with the processor communication, in which:
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to instruct energy Enough methods executed as described in claim 1 to 6 is any.
10. a kind of non-transient computer readable storage medium, which is characterized in that the non-transient computer readable storage medium is deposited Computer instruction is stored up, the computer instruction makes the computer execute the method as described in claim 1 to 6 is any.
CN201811494353.6A 2018-12-07 2018-12-07 Meteorological data file transmission method and device Active CN109639666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811494353.6A CN109639666B (en) 2018-12-07 2018-12-07 Meteorological data file transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811494353.6A CN109639666B (en) 2018-12-07 2018-12-07 Meteorological data file transmission method and device

Publications (2)

Publication Number Publication Date
CN109639666A true CN109639666A (en) 2019-04-16
CN109639666B CN109639666B (en) 2020-12-25

Family

ID=66071895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811494353.6A Active CN109639666B (en) 2018-12-07 2018-12-07 Meteorological data file transmission method and device

Country Status (1)

Country Link
CN (1) CN109639666B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112087510A (en) * 2020-09-08 2020-12-15 工银科技有限公司 Request processing method and device, electronic equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102693506A (en) * 2012-06-08 2012-09-26 北京惠银通联科技有限公司 Device and method for supporting operation of mobile traction business process
CN103052060A (en) * 2011-10-17 2013-04-17 联想(北京)有限公司 Method for improving information security of mobile terminal and mobile terminal
CN105897911A (en) * 2016-05-20 2016-08-24 广州优视网络科技有限公司 File downloading method and device and user terminal
CN106250192A (en) * 2016-08-04 2016-12-21 芯讯通无线科技(上海)有限公司 The method for upgrading software of host computer and system
CN106598661A (en) * 2016-12-08 2017-04-26 上海众人网络安全技术有限公司 Method and system for dynamically updating plug-in
US20180101375A1 (en) * 2016-10-12 2018-04-12 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Data storage device initiation of firmware download during inactivity

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103052060A (en) * 2011-10-17 2013-04-17 联想(北京)有限公司 Method for improving information security of mobile terminal and mobile terminal
CN102693506A (en) * 2012-06-08 2012-09-26 北京惠银通联科技有限公司 Device and method for supporting operation of mobile traction business process
CN105897911A (en) * 2016-05-20 2016-08-24 广州优视网络科技有限公司 File downloading method and device and user terminal
CN106250192A (en) * 2016-08-04 2016-12-21 芯讯通无线科技(上海)有限公司 The method for upgrading software of host computer and system
US20180101375A1 (en) * 2016-10-12 2018-04-12 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Data storage device initiation of firmware download during inactivity
CN106598661A (en) * 2016-12-08 2017-04-26 上海众人网络安全技术有限公司 Method and system for dynamically updating plug-in

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112087510A (en) * 2020-09-08 2020-12-15 工银科技有限公司 Request processing method and device, electronic equipment and medium
CN112087510B (en) * 2020-09-08 2022-10-28 中国工商银行股份有限公司 Request processing method, device, electronic equipment and medium

Also Published As

Publication number Publication date
CN109639666B (en) 2020-12-25

Similar Documents

Publication Publication Date Title
US10425465B1 (en) Hybrid cloud API management
CN102638454B (en) Plug-in type SSO (single signon) integration method oriented to HTTP (hypertext transfer protocol) identity authentication protocol
US9654480B2 (en) Systems and methods for profiling client devices
CN101873331B (en) Safety authentication method and system
CN108551443A (en) A kind of application login method, device, terminal device and storage medium
CN112800411B (en) Multi-protocol and multi-mode supporting safe and reliable identity authentication method and device
CN110493184B (en) Method and device for processing login page in client and electronic device
CN104753674B (en) A kind of verification method and equipment of application identity
WO2011162838A1 (en) Security model for workflows aggregating third party secure services
CN109257365B (en) Information processing method, device, equipment and storage medium
CN110086755A (en) Realize method, application server, internet of things equipment and the medium of Internet of Things service
CN108632325A (en) A kind of call method and device of application
CN110099031A (en) A kind of service calling method, device and micro services platform
CN110648241B (en) Method and device for processing claims based on micro-service architecture
CN110276193A (en) Feature of risk output method, using progress control method, system and device
CN107317852A (en) Smart machine, communication system and the method extended based on MODBUS
CN114286416A (en) Communication control method and device, electronic device and storage medium
US20220377064A1 (en) Method and system for managing a web security protocol
WO2016188325A1 (en) Data charging method and apparatus
CN108875004A (en) resource access method and device
CN104823410B (en) Parameter setting system, program managing device and information processing unit
CN105184559B (en) A kind of payment system and method
CN109639666A (en) Meteorological data document transmission method and device
CN104243488B (en) A kind of login authentication method of inter-network site server
CN106021375A (en) Database access method and database agent node

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