CN113746900A - Intranet and extranet data transmission method, electronic device and computer readable storage medium - Google Patents

Intranet and extranet data transmission method, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN113746900A
CN113746900A CN202110882634.4A CN202110882634A CN113746900A CN 113746900 A CN113746900 A CN 113746900A CN 202110882634 A CN202110882634 A CN 202110882634A CN 113746900 A CN113746900 A CN 113746900A
Authority
CN
China
Prior art keywords
data
transmission
intranet
extranet
transmission data
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
CN202110882634.4A
Other languages
Chinese (zh)
Other versions
CN113746900B (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.)
Shenzhen Digital Power Grid Research Institute of China Southern Power Grid Co Ltd
Original Assignee
Shenzhen Digital Power Grid Research Institute of China Southern Power Grid Co Ltd
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 Shenzhen Digital Power Grid Research Institute of China Southern Power Grid Co Ltd filed Critical Shenzhen Digital Power Grid Research Institute of China Southern Power Grid Co Ltd
Priority to CN202110882634.4A priority Critical patent/CN113746900B/en
Publication of CN113746900A publication Critical patent/CN113746900A/en
Application granted granted Critical
Publication of CN113746900B publication Critical patent/CN113746900B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • 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/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses an internal and external network data transmission method, electronic equipment and a computer readable storage medium, and relates to the technical field of data transmission. The method comprises the steps of obtaining a service request for data transmission, obtaining initial transmission data to be transmitted according to the service request, processing the initial transmission data to obtain target transmission data, calling an internal and external network transmission channel of an internal and external network exchange platform according to the target transmission data, transmitting the target transmission data to a receiving end platform through the internal and external network transmission channel, processing the target transmission data by the receiving end platform to obtain the initial transmission data, and avoiding the conditions of overlarge service pressure and overload service when the internal and external network exchange platform transmits the internal and external network data, thereby improving the stability of data transmission between the internal and external networks.

Description

Intranet and extranet data transmission method, electronic device and computer readable storage medium
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to an intranet and extranet data transmission method, an electronic device, and a computer-readable storage medium.
Background
With the high-speed development of the internet, the problem of internet security is increasingly serious, at present, in order to guarantee data security, when data sharing transmission is carried out, a network is generally divided into an internal network environment and an external network environment with different security levels, and data exchange between the internal network and the external network is carried out in an information ferrying mode by adopting an internal and external network exchange platform, namely an isolation network gate. However, in this data exchange manner, the intranet and extranet exchange platform is basically responsible for processing and transmitting all requested data, and this situation may cause a problem of an excessive service pressure at the intranet and extranet exchange platform, which may result in overload of the intranet and extranet exchange platform, or even failure of the intranet and extranet exchange platform, and thus data transmission between the intranet and extranet is not possible.
Disclosure of Invention
The present application is directed to solving at least one of the problems in the prior art. Therefore, the application provides an intranet and extranet data transmission method, an electronic device and a computer readable storage medium, which can avoid the situations of overlarge service pressure and overload service when an intranet and extranet exchange platform transmits intranet and extranet data, and improve the stability of intranet and extranet data transmission.
The application also provides an internal and external network data transmission method.
The application also provides the electronic equipment with the internal and external network data transmission method.
The application also provides a computer readable storage medium with the internal and external network data transmission method.
According to the first aspect of the application, the internal and external network data transmission method comprises the following steps: acquiring a service request for data transmission; acquiring initial transmission data to be transmitted according to the service request; processing the initial transmission data to obtain target transmission data; calling an internal and external network transmission channel of an internal and external network exchange platform according to the target transmission data; and transmitting the target transmission data to a receiving end platform through the internal and external network transmission channels, and processing the target transmission data by the receiving end platform to obtain the initial transmission data.
The internal and external network data transmission method according to the embodiment of the application has at least the following beneficial effects: the method comprises the steps of obtaining a service request for data transmission, obtaining initial transmission data to be transmitted according to the service request, processing the initial transmission data to obtain target transmission data, calling an internal and external network transmission channel of an internal and external network exchange platform according to the target transmission data, transmitting the target transmission data to a receiving end platform through the internal and external network transmission channel, processing the target transmission data by the receiving end platform to obtain the initial transmission data, and avoiding the conditions of overlarge service pressure and overload service when the internal and external network exchange platform transmits the internal and external network data, thereby improving the stability of data transmission between the internal and external networks.
According to some embodiments of the present application, the processing the initial transmission data to obtain target transmission data includes: acquiring a priority parameter of the service request; and configuring a time delay parameter for the initial transmission data according to the priority parameter to obtain the target transmission data.
According to some embodiments of the present application, the intranet and extranet transmission channels comprise structured transmission channels; correspondingly, the calling an intranet and extranet transmission channel of the intranet and extranet exchange platform according to the target transmission data includes: and calling a structured transmission channel of the internal and external network exchange platform according to the time delay parameter of the target transmission data and the structured data type of the target transmission data.
According to some embodiments of the present application, the intranet and extranet transmission channels comprise structured transmission channels; correspondingly, the calling an intranet and extranet transmission channel of the intranet and extranet exchange platform according to the target transmission data includes: and calling an unstructured transmission channel of the internal and external network exchange platform according to the time delay parameter of the target transmission data and the unstructured data type of the target transmission data.
According to some embodiments of the present application, the processing the initial transmission data to obtain target transmission data includes: and carrying out fragmentation processing on the initial transmission data to obtain a plurality of fragmentation transmission data.
According to some embodiments of the present application, the invoking an intranet and extranet transmission path of an intranet and extranet exchange platform according to the target transmission data includes:
and calling a structured transmission channel of the internal and external network exchange platform according to the plurality of fragment transmission data.
According to some embodiments of the present application, the target transmission data comprises a data check code; and acquiring a verification result of the target transmission data returned by the receiving end platform, wherein the verification result is obtained by verifying the target transmission data by the receiving end platform according to the data verification code.
According to some embodiments of the application, further comprising: recording the current transmission state information of the target transmission data, and acquiring the acquisition state information of the target transmission data returned by the receiving end platform; and transmitting the target transmission data to a receiving end platform through the internal and external network transmission channel again according to the transmission state information and the acquired state information.
An electronic device according to a second aspect embodiment of the present application includes: at least one processor, and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions that are executed by the at least one processor, so that the at least one processor, when executing the instructions, implements the intranet and extranet data transmission method according to the first aspect.
According to the electronic equipment of this application, have at least following beneficial effect: by implementing the internal and external network data transmission method in the first aspect, the situations of overlarge service pressure and overload service can be avoided when the internal and external network exchange platform transmits the internal and external network data, and the stability of the internal and external network data transmission is improved.
According to a third aspect of the present application, there is provided a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the intranet and extranet data transmission method according to the first aspect.
The computer-readable storage medium according to the present application has at least the following advantageous effects: by implementing the internal and external network data transmission method in the first aspect, the situations of overlarge service pressure and overload service can be avoided when the internal and external network exchange platform transmits the internal and external network data, and the stability of the internal and external network data transmission is improved.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
Fig. 1 is a schematic diagram illustrating an embodiment of an intranet and extranet data transmission architecture according to the present application;
FIG. 2 is a schematic flow chart illustrating an embodiment of an intranet and extranet data method according to the present disclosure;
FIG. 3 is a diagram of a first embodiment of an intranet and extranet data method according to an embodiment of the present application;
FIG. 4 is a diagram of a second embodiment of an intranet and extranet data method according to an embodiment of the present application;
FIG. 5 is a diagram of a third exemplary application of the intranet and extranet data method in the embodiment of the present application;
fig. 6 is a diagram of a fourth specific application example of the intranet and extranet data method in the embodiment of the present application.
Reference numerals:
an extranet platform 100, an extranet synchronization module 110, an extranet file synchronization module 111, an extranet data synchronization module 112, an extranet service module 120, an intranet platform 200, an intranet synchronization module 210, an intranet file synchronization module 211, an intranet data synchronization module 212 and an intranet service module 220; an intranet and extranet exchange platform 300 and an intranet and extranet transmission channel 310.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
It should be noted that the logical order is shown in the flowcharts, but in some cases, the steps shown or described may be performed in an order different from the flowcharts. If the term "a number" is used, it is intended to mean more than one, if the term "a number" is used, it is intended to mean more than two, and if the term "less than one" is used, it is intended to include the number. The use of any and all examples, or exemplary language ("e.g.," such as "etc.), provided herein is intended merely to better illuminate embodiments of the application and does not pose a limitation on the scope of the application unless otherwise claimed. The terms greater than, less than, more than, etc. are understood to exclude the essential numbers, and the terms greater than, less than, and the like are understood to include the essential numbers. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
It is noted that, as used in the examples, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Furthermore, unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used herein, the term "and/or" includes any combination of one or more of the associated listed items.
With the high-speed development of the internet, the problem of internet security is increasingly serious, at present, in order to guarantee data security, when data sharing transmission is carried out, a network is generally divided into an internal network environment and an external network environment with different security levels, and data exchange between the internal network and the external network is carried out in an information ferrying mode by adopting an internal and external network exchange platform, namely an isolation network gate. However, in this data exchange manner, the intranet and extranet exchange platform is basically responsible for processing and transmitting all requested data, and this situation may cause a problem of an excessive service pressure at the intranet and extranet exchange platform, which may result in overload of the intranet and extranet exchange platform, or even failure of the intranet and extranet exchange platform, and thus data transmission between the intranet and extranet is not possible.
Based on this, the embodiment of the application provides an intranet and extranet data transmission method, an electronic device and a computer readable storage medium, which can avoid the situations of overlarge service pressure and overload service when an intranet and extranet exchange platform performs intranet and extranet data transmission, and improve the stability of intranet and extranet data transmission.
It should be noted that the intranet and extranet data transmission method mentioned in the embodiment of the present application is performed by an intranet and extranet data transmission architecture shown in fig. 1, and includes an extranet platform 100, an intranet platform 200, and an intranet and extranet exchange platform 300. The extranet platform 100 includes an extranet synchronization module 110 and an extranet service module 120, and the extranet synchronization module 110 is configured to synchronize data transmitted by the intranet platform 200 and perform corresponding synchronization processing; or the data to be transmitted to the intranet platform 200 is processed and then transmitted to the intranet platform 200; the extranet synchronization module 110 further includes an extranet data synchronization module 112111 and an extranet data synchronization module, and the extranet data synchronization module delivers data to different synchronization modules for processing according to different data types of data transmitted to the intranet platform 200 or received from the intranet platform 200, for example, unstructured data is processed by the extranet data synchronization module 112111, and structured data is processed by the extranet data synchronization module; the extranet service module 120 is configured to perform a service on the received transmission data of the structured data type of the intranet platform 200 or initiate a service to generate a corresponding service request to the intranet synchronization module 210.
The intranet platform 200 comprises an intranet synchronization module 210 and an intranet service module 220, wherein the intranet synchronization module 210 is used for synchronizing data transmitted by the extranet platform 100 and performing corresponding synchronization processing; or the data to be transmitted to the extranet platform 100 is processed and then transmitted to the extranet platform 100; the intranet synchronization module 210 further includes an intranet file synchronization module 211 and an intranet data synchronization module 212, and the data types of the data transmitted to the extranet platform 100 or received from the extranet platform 100 are processed by different synchronization modules according to the needs, for example, the data of the unstructured type is processed by the intranet file synchronization module 211, and the data of the structured type is processed by the intranet data synchronization module 212; the intranet service module 220 is configured to perform a service processing service on the received transmission data of the structured data type of the extranet, or initiate a service to generate a corresponding service request to the intranet synchronization module 210.
The intranet and extranet exchange platform 300 serves as an isolation network for the intranet platform 200 and the extranet platform 100, and performs data transmission between the intranet and the extranet by providing an intranet and extranet transmission channel 310. The intranet and extranet transmission channel 310 is divided into a structured transmission channel and an unstructured transmission channel, the structured transmission channel is mainly responsible for transmitting structured data between the intranet and the extranet, and the unstructured transmission channel is mainly responsible for transmitting unstructured data between the intranet and the extranet.
Structured data, which is data that can be represented by data or a uniform structure, such as numbers, words, symbols, is described with respect to both structured data and unstructured data. The structured data is also called row data, is data logically expressed and realized by a two-dimensional table structure, strictly follows the data format and length specification, and is mainly stored and managed by a relational database; unstructured data is data that is irregular or incomplete in data structure, has no predefined data model, and is not conveniently represented by a database two-dimensional logical table, including image and audio/video information, and the like.
In a first aspect, an embodiment of the present application provides an intranet and extranet data transmission method.
It should be noted that, in the embodiment of the present application, the method for executing internal and external network data transmission is a sending end platform, where the sending end platform refers to a platform for transmitting data to a receiving end platform, and when the intranet platform 200 needs to transmit data to the external network platform 100, the intranet platform 200 is the sending end platform, and the external network platform 100 is the receiving end platform; when the extranet platform 100 needs to transmit data to the intranet platform 200, the extranet platform 100 is a sending-end platform, and the intranet platform 200 is a receiving-end platform. Thus, it can be determined that intranet platform 200 and extranet platform 100 perform the same or similar data processing steps when receiving transmission data and perform the same or similar data processing steps when sending transmission data.
It should be noted that, in order to facilitate understanding of the solutions described in the present application, the sending-end platform is taken as the extranet platform 100, and the receiving-end platform is taken as the intranet platform 200 in the embodiments of the present application for illustration.
In some embodiments, referring to fig. 2, a schematic flow chart diagram of an internal and external network data transmission method in an embodiment of the present application is shown. The method specifically comprises the following steps:
s100, acquiring a service request for data transmission;
s200, acquiring initial transmission data to be transmitted according to the service request;
s300, processing the initial transmission data to obtain target transmission data;
s400, calling an internal and external network transmission channel of the internal and external network exchange platform according to the target transmission data;
s500, transmitting the target transmission data to a receiving end platform through an internal and external network transmission channel, and processing the target transmission data by the receiving end platform to obtain initial transmission data.
In step S100, the receiving end platform obtains a real-time service request of a user, where the service request is used to indicate that the user needs to transmit data to the receiving end platform, specifically, by calling an API interface provided by the extranet synchronization module 110, the extranet synchronization module 110 obtains a service request generated in the extranet service module 120 through the API interface, and different service requests correspond to different transmission data.
In step S200, the initial transmission data to be transmitted is obtained according to the received service request, and in practical applications, the data types of the initial transmission data obtained according to different service requests are different, including the initial transmission data of a structured type and the initial transmission data of an unstructured type. According to different data types, the manner of acquiring corresponding initial transmission data is also different, for example, when the data to be transmitted is unstructured initial transmission data, the corresponding initial transmission data, such as data of a File, needs to be called from a File system, and the File system is a database system established based on SFTP (secure File Transfer Protocol) and stores related File data and the like inside; if the initial transmission data of the structured type needs to be transmitted, the corresponding initial transmission data, such as tables, characters and the like, is phished from the database.
In step S300, the acquired initial transmission data is processed to obtain target transmission data. The processing of the initial transmission data refers to processing according to the actual situation of the service request, for example, configuring a time delay parameter for the initial transmission data, that is, delaying transmission of the initial transmission data to the receiving end platform, so as to achieve non-real-time data synchronization; or the data transmission method can perform fragmentation processing based on the data size and the data type of the initial transmission data to obtain smaller data, thereby achieving data synchronization of batch transmission and the like. The specific data processing method can be processed according to the priority required by the service request, and the data type and data size of the initial transmission data.
In step S400, the intranet/extranet transmission channels 310 of the intranet/extranet exchange platform 300 are called according to the target transmission data, and specifically, the corresponding intranet/extranet transmission channels 310 are called according to the data type of the target transmission data, that is, different data types correspond to different types of intranet/extranet transmission channels 310. For example, when the data type of the target transmission data is an unstructured type, an unstructured transmission channel of the intranet and extranet exchange platform 300 is called; when the data type of the target transmission data is a structured type, a structured transmission channel of the intranet and extranet exchange platform 300 is called. In practical application, the calling to the corresponding intranet and extranet transmission channel 310 is realized by calling the API interface corresponding to the transmission channel in the intranet and extranet exchange platform 300.
In step S500, after the intranet/extranet transmission channel 310 is called, the target transmission data may be transmitted to the receiving end platform through the intranet/extranet transmission channel 310, and the receiving end platform processes the target transmission data to obtain the initial transmission data. The processing of the target transmission data by the receiving end platform refers to a data processing mode which is reverse to the processing of the sending end on the initial transmission data, for example, when the sending end platform configures a time delay parameter for the initial transmission data to perform data transmission, the receiving end platform receives the target transmission data transmitted by the sending end platform after a certain time, and at this time, the target transmission data is not configured with the time delay parameter any more, that is, the data received by the receiving end platform is the initial transmission data of the sending end; if the target transmission data sent by the sending end platform is data obtained after fragmentation processing is carried out on the initial transmission data, the receiving end platform needs to carry out recovery processing on the transmission data after fragmentation after receiving the target transmission data and merge the transmission data into original complete initial transmission data, so that data transmission and exchange between the internal network and the external network are completed.
In some embodiments, the step S300 mentioned in the embodiments of the present application specifically further includes: and acquiring a priority parameter of the service request, and configuring a time delay parameter for the initial transmission data according to the priority parameter to obtain target transmission data. Specifically, the priority of the service corresponding to the service request and/or the queue condition of the current data transmission in the extranet synchronization module are called from a preset database, and a specific time delay parameter, that is, the time required to delay the transmission, is calculated. In practical application, different service requests identify different service services, the service services have different priorities, corresponding priorities are determined according to the importance of the service services, and a data transmission task which is in progress or is in progress may also exist in an external network synchronization module, a specific time delay parameter is obtained through the processing progress of the data transmission task and the priority calculation of the service request, so that the time delay parameter is configured for initial transmission data to obtain target transmission data, namely the target transmission data is the initial transmission data configured with the time delay parameter, non-real-time internal and external network data synchronization can be realized by configuring the time delay parameter, it is ensured that the internal and external network switching platform 300 does not process a large amount of transmission data at the same time, and overload is avoided.
In some embodiments, when the target transmission data is initial transmission data configured with a delay parameter and the target transmission data type is a structured data type, the structured transmission channel of the intranet and extranet exchange platform 300 is called for data transmission after a certain waiting time according to the delay parameter of the target transmission data. The waiting time is obtained according to the delay parameter, for example, the waiting time determined by the delay parameter is ten seconds, and the target transmission data needs to enter the waiting queue for ten seconds before entering the data transmission link, that is, the structured transmission channel of the intranet and extranet exchange platform 300 is called for data transmission.
In an example of a possible implementation, the initial transmission data to be transmitted of the structured data type is exemplarily illustrated, referring to fig. 3, when the extranet service module 120 in the extranet platform 100 needs to perform a service, the extranet service module 120 calls the API interface of the extranet synchronization module 110 through the service request, and sends the service request to the extranet synchronization module 110, and the extranet synchronization module 110 calls the corresponding initial transmission DATA in the preparation phase, and calculates the TIME delay parameter TIME configured for the initial transmission DATA from the priority parameter configured for the service request, such as the service priority and the priority of the service parameter, after waiting for a certain TIME in the consumption stage, the structured transmission channel of the intranet and extranet exchange platform 300 is called and transmitted to the intranet platform 200, so that the data synchronization condition between the whole intranet and the extranet is obtained. After receiving the initial transmission DATA, the intranet synchronization module 210 of the intranet platform 200 sends the initial transmission DATA to the intranet service module 220 for service processing, and after the service processing, returns a response to the extranet synchronization module 110 of the extranet platform 100, the timing monitor can monitor the synchronization state of the current DATA transmission in real time by calling a query interface in the extranet synchronization module 110, and record the synchronization state, so as to monitor the DATA synchronization condition between the whole intranet and the extranet, and complete the intranet and extranet DATA transmission flow of the transmission DATA of the whole structured DATA type.
In some embodiments, when the target transmission data is the initial transmission data configured with the delay parameter and the data type of the target transmission data is the unstructured data type, the unstructured transmission channel of the intranet and extranet exchange platform 300 is called to perform data transmission after a certain waiting time according to the delay parameter of the target transmission data. The waiting time is obtained according to the delay parameter, for example, the waiting time determined by the delay parameter is ten seconds, and the target transmission data needs to enter the waiting queue for ten seconds before entering the data transmission link, that is, the unstructured transmission channel of the intranet and extranet exchange platform 300 is called for data transmission.
In an application example that may be implemented, an exemplary description is performed on initial transmission DATA to be transmitted in an unstructured DATA type, referring to fig. 4, when an extranet service module 120 in an extranet platform 100 needs to perform a service, the extranet service module 120 calls an API interface of an extranet synchronization module 110 through a service request, sends the service request to the extranet synchronization module 110, the extranet synchronization module 110 will call a corresponding initial transmission DATA File in a preparation phase, and calculate, from a server, a delay parameter TIME configured for an initial transmission DATA from a priority parameter, such as a service priority and a transmission reference priority of the service request, configured for the service request, configure a corresponding DATA check code MD5 for the initial transmission DATA File in a consumption phase, to obtain target transmission DATA, and call an unstructured transmission channel of the extranet exchange platform 300 after waiting for a certain TIME, the data is transmitted to the intranet platform 200, the intranet synchronization module 210 of the intranet platform 200 receives target transmission data comprising an initial transmission data File and a data check code MD5, integrity check is performed on the initial transmission data File through the data check code MD5, whether the data is accurate and complete is checked, if the data is checked to be accurate and complete, the initial transmission data File is stored in a corresponding SFTP database, the current storage progress of the initial transmission data is updated according to the stored result, and a notification of the stored result is returned to the extranet synchronization module 110 of the extranet platform 100; and after the extranet synchronization module 110 receives the notification of the stored result, the SFTP database may monitor the current transmission state of the transmission data through the query interface, and obtain the synchronization condition of the current extranet data and the current extranet data, thereby completing the extranet data transmission process of the transmission data of the whole unstructured data type.
In some embodiments, the step S400 mentioned in the embodiments of the present application further includes: the extranet synchronization module 110 in the extranet platform 100 performs fragmentation processing on the initial transmission data to obtain a plurality of fragmentation transmission data, where the plurality of fragmentation transmission data are the target transmission data mentioned in this embodiment of the present application. In practical application, the obtained initial data is sliced by a file slicing module in the external network synchronization module to obtain a plurality of sliced transmission data, and each sliced transmission data comprises a slicing parameter, including but not limited to: the method comprises the following steps of 1, fragment group ID, original file MD5, fragment ID, fragment MD5, fragment serial number and fragment number; the fragment group ID refers to identification information of a fragment group in which the fragment transmission data is located, the original file MD5 is used for verifying the integrity of the recombined data, the fragment ID is identification information of the fragment transmission data, the fragment MD5 is used for verifying data recombination, the fragment serial number is used for recording the sequence of each fragment transmission data in the whole fragment group, and the fragment number is used for recording the number of the fragment transmission data in the whole fragment group. After receiving the fragmented transmission data transmitted by the sending end platform, the receiving end platform can recombine and check the multiple transmission data according to the fragment parameters, including fragment check and check of the original file after the recombination, and by checking the integrity and correctness of the data transmitted by the internal and external network exchange platform 300, the problem that the correct transmission data cannot be obtained due to errors in the transmission process is avoided.
In some embodiments, when the sending end platform performs fragmentation processing on the initial transmission data to obtain a plurality of corresponding fragmentation transmission data, the sending end platform calls a structured transmission channel of the intranet and extranet exchange platform 300 to perform data transmission according to the plurality of fragmentation transmission data, specifically, a data type of the initial transmission data before fragmentation processing is an unstructured data type, after fragmentation processing, a plurality of fragmentation transmission data are obtained, a data type of the fragmentation transmission data is divided into structured data types, and the intranet and extranet transmission channel 310 to be called is a structured transmission channel and is responsible for transmitting the fragmentation transmission data of which the data type is the structured data type. By carrying out fragment processing on the initial transmission data of the unstructured type, the internal and external network exchange platform 300 can continuously transmit fragment transmission data with smaller data volume in batches, thereby reducing the load pressure of data transmission of the internal and external network exchange platform 300 and avoiding overload.
In some embodiments, the sending end platform configures corresponding delay parameters for multiple pieces of transmission data, and calls the structured transmission channel of the intranet and extranet exchange platform 300 to perform data transmission of the pieces of transmission data after waiting for a certain time, so as to implement non-real-time data synchronization between the intranet and the extranet.
In an application example that may be implemented, for an exemplary description of data transmission after performing fragment processing on initial transmission data to be transmitted, referring to fig. 5, when an external network service module 120 in an external network platform 100 needs to perform a service, the external network service module 120 calls an API interface of the external network synchronization module 110 through a service request, and sends the service request to the external network synchronization module 110, the external network synchronization module 110 will call a corresponding initial transmission data File from an SFTP database, and record a log of the obtained initial transmission data File into a log database, and then perform fragment processing on the initial transmission data File through a File segmentation module of the external network synchronization module 110, to obtain a plurality of corresponding fragment transmission data, such as a plurality of fragment transmission data of fragment 1, fragment 2, fragment n, and the like, each fragment transmission data carries a corresponding fragment parameter, examples include: the method comprises the following steps of 1, grouping ID, original file MD5, grouping ID, grouping MD5, grouping serial number, grouping quantity and the like; the structured transmission channel of the intranet and extranet exchange platform 300 is called to transmit data according to the multiple pieces of transmission data, after the intranet synchronization module 210 of the intranet platform 200 receives the multiple pieces of transmission data, the steps of piece verification, piece recombination, original File verification and the like are sequentially performed on the pieces of transmission data, so that a correct original File, namely an initial transmission data File, is obtained and stored in a corresponding SFTP database, and a response of successfully storing the File is returned to the extranet synchronization module 110, the extranet synchronization module 110 stores the received response in a corresponding log database in a log mode, and thus, an intranet and extranet data transmission flow after the fragmentation processing of the whole initial transmission data is completed.
In some embodiments, the target transmission data of the unstructured data type further includes a data check code, where the data check code is used for the receiving end platform to perform integrity check on the target transmission data after receiving the target transmission data, check whether a data error occurs, and obtain a check result, and if the check result is that the target transmission data does not have a data error, complete data transmission between the internal network and the external network, and specifically, the data check code may be an MD5 check code. After receiving the target transmission data, the receiving end verifies the target transmission data through the MD5 verification code, obtains a corresponding verification result after verification, returns the verification result to the sending end platform, the sending end platform determines the transmission condition of the current target transmission data through the verification result, and if the verification result shows that the verification is successful, the receiving end platform is proved to have successfully received the complete target transmission data; if the verification result shows that the verification fails, the receiving end platform is proved to be unsuccessful in receiving and storing the complete target transmission data, and the target transmission data needs to be sent to the receiving end platform again.
In some embodiments, the extranet synchronization module 110 of the sending end mentioned in this embodiment of the present application may obtain and record transmission state information of the target transmission data, and may obtain the obtaining state information of the receiving end platform according to the received target transmission data, determine a transmission condition of the current target transmission data by combining the transmission state information, the obtaining state information, and the processing state information, and determine whether to resend the target transmission data to the receiving end platform according to a specific transmission condition of the current target transmission data, or resend the target transmission data from the receiving end platform to the intranet service module 220 of the receiving end platform for service processing. In practical application, the target transmission data in the embodiment of the present application is described with respect to the target transmission data of a structured data type, and the data synchronization processing is performed through the extranet data synchronization module and the intranet data synchronization module 212 in the extranet synchronization module 110, so that the abnormal state of the data synchronization between the intranet and the extranet is correspondingly processed, and the problem of abnormal data synchronization is avoided.
In an application example that may be implemented, as shown in fig. 6, the extranet service module 120 calls an interface of the extranet synchronization module 110 to perform a service request, monitors transmission state information of the extranet synchronization module 110 of the sending-end platform within a certain time period through the timing monitor a, and records the monitored transmission state information in a database so as to perform a call record; monitoring the transmission state information of the intranet synchronization module 210 of the receiving end platform in a certain time period through the timing monitor B, recording the monitored acquired state information of the intranet synchronization module 210 into a database so as to call and record the acquired state information and returning the record to the sending end platform; the transmission state information of the intranet service module 220 of the receiving end platform is monitored by the timing monitor C within a certain time period, and the monitored processing state information of the intranet service module 220 is recorded in the database so as to be called and recorded.
For an exemplary explanation of the transmission status information, the acquisition status information, and the processing status information, as shown in table 1 below, when the transmission status information monitored by the timing monitor a is sending, the acquisition status information monitored by the timing monitor B is null, and the processing status information monitored by the timing monitor C is null, it represents that the target transmission data has been sent but has not arrived, which indicates that the outer network synchronization module 110 of the current outer network platform 100 has an error, and at this time, the outer network synchronization module 110 of the outer network platform 100 resends the target transmission data to the inner network platform 200; when the transmission state information monitored by the timing monitor a is sending, the acquisition state information monitored by the timing monitor B is acquired, and the processing state information monitored by the timing monitor C is empty, the external network synchronization module 110 which indicates that the target transmission data has arrived but does not return a notification to notify the external network platform 100 is called back to the external network synchronization module 110, which indicates that the internal network synchronization module 210 of the internal network platform 200 is faulty currently, and at this time, the internal network platform 200 resends the target transmission data to the data synchronization module of the internal network platform 200; when the transmission state information monitored by the timing monitor a is arrived, the acquisition state information monitored by the timing monitor B is arrived, and the processing state information monitored by the timing monitor C is empty, it represents that the target transmission data has been sent but not processed, which indicates that the intranet service module 220 of the intranet platform 200 is faulty currently, and at this time, the intranet synchronization module 210 of the intranet platform 200 resends the target transmission data to the intranet service module 220; when the transmission state information monitored by the timing monitor a is arrived, the acquisition state information monitored by the timing monitor B is arrived, and the processing state information monitored by the timing monitor C is execute, it represents that the target transmission data has been processed but no notification is returned to the extranet platform 100, which indicates that the intranet service module 220 of the intranet platform 200 is faulty currently, and at this time, the data synchronization module of the extranet platform 100 resends the target transmission data to the data synchronization module of the intranet platform 200, and then the intranet synchronization module 210 of the intranet platform 200 sends the target transmission data to the intranet service module 220; when the transmission state information monitored by the timing monitor a is fail, the acquisition state information monitored by the timing monitor B is fail, and the processing state information monitored by the timing monitor C is fail, it indicates that the intranet service module 220 of the intranet platform 200 is faulty, and at this time, the extranet synchronization module 110 of the extranet platform 100 resends the target transmission data to the intranet synchronization module 210 of the intranet platform 200, and the intranet synchronization module 210 of the intranet platform 200 sends the target transmission data to the intranet service module 220 for service processing.
Timing monitor A Timing monitor B Timing monitor C
sending Air conditioner Air conditioner
sending arrived Air conditioner
arrived arrived Air conditioner
arrived arrived execute
fail fail fail
TABLE 1
In the embodiment of the application, by obtaining a service request for data transmission, obtaining initial transmission data to be transmitted according to the service request, processing the initial transmission data to obtain target transmission data, calling an internal and external network transmission channel 310 of an internal and external network exchange platform 300 according to the target transmission data, transmitting the target transmission data to a receiving end platform through the internal and external network transmission channel 310, and processing the target transmission data by the receiving end platform to obtain the initial transmission data, the conditions of overlarge service pressure and overload service can be avoided when the internal and external network exchange platform 300 performs internal and external network data transmission, and the stability of internal and external network data transmission is improved.
In a second aspect, an embodiment of the present application further provides an electronic device, including: at least one processor, and a memory communicatively coupled to the at least one processor;
the processor is configured to execute the intranet and extranet data transmission method in the embodiment of the first aspect by calling a computer program stored in the memory.
The memory, which is a non-transitory computer readable storage medium, may be used to store a non-transitory software program and a non-transitory computer executable program, such as the intranet and extranet data transmission method in the embodiments of the first aspect of the present application. The processor implements the intranet and extranet data transmission method in the above first embodiment by executing the non-transitory software program and the instructions stored in the memory.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the data storage area may store data for performing the intranet and extranet data transmission method in the embodiment of the first aspect. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Non-transitory software programs and instructions required to implement the intranet and extranet data transmission method in the first aspect of the embodiment described above are stored in a memory, and when executed by one or more processors, perform the intranet and extranet data transmission method in the first aspect of the embodiment described above.
In a third aspect, embodiments of the present application further provide a computer-readable storage medium storing computer-executable instructions for: executing the intranet and extranet data transmission method in the first aspect embodiment;
in some embodiments, the computer-readable storage medium stores computer-executable instructions, which are executed by one or more control processors, for example, by one of the electronic devices of the second aspect, and may cause the one or more processors to execute the intranet and extranet data transmission method of the first aspect.
The above described embodiments of the device are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may also 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 the present embodiment.
One of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
In the description herein, references to the description of the terms "some embodiments," "examples," "specific examples," or "some examples," etc., mean that a particular feature or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example.

Claims (10)

1. The internal and external network data transmission method is characterized by comprising the following steps:
acquiring a service request for data transmission;
acquiring initial transmission data to be transmitted according to the service request;
processing the initial transmission data to obtain target transmission data;
calling an internal and external network transmission channel of an internal and external network exchange platform according to the target transmission data;
and transmitting the target transmission data to a receiving end platform through the internal and external network transmission channels, and processing the target transmission data by the receiving end platform to obtain the initial transmission data.
2. The intranet and extranet data transmission method of claim 1, wherein the processing the initial transmission data to obtain target transmission data comprises:
acquiring a priority parameter of the service request;
and configuring a time delay parameter for the initial transmission data according to the priority parameter to obtain the target transmission data.
3. The intranet or extranet data transmission method of claim 2, wherein the intranet transmission channel comprises a structured transmission channel;
correspondingly, the calling an intranet and extranet transmission channel of the intranet and extranet exchange platform according to the target transmission data includes:
and calling a structured transmission channel of the internal and external network exchange platform according to the time delay parameter of the target transmission data and the structured data type of the target transmission data.
4. The intranet or extranet data transmission method of claim 2, wherein the intranet transmission channel comprises a structured transmission channel;
correspondingly, the calling an intranet and extranet transmission channel of the intranet and extranet exchange platform according to the target transmission data includes:
and calling an unstructured transmission channel of the internal and external network exchange platform according to the time delay parameter of the target transmission data and the unstructured data type of the target transmission data.
5. The intranet and extranet data transmission method of claim 1, wherein the processing the initial transmission data to obtain target transmission data comprises:
and carrying out fragmentation processing on the initial transmission data to obtain a plurality of fragmentation transmission data.
6. The intranet and extranet data transmission method of claim 5, wherein the invoking of the intranet and extranet transmission path of the intranet and extranet exchange platform according to the target transmission data comprises:
and calling a structured transmission channel of the internal and external network exchange platform according to the plurality of fragment transmission data.
7. The intranet and extranet data transmission method of claim 6, wherein the target transmission data comprises a data check code;
and acquiring a verification result of the target transmission data returned by the receiving end platform, wherein the verification result is obtained by verifying the target transmission data by the receiving end platform according to the data verification code.
8. The intranet/extranet data transmission method according to any one of claims 1 to 7, further comprising:
acquiring current transmission state information of target transmission data, and acquiring acquisition state information and processing state information of the target transmission data returned by a receiving end platform;
and transmitting the target transmission data to a receiving end platform through the internal and external network transmission channel again according to the transmission state information, the acquisition state information and the processing state information.
9. An electronic device, comprising:
at least one processor, and,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions for execution by the at least one processor to cause the at least one processor, when executing the instructions, to implement the intranet and extranet data transmission method of any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer-executable instructions for causing a computer to execute the intranet data transmission method according to any one of claims 1 to 8.
CN202110882634.4A 2021-08-02 2021-08-02 Intranet data transmission method, electronic device and computer readable storage medium Active CN113746900B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110882634.4A CN113746900B (en) 2021-08-02 2021-08-02 Intranet data transmission method, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110882634.4A CN113746900B (en) 2021-08-02 2021-08-02 Intranet data transmission method, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113746900A true CN113746900A (en) 2021-12-03
CN113746900B CN113746900B (en) 2024-02-23

Family

ID=78729772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110882634.4A Active CN113746900B (en) 2021-08-02 2021-08-02 Intranet data transmission method, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113746900B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114389866A (en) * 2021-12-29 2022-04-22 北京连山科技股份有限公司 System and method for realizing high-speed isolation network gate data ferrying
CN114900473A (en) * 2022-04-24 2022-08-12 深圳位置网科技有限公司 Transmission method for transmitting emergency data to security platform and transmission platform thereof
CN115348090A (en) * 2022-08-16 2022-11-15 中国联合网络通信集团有限公司 Intranet and extranet interaction method and device for enterprise and electronic equipment
CN116260657A (en) * 2023-05-09 2023-06-13 南京汇荣信息技术有限公司 Information encryption method and system suitable for network security system
CN116471103A (en) * 2023-05-04 2023-07-21 深圳市显科科技有限公司 Internal and external network data security exchange method, device and equipment based on boundary network
CN116527731A (en) * 2023-02-01 2023-08-01 武汉华瑞测智能技术有限公司 Power plant internal and external network communication method, equipment and medium based on network isolation device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001201A (en) * 2006-01-13 2007-07-18 华为技术有限公司 Method for setting count request delay
CN106209801A (en) * 2016-06-28 2016-12-07 广东电网有限责任公司信息中心 Mobile solution platform and inner-external network data safety switching plane integrated system
CN112105080A (en) * 2020-11-18 2020-12-18 之江实验室 Time-sensitive network data transmission system and transmission method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001201A (en) * 2006-01-13 2007-07-18 华为技术有限公司 Method for setting count request delay
CN106209801A (en) * 2016-06-28 2016-12-07 广东电网有限责任公司信息中心 Mobile solution platform and inner-external network data safety switching plane integrated system
CN112105080A (en) * 2020-11-18 2020-12-18 之江实验室 Time-sensitive network data transmission system and transmission method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114389866A (en) * 2021-12-29 2022-04-22 北京连山科技股份有限公司 System and method for realizing high-speed isolation network gate data ferrying
CN114900473A (en) * 2022-04-24 2022-08-12 深圳位置网科技有限公司 Transmission method for transmitting emergency data to security platform and transmission platform thereof
CN115348090A (en) * 2022-08-16 2022-11-15 中国联合网络通信集团有限公司 Intranet and extranet interaction method and device for enterprise and electronic equipment
CN116527731A (en) * 2023-02-01 2023-08-01 武汉华瑞测智能技术有限公司 Power plant internal and external network communication method, equipment and medium based on network isolation device
CN116527731B (en) * 2023-02-01 2023-09-26 武汉华瑞测智能技术有限公司 Power plant internal and external network communication method, equipment and medium based on network isolation device
CN116471103A (en) * 2023-05-04 2023-07-21 深圳市显科科技有限公司 Internal and external network data security exchange method, device and equipment based on boundary network
CN116471103B (en) * 2023-05-04 2023-09-22 深圳市显科科技有限公司 Internal and external network data security exchange method, device and equipment based on boundary network
CN116260657A (en) * 2023-05-09 2023-06-13 南京汇荣信息技术有限公司 Information encryption method and system suitable for network security system

Also Published As

Publication number Publication date
CN113746900B (en) 2024-02-23

Similar Documents

Publication Publication Date Title
CN113746900A (en) Intranet and extranet data transmission method, electronic device and computer readable storage medium
CN111324363A (en) Equipment upgrading method, upgrading terminal, equipment and storage medium
CN111741060B (en) Message pushing method, device, computer equipment and storage medium
US20160142247A1 (en) Local network and method of updating a device in a local network
EP3537740B1 (en) Hash based device configuration management
CN111680106A (en) Method and device for synchronizing data of multiple application systems
CN113645103B (en) Method and device for detecting communication link abnormity between video monitoring platform and front-end equipment
WO2016165289A1 (en) Inter-board data processing method and device
CN113965447B (en) Online cloud diagnosis method, device, system, equipment and storage medium
CN111478755B (en) Asynchronous data communication method, medium, equipment and asynchronous data communication system
CN108880994B (en) Method and device for retransmitting mails
CN115114303A (en) Service data auditing method, platform and system
CN111367723A (en) Automatic retry device and method based on reflection mechanism
US20240187904A1 (en) Load Query Processing Method and Apparatus, Storage Medium and Electronic Apparatus
CN112631853A (en) Data monitoring method, task monitoring method, system and computer readable medium
CN115914152B (en) Receipt information pushing method, system and storage medium
CN112866359A (en) Data uplink method, device, electronic equipment and storage medium
CN116886755B (en) Keep-alive method and keep-alive device for tested server
CN117295021B (en) Channel self-adaptive deployment method, system, equipment and medium
CN110737447B (en) Application updating method and device
CN115242618B (en) Middleware state checking method and device, electronic equipment and readable storage medium
CN110995463B (en) AP self-recovery method and device
CN113434307A (en) Task sending processing method, task processing method, device, system and equipment
CN110196862B (en) Data scene construction method, device, server and system
CN106940675B (en) System log query method

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
CB02 Change of applicant information

Country or region after: China

Address after: 510000 501, 502, 601 and 602, building D, wisdom Plaza, Qiaoxiang Road, Gaofa community, Shahe street, Nanshan District, Shenzhen, Guangdong

Applicant after: China Southern Power Grid Digital Platform Technology (Guangdong) Co.,Ltd.

Address before: 510000 501, 502, 601 and 602, building D, wisdom Plaza, Qiaoxiang Road, Gaofa community, Shahe street, Nanshan District, Shenzhen, Guangdong

Applicant before: China Southern Power Grid Shenzhen Digital Power Grid Research Institute Co.,Ltd.

Country or region before: China

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant