CN117729172A - Data transmission method, device and storage medium in isolated network environment - Google Patents

Data transmission method, device and storage medium in isolated network environment Download PDF

Info

Publication number
CN117729172A
CN117729172A CN202410179102.8A CN202410179102A CN117729172A CN 117729172 A CN117729172 A CN 117729172A CN 202410179102 A CN202410179102 A CN 202410179102A CN 117729172 A CN117729172 A CN 117729172A
Authority
CN
China
Prior art keywords
message
data
transmitted
receiving end
transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410179102.8A
Other languages
Chinese (zh)
Inventor
孔祥金
张松云
侯亮
李敏姝
蒋沩卿
高红林
黎侠兵
鲁闯
余雨薇
林尤欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Shenrui Tonghua Technology Co ltd
Original Assignee
Chengdu Shenrui Tonghua Technology 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 Chengdu Shenrui Tonghua Technology Co ltd filed Critical Chengdu Shenrui Tonghua Technology Co ltd
Priority to CN202410179102.8A priority Critical patent/CN117729172A/en
Publication of CN117729172A publication Critical patent/CN117729172A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

The invention discloses a data transmission method, a device and a storage medium in an isolated network environment, wherein the data transmission method based on text messages is adopted, so that the data conversion flow during data analysis in the traditional technology can be avoided, the analysis efficiency can be improved, and meanwhile, the data structure of a text protocol can be customized according to the task type, so that different task demands can be met, and the use flexibility is ensured; based on the method, the device and the system can improve the analysis efficiency, flexibility and expansibility in data transmission, and are very suitable for large-scale application and popularization.

Description

Data transmission method, device and storage medium in isolated network environment
Technical Field
The invention belongs to the technical field of data transmission, and particularly relates to a data transmission method, a data transmission device and a storage medium in an isolated network environment.
Background
Currently, when data is transmitted between multiple isolated networks, a conventional communication protocol generally adopts a binary format (i.e., the supported data formats are all binary, such as binary protocol data units, etc.); it has the following disadvantages: the binary protocol generally requires additional processing and parsing, that is, when the receiving end receives data, binary data needs to be converted into normal data, and then the converted data is parsed, so as to obtain data content; thus, the problem of low analysis efficiency is caused; meanwhile, the data structure of the traditional binary protocol does not support customization, and the use flexibility is poor; based on this, how to provide a data transmission method with high resolution efficiency and high flexibility has become a problem to be solved.
Disclosure of Invention
The invention aims to provide a data transmission method, a data transmission device and a storage medium in an isolated network environment, which are used for solving the problems of low analysis efficiency and poor flexibility in the prior art.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
in a first aspect, a data transmission method in an isolated network environment is provided, including:
acquiring a message to be transmitted, wherein the data format of the message to be transmitted is a text format, the message header of the message to be transmitted stores the current session type, and the data part of the message to be transmitted stores session information corresponding to the current session type;
and transmitting the message to be transmitted to a receiving end by adopting a text communication mode so as to finish the data transmission of the message to be transmitted in an isolated network environment.
Based on the above disclosure, the data transmission method provided by the invention adopts a new message transmission format, namely, the message format is defined as a text format, and the data is transmitted in the text format; therefore, compared with the traditional binary communication protocol, the invention reduces the data conversion flow and can greatly improve the analysis efficiency; meanwhile, the message header of the text data stores the session type, and the data part stores the corresponding session information; based on the method, the session type is embedded into the message header, so that the type of the session can be rapidly determined in the initial analysis, and the processing speed of the subsequent message is improved; in addition, the text format is adopted for the message, and the text data is defined as the data structure of the conversation type plus the content, so that the user is allowed to define the text data according to the scene in the actual application, and different task requirements can be met.
Through the design, the data transmission method based on the text message can avoid the data conversion flow during data analysis in the traditional technology, improve the analysis efficiency, and simultaneously, the data structure of the text protocol can be customized according to the task type, so that different task demands can be met, and the use flexibility is ensured; based on the method, the device and the system can improve the analysis efficiency, flexibility and expansibility in data transmission, and are very suitable for large-scale application and popularization.
In one possible design, the transmitting the message to be transmitted to the receiving end by adopting a text communication mode includes:
a transmission service channel between the receiving end and the receiving end is established, and after the transmission service channel is established, a connection request is sent to the receiving end, so that the receiving end responds to the connection request after receiving the connection request, and communication connection is established between the receiving end and the sending end;
judging whether the message to be transmitted meets preset requirements or not, wherein the preset requirements comprise format requirements and structure requirements;
if yes, coding the message to be transmitted to obtain coded data;
and transmitting the encoded data to the receiving end through the transmission service channel, so that the receiving end decodes the encoded data after receiving the encoded data, and performs data verification on the decoded data, so that the decoded data after verification is stored after the verification is passed.
In one possible design, after obtaining the encoded data, the method further comprises:
carrying out data compression on the coded data to obtain compressed data;
and transmitting the compressed data to the receiving end through the transmission service channel.
In one possible design, after transmitting the encoded data to the receiving end, the method further includes:
receiving response information sent by a receiving end is obtained, wherein the receiving response information is generated after the receiving end decodes the coded data, verifies the decoded data and passes the verification;
and closing the transmission service channel based on the receiving response information, and disconnecting the communication connection with the receiving end.
In one possible design, the header of the message to be transmitted further stores a transmission identifier, where before the message to be transmitted is transmitted to the receiving end by adopting a text communication manner, the method further includes:
sharing the transmission identifier to the receiving end, so that the receiving end feeds back session response information to the sending end after receiving the transmission identifier, wherein the session response information comprises the transmission identifier received by the receiving end;
receiving session response information sent by the receiving end, and establishing a communication synchronous session with the receiving end based on the session response information so as to realize synchronous sending and receiving of the message to be transmitted.
In one possible design, sharing the transmission identifier to the receiving end includes:
based on the transmission identification, generating a session request, and entering a waiting state of synchronous blocking after the session request is generated;
the session request is sent to the receiving end, so that the receiving end analyzes the session request after receiving the session request to obtain a transmission identifier transmitted by the sending end, and session response information is generated based on the received transmission identifier;
correspondingly, establishing a communication synchronization session with the receiving end based on the session response information, and then comprising:
judging whether the transmission identification in the session response information is the same as the transmission identification in the message to be transmitted;
if yes, the waiting state of synchronous blocking is jumped out, and a text communication mode is adopted to transmit the message to be transmitted to the receiving end.
In one possible design, the method further comprises:
and transmitting the message to be transmitted to a target terminal by using a message transmission mode of target subscription and release, wherein the target terminal is a terminal subscribed with a catalogue of the session type corresponding to the message to be transmitted.
In a second aspect, a data transmission apparatus in an isolated network environment is provided, including:
the device comprises an acquisition unit, a transmission unit and a transmission unit, wherein the acquisition unit is used for acquiring a message to be transmitted, the data format of the message to be transmitted is a text format, the message header of the message to be transmitted stores the current session type, and the data part of the message to be transmitted stores session information corresponding to the current session type;
and the data transmission unit is used for transmitting the message to be transmitted to a receiving end in a text communication mode so as to finish the data transmission of the message to be transmitted in an isolated network environment.
In a third aspect, another data transmission device in an isolated network environment is provided, taking the device as an electronic device, where the device includes a memory, a processor, and a transceiver that are communicatively connected in sequence, where the memory is configured to store a computer program, the transceiver is configured to send and receive a message, and the processor is configured to read the computer program, and execute a data transmission method in the isolated network environment as in the first aspect or any one of the first aspect possible designs.
In a fourth aspect, a storage medium is provided, on which instructions are stored which, when run on a computer, perform a method of data transmission in the isolated network environment as may be devised in the first aspect or any one of the first aspects.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform a method of data transmission in the isolated network environment as may be devised in the first aspect or any one of the first aspects.
The beneficial effects are that:
(1) The invention adopts a data transmission method based on text messages, can avoid the data conversion flow during data analysis in the traditional technology, can improve the analysis efficiency, and simultaneously, the data structure of the text protocol can be customized according to the task type, thus, different task demands can be satisfied, thereby ensuring the flexibility of use; based on the method, the device and the system can improve the analysis efficiency, flexibility and expansibility in data transmission, and are very suitable for large-scale application and popularization.
(2) The invention embeds the transmission identification in the message header and transmits the transmission identification to the receiving end in a transmission sharing mode; therefore, by introducing a unique transmission identifier in the session, under the framework of asynchronous communication, the receiving parties can realize synchronous communication according to the transmission identifier; based on the method, the device and the system, the service requirements can be met in the scene of synchronous operation.
(3) The invention supports compression processing before transmission; therefore, the data transmission efficiency can be optimized, and the bandwidth occupation can be reduced.
(4) The invention also supports the adoption of a subscription and release mode based on the catalogue, so that the data transmission requirement of the information among a plurality of isolated networks can be met.
Drawings
Fig. 1 is a schematic flow chart of steps of a data transmission method in an isolated network environment according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a data transmission device in an isolated network environment according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the present invention will be briefly described below with reference to the accompanying drawings and the description of the embodiments or the prior art, and it is obvious that the following description of the structure of the drawings is only some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art. It should be noted that the description of these examples is for aiding in understanding the present invention, but is not intended to limit the present invention.
It will be understood that, although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of example embodiments of the present invention.
It should be understood that for the term "and/or" that may appear herein, it is merely one association relationship that describes an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a alone, B alone, and both a and B; for the term "/and" that may appear herein, which is descriptive of another associative object relationship, it means that there may be two relationships, e.g., a/and B, it may be expressed that: a alone, a alone and B alone; in addition, for the character "/" that may appear herein, it is generally indicated that the context associated object is an "or" relationship.
Examples:
referring to fig. 1, in the data transmission method in the isolated network environment provided in this embodiment, text messages are used to perform data transmission, and text data is defined as a data structure of session type and content; based on the method, the data conversion flow during data analysis in the traditional technology can be avoided, the analysis efficiency can be improved, and meanwhile, the data structure can be customized according to the task type, so that different task demands can be met, and the use flexibility is ensured; therefore, the method not only adapts to big data scenes, but also can provide reliable data transmission, and brings more flexible and efficient solutions to the communication requirements in the fields of new energy centralized control clouds and the like; the method may be, for example, but not limited to, running on the transmitting end and the receiving end (preferably, running on the transmitting end), alternatively, the transmitting end and the receiving end may be, but not limited to, a personal computer (personal computer, PC), a tablet computer or a smart phone, and it is understood that the foregoing execution body does not limit the embodiments of the present application, and accordingly, the running steps of the method may be, but not limited to, those shown in the following steps S1 to S2.
S1, obtaining a message to be transmitted, wherein the data format of the message to be transmitted is a text format, the message header of the message to be transmitted stores the current session type, and the data part of the message to be transmitted stores session information corresponding to the current session type; when the method is applied specifically, the message to be transmitted is defined as a text format, and the data structure is session type + content; therefore, when in actual use, a user can set the session type in the message header and the session information in the data part of the message to be transmitted according to different task scenes, so that the flexible application is facilitated; meanwhile, the example session type may be, but not limited to, a task type of the session, if a fault report needs to be performed, the session type is a fault type, and the session information is specific fault and equipment information (such as equipment code (deviceCode), error information array (faultInfo) and the like) that need to be uploaded; of course, under different tasks, the content contained in the header and the data portion of the message to be transmitted is modified correspondingly by the user, and the principle thereof is not repeated; furthermore, after defining the data structure of the text format, in practical application, the user only needs to upload the corresponding task type and data, and the transmitting end can generate the text format message to be transmitted including the session type and the session information.
After obtaining a message to be transmitted in a text format, the data transmission can be directly carried out in the text format; the data transmission process may be, but not limited to, as shown in the following step S2.
S2, transmitting the message to be transmitted to a receiving end by adopting a text communication mode so as to finish data transmission of the message to be transmitted in an isolated network environment; in a specific application, the foregoing transmission process of the message to be transmitted may be, but is not limited to, the following steps S21 to S24.
S21, a transmission service channel between the receiving end and the receiving end is established, and after the transmission service channel is established, a connection request is sent to the receiving end, so that the receiving end responds to the connection request after receiving the connection request, and communication connection is established between the receiving end and the sending end; in this embodiment, the transmission service channel is established by opening the connection between the inside and the outside of the isolation device (under the isolation network, the sending end and the receiving end are isolated by the isolation device) so as to provide a transmission channel for the subsequent data transmission; meanwhile, after the transmission service channel is established, connection between the transmission service channel and the transmission service channel can be established, so that after the communication connection between the transmitting and receiving parties is established, the transmission of the message to be transmitted is completed; the transmission process is as follows in steps S22 to S24.
S22, judging whether the message to be transmitted meets preset requirements, wherein the preset requirements comprise format requirements and structure requirements; in this embodiment, since text data is adopted for transmission, verification of a message to be transmitted is required before transmission, where the verification is to verify whether the data format of the message to be transmitted is a text format, and verify whether the data structure of the message to be transmitted is a session type+a data structure of session information (of course, the session type and the storage location of the session information also need to be confirmed); through the design, the data used by the data transceiver can be ensured to be text data, so that the analysis efficiency in transmission is improved.
After the data verification of the message to be transmitted is completed, the encoding process may be entered, where the encoding process is as follows in step S23.
S23, if yes, coding the message to be transmitted to obtain coded data; in this embodiment, for example, but not limited to, a Base64 coding algorithm is used to complete coding of the message to be transmitted, so as to obtain coded data; thus, the data is encoded, and the completeness and safety of data transmission can be ensured; after the data encoding is completed, the data transmission may be performed as shown in step S24 below.
S24, transmitting the encoded data to the receiving end through the transmission service channel, so that the receiving end decodes the encoded data after receiving the encoded data, and performs data verification on the decoded data, so as to store the decoded data after verification is passed; in this embodiment, since the data transmission is performed in a text format, the receiving end only needs to decode the encoded data after receiving the encoded data, so as to restore the original data; compared with the prior art, the decoded data are not binary data, and conversion of the binary data is not needed, so that the analysis efficiency in data transmission can be improved; meanwhile, the message header stores the session type, so that the receiving end can rapidly determine the type of the session only by analyzing the message header, and accordingly, a corresponding processing scheme is called to process the session, and the session processing speed can be improved.
Furthermore, in this embodiment, after the encoding of the packet is completed, data compression may be performed, that is, the encoded data is subjected to data compression, so as to obtain compressed data; then, the compressed data can be transmitted to the receiving end through the transmission service channel; therefore, the bandwidth occupation and the resource consumption of the data in the transmission process can be reduced; alternatively, compression of the encoded data may be achieved, for example, but not limited to, using an integrated snap algorithm; of course, other compression algorithms may be used, and are not limited to the foregoing examples herein.
In addition, after the encoded data is transmitted to the receiving end, the present embodiment is further provided with a resource release step, and the process thereof may be, but is not limited to, as shown in the following steps S25 and S26.
S25, receiving response information sent by a receiving end is obtained, wherein the receiving response information is generated after the receiving end decodes the coded data, verifies the decoded data and passes the verification; in this embodiment, the receiving end verifies the decoded data, which may include, but is not limited to, verification of integrity; after the integrity verification is passed, the data transmission can be judged to be completed, and at the moment, receiving response information can be generated; then, the resource is released by sending the resource to the sending end, so that the sending end is disconnected with the receiving end; alternatively, the foregoing process may be, but is not limited to, as shown in step S26 below.
S26, closing the transmission service channel based on the receiving response information, and disconnecting the communication connection with the receiving end; in this embodiment, after the transmission is completed, the transmission service channel is closed, and the two sides are disconnected, so that the resources can be released, thereby reducing the resource consumption.
The invention adopts text information to transmit data and defines text data as the data structure of session type and content through the data transmission method in the isolated network environment described in detail in the steps S1-S2 and the sub-steps; based on the method, the data conversion flow during data analysis in the traditional technology can be avoided, the analysis efficiency can be improved, and meanwhile, the data structure can be customized according to the task type, so that different task demands can be met, and the use flexibility is ensured; therefore, the method is very suitable for large-scale application and popularization in the field of data transmission.
In one possible design, the second aspect of the present embodiment is further optimized based on the first aspect of the embodiment, that is, the transmission identifier is stored in the header of the message to be transmitted, so as to complete synchronous communication between the sending end and the receiving end; of course, the accurate procedure of the synchronous communication is before the message to be transmitted is sent, where the synchronous communication procedure may be, but is not limited to, as shown in the following step one and step two.
Step one: sharing the transmission identifier to the receiving end, so that the receiving end feeds back session response information to the sending end after receiving the transmission identifier, wherein the session response information comprises the transmission identifier received by the receiving end; in this embodiment, the sharing process of the transmission identifier may be, but is not limited to,: the transmitting end firstly generates a session request based on the transmission identification, and enters a waiting state of synchronous blocking after the session request is generated; and then, sending the session request to the receiving end, so that the receiving end analyzes the session request after receiving the session request to obtain a transmission identifier transmitted by the sending end, and generating session response information based on the received transmission identifier.
After the session response information fed back by the receiving end is obtained, the receiving end and the session response information can carry out synchronous communication, wherein the establishment process of the synchronous communication can be but is not limited to the following step two.
Step two: receiving session response information sent by the receiving end, and establishing a communication synchronous session with the receiving end based on the session response information so as to realize synchronous sending and receiving of the message to be transmitted; when the method is applied specifically, the transmitting end judges whether the transmission identifier in the session response information is the same as the transmission identifier in the message to be transmitted; if yes, jumping out of the waiting state of synchronous blocking, and transmitting the message to be transmitted to the receiving end in a text communication mode; of course, if the transmission identifiers of the two are different, the waiting state of synchronous blocking is maintained.
Furthermore, in this embodiment, the aforementioned step S21 is also required to be performed before the synchronous communication is established, so as to establish the transmission service channel and the communication connection between the transmitting end and the receiving end; then, after the synchronous communication is established based on the first step and the second step, the transmission of the message to be transmitted can be completed by adopting the steps S22 to S24, and the principle thereof is not repeated.
By the design, the unique transmission identifier is introduced into the session, so that under the framework of asynchronous communication, the receiving parties can realize synchronous communication according to the transmission identifier; based on the method, the device and the system, the service requirements can be met in the scene of synchronous operation.
In addition, the embodiment also supports a message transmission mode of target subscription and release, that is, the sending end transmits the message to be transmitted to the target terminal by using the message transmission mode of target subscription and release; when the method is applied specifically, the target terminal is a terminal subscribed with a catalog of the session type corresponding to the message to be transmitted; in this way, the foregoing manner may be utilized to allow information to be circulated between different networks without requiring direct communication.
In this embodiment, the message delivery manner of the target subscription and release belongs to a communication protocol similar to a message queue, and the difference between the message delivery manner and the traditional communication protocol MQTT is that: the method adopts a directory-based mode to realize a publish-subscribe mode, and the protocol is particularly suitable for the scene of message intercommunication among a plurality of partitions in the power industry and the like, and the design of the protocol allows information to circulate among different networks without direct communication, so that the communication efficiency is improved, and the safety and reliability of communication are ensured.
Meanwhile, in the communication mode, the catalogs often exist in pairs, and the design allows two communication parties to realize communication between the two parties through subscribing and publishing the corresponding catalogs; specifically, when one party issues information to the catalog, the other party can receive the information by subscribing a sister catalog of the catalog, and the process is completed through the cooperation of the isolating device, so that the reliability of text transmission can be ensured; therefore, as long as the corresponding target is configured at the transmitting end and the corresponding catalogue is subscribed at the receiving end, the message can be rapidly transmitted to the terminal subscribed to the catalogue when the message is transmitted at the transmitting end, and therefore the data transmission requirement among a plurality of isolated networks is met.
Through the design, the invention can meet the service requirement under the synchronous operation scene, and can complete the efficient circulation of information among different networks by utilizing the message transmission mode of the standard subscription release; thus, the flexibility of use is further improved.
As shown in fig. 2, a third aspect of the present embodiment provides a hardware device for implementing a data transmission method in an isolated network environment according to the first aspect of the embodiment and/or the second aspect of the embodiment, where the hardware device includes:
the device comprises an acquisition unit, a transmission unit and a transmission unit, wherein the acquisition unit is used for acquiring a message to be transmitted, the data format of the message to be transmitted is a text format, the message header of the message to be transmitted stores the current session type, and the data part of the message to be transmitted stores session information corresponding to the current session type.
And the data transmission unit is used for transmitting the message to be transmitted to a receiving end in a text communication mode so as to finish the data transmission of the message to be transmitted in an isolated network environment.
The working process, working details and technical effects of the device provided in this embodiment may refer to the first aspect and/or the second aspect of the embodiment, which are not described herein again.
As shown in fig. 3, a fourth aspect of the present embodiment provides another data transmission apparatus in an isolated network environment, taking the apparatus as an electronic device, including: the system comprises a memory, a processor and a transceiver which are connected in sequence in communication, wherein the memory is used for storing a computer program, the transceiver is used for receiving and transmitting messages, and the processor is used for reading the computer program and executing the data transmission method in the isolated network environment according to the first aspect and/or the second aspect of the embodiment.
By way of specific example, the Memory may include, but is not limited to, random access Memory (random access Memory, RAM), read Only Memory (ROM), flash Memory (Flash Memory), first-in-first-out Memory (First Input First Output, FIFO) and/or first-in-last-out Memory (First In Last Out, FILO), etc.; in particular, the processor may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ), and may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state.
In some embodiments, the processor may be integrated with a GPU (Graphics Processing Unit, image processor) for taking charge of rendering and rendering of content required to be displayed by the display screen, for example, the processor may not be limited to a microprocessor employing a model number of STM32F105 family, a reduced instruction set computer (reduced instruction set computer, RISC) microprocessor, an X86 or other architecture processor, or a processor integrating an embedded neural network processor (neural-network processing units, NPU); the transceiver may be, but is not limited to, a wireless fidelity (WIFI) wireless transceiver, a bluetooth wireless transceiver, a general packet radio service technology (General Packet Radio Service, GPRS) wireless transceiver, a ZigBee protocol (low power local area network protocol based on the ieee802.15.4 standard), a 3G transceiver, a 4G transceiver, and/or a 5G transceiver, etc. In addition, the device may include, but is not limited to, a power module, a display screen, and other necessary components.
The working process, working details and technical effects of the electronic device provided in this embodiment may refer to the first aspect and/or the second aspect of the embodiment, which are not described herein again.
A fifth aspect of the present embodiment provides a storage medium storing instructions containing the data transmission method in the isolated network environment according to the first and/or second aspect of the present embodiment, that is, the storage medium storing instructions, when the instructions are executed on a computer, to perform the data transmission method in the isolated network environment according to the first and/or second aspect of the present embodiment.
The storage medium refers to a carrier for storing data, and may include, but is not limited to, a floppy disk, an optical disk, a hard disk, a flash Memory, a flash disk, and/or a Memory Stick (Memory Stick), where the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
The working process, working details and technical effects of the storage medium provided in this embodiment may refer to the first aspect and/or the second aspect of the embodiment, and are not described herein again.
A sixth aspect of the present embodiment provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the data transmission method in the isolated network environment according to the first and/or second aspects of the embodiment, wherein the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus.
Finally, it should be noted that: the foregoing description is only of the preferred embodiments of the invention and is not intended to limit the scope of the invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for data transmission in an isolated network environment, comprising:
acquiring a message to be transmitted, wherein the data format of the message to be transmitted is a text format, the message header of the message to be transmitted stores the current session type, and the data part of the message to be transmitted stores session information corresponding to the current session type;
and transmitting the message to be transmitted to a receiving end by adopting a text communication mode so as to finish the data transmission of the message to be transmitted in an isolated network environment.
2. The method of claim 1, wherein transmitting the message to be transmitted to the receiving end by using a text communication method includes:
a transmission service channel between the receiving end and the receiving end is established, and after the transmission service channel is established, a connection request is sent to the receiving end, so that the receiving end responds to the connection request after receiving the connection request, and communication connection is established between the receiving end and the sending end;
judging whether the message to be transmitted meets preset requirements or not, wherein the preset requirements comprise format requirements and structure requirements;
if yes, coding the message to be transmitted to obtain coded data;
and transmitting the encoded data to the receiving end through the transmission service channel, so that the receiving end decodes the encoded data after receiving the encoded data, and performs data verification on the decoded data, so that the decoded data after verification is stored after the verification is passed.
3. The method of claim 2, wherein after obtaining the encoded data, the method further comprises:
carrying out data compression on the coded data to obtain compressed data;
and transmitting the compressed data to the receiving end through the transmission service channel.
4. The method of claim 2, wherein after transmitting the encoded data to the receiving end, the method further comprises:
receiving response information sent by a receiving end is obtained, wherein the receiving response information is generated after the receiving end decodes the coded data, verifies the decoded data and passes the verification;
and closing the transmission service channel based on the receiving response information, and disconnecting the communication connection with the receiving end.
5. The method of claim 1, wherein a transmission identifier is further stored in a header of the message to be transmitted, and wherein before the message to be transmitted is transmitted to the receiving end in a text communication manner, the method further comprises:
sharing the transmission identifier to the receiving end, so that the receiving end feeds back session response information to the sending end after receiving the transmission identifier, wherein the session response information comprises the transmission identifier received by the receiving end;
receiving session response information sent by the receiving end, and establishing a communication synchronous session with the receiving end based on the session response information so as to realize synchronous sending and receiving of the message to be transmitted.
6. The method of claim 5, wherein sharing the transmission identity to the receiving end comprises:
based on the transmission identification, generating a session request, and entering a waiting state of synchronous blocking after the session request is generated;
the session request is sent to the receiving end, so that the receiving end analyzes the session request after receiving the session request to obtain a transmission identifier transmitted by the sending end, and session response information is generated based on the received transmission identifier;
correspondingly, establishing a communication synchronization session with the receiving end based on the session response information, and then comprising:
judging whether the transmission identification in the session response information is the same as the transmission identification in the message to be transmitted;
if yes, the waiting state of synchronous blocking is jumped out, and a text communication mode is adopted to transmit the message to be transmitted to the receiving end.
7. The method according to claim 1, wherein the method further comprises:
and transmitting the message to be transmitted to a target terminal by using a message transmission mode of target subscription and release, wherein the target terminal is a terminal subscribed with a catalogue of the session type corresponding to the message to be transmitted.
8. A data transmission apparatus in an isolated network environment, comprising:
the device comprises an acquisition unit, a transmission unit and a transmission unit, wherein the acquisition unit is used for acquiring a message to be transmitted, the data format of the message to be transmitted is a text format, the message header of the message to be transmitted stores the current session type, and the data part of the message to be transmitted stores session information corresponding to the current session type;
and the data transmission unit is used for transmitting the message to be transmitted to a receiving end in a text communication mode so as to finish the data transmission of the message to be transmitted in an isolated network environment.
9. A data transmission apparatus in an isolated network environment, comprising: the system comprises a memory, a processor and a transceiver which are connected in sequence in communication, wherein the memory is used for storing a computer program, the transceiver is used for receiving and transmitting messages, and the processor is used for reading the computer program and executing the data transmission method in the isolated network environment according to any one of claims 1-7.
10. A storage medium having instructions stored thereon which, when executed on a computer, perform the method of data transmission in an isolated network environment according to any one of claims 1 to 7.
CN202410179102.8A 2024-02-18 2024-02-18 Data transmission method, device and storage medium in isolated network environment Pending CN117729172A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410179102.8A CN117729172A (en) 2024-02-18 2024-02-18 Data transmission method, device and storage medium in isolated network environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410179102.8A CN117729172A (en) 2024-02-18 2024-02-18 Data transmission method, device and storage medium in isolated network environment

Publications (1)

Publication Number Publication Date
CN117729172A true CN117729172A (en) 2024-03-19

Family

ID=90200194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410179102.8A Pending CN117729172A (en) 2024-02-18 2024-02-18 Data transmission method, device and storage medium in isolated network environment

Country Status (1)

Country Link
CN (1) CN117729172A (en)

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1394037A (en) * 2001-06-25 2003-01-29 华为技术有限公司 Method for implementing interface between workstation and operating system of telecommunication management network
CN1520550A (en) * 2001-04-20 2004-08-11 �������չɷ����޹�˾ Virtual networking system and method in processing system
CN1937811A (en) * 2006-08-28 2007-03-28 华为技术有限公司 Terminal and server communication method, system and device
CN102231707A (en) * 2011-06-27 2011-11-02 中国建设银行股份有限公司 Method and system for reliably transmitting data message in bank outlets
CN105337849A (en) * 2015-12-07 2016-02-17 上海斐讯数据通信技术有限公司 Synchronous message handling method, synchronous message controller and sending and receiving devices
CN107645413A (en) * 2017-09-15 2018-01-30 国网山东省电力公司信息通信公司 Intelligent switched telephone network core side accesses the full-automatic configuration platform in side and method
CN108183958A (en) * 2017-12-29 2018-06-19 银联商务股份有限公司 Message transmitting method, device and payment system
CN108712481A (en) * 2018-05-04 2018-10-26 广东电网有限责任公司 A kind of communication means and device based on secure accessing area
CN110971704A (en) * 2019-12-11 2020-04-07 杭州安恒信息技术股份有限公司 Data transmission method and device based on JSON configuration file
CN111104106A (en) * 2019-12-31 2020-05-05 中电长城(长沙)信息技术有限公司 Visual development method, system and medium for integrating business process and communication message
CN113778698A (en) * 2020-06-17 2021-12-10 北京沃东天骏信息技术有限公司 Server communication method and device, storage medium and equipment
CN115086306A (en) * 2022-08-18 2022-09-20 天津市天河计算机技术有限公司 Data transmission method and device, electronic equipment and storage medium
CN115473939A (en) * 2022-07-27 2022-12-13 北京仁科互动网络技术有限公司 Page communication method and device based on customer relationship management CRM system
CN115632878A (en) * 2022-12-06 2023-01-20 中海油能源发展股份有限公司采油服务分公司 Data transmission method, device and equipment based on network isolation and storage medium
CN116582365A (en) * 2023-07-12 2023-08-11 北京亿赛通科技发展有限责任公司 Network traffic safety control method and device and computer equipment
CN116708416A (en) * 2022-12-01 2023-09-05 黄建邦 Data transmission control method, system, control device and readable storage medium
CN116962388A (en) * 2023-07-07 2023-10-27 北京易华录信息技术股份有限公司 ESB-based cross-network interface data sharing method and system
CN117294763A (en) * 2023-11-27 2023-12-26 武汉泽塔云科技股份有限公司 Cloud desktop terminal management method for forwarding terminal request information based on proxy service
CN117336135A (en) * 2023-09-13 2024-01-02 吉林亿联银行股份有限公司 Data transmission method, device, storage medium and electronic equipment

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1520550A (en) * 2001-04-20 2004-08-11 �������չɷ����޹�˾ Virtual networking system and method in processing system
CN1394037A (en) * 2001-06-25 2003-01-29 华为技术有限公司 Method for implementing interface between workstation and operating system of telecommunication management network
CN1937811A (en) * 2006-08-28 2007-03-28 华为技术有限公司 Terminal and server communication method, system and device
CN102231707A (en) * 2011-06-27 2011-11-02 中国建设银行股份有限公司 Method and system for reliably transmitting data message in bank outlets
CN105337849A (en) * 2015-12-07 2016-02-17 上海斐讯数据通信技术有限公司 Synchronous message handling method, synchronous message controller and sending and receiving devices
CN107645413A (en) * 2017-09-15 2018-01-30 国网山东省电力公司信息通信公司 Intelligent switched telephone network core side accesses the full-automatic configuration platform in side and method
CN108183958A (en) * 2017-12-29 2018-06-19 银联商务股份有限公司 Message transmitting method, device and payment system
CN108712481A (en) * 2018-05-04 2018-10-26 广东电网有限责任公司 A kind of communication means and device based on secure accessing area
CN110971704A (en) * 2019-12-11 2020-04-07 杭州安恒信息技术股份有限公司 Data transmission method and device based on JSON configuration file
CN111104106A (en) * 2019-12-31 2020-05-05 中电长城(长沙)信息技术有限公司 Visual development method, system and medium for integrating business process and communication message
CN113778698A (en) * 2020-06-17 2021-12-10 北京沃东天骏信息技术有限公司 Server communication method and device, storage medium and equipment
CN115473939A (en) * 2022-07-27 2022-12-13 北京仁科互动网络技术有限公司 Page communication method and device based on customer relationship management CRM system
CN115086306A (en) * 2022-08-18 2022-09-20 天津市天河计算机技术有限公司 Data transmission method and device, electronic equipment and storage medium
CN116708416A (en) * 2022-12-01 2023-09-05 黄建邦 Data transmission control method, system, control device and readable storage medium
CN115632878A (en) * 2022-12-06 2023-01-20 中海油能源发展股份有限公司采油服务分公司 Data transmission method, device and equipment based on network isolation and storage medium
CN116962388A (en) * 2023-07-07 2023-10-27 北京易华录信息技术股份有限公司 ESB-based cross-network interface data sharing method and system
CN116582365A (en) * 2023-07-12 2023-08-11 北京亿赛通科技发展有限责任公司 Network traffic safety control method and device and computer equipment
CN117336135A (en) * 2023-09-13 2024-01-02 吉林亿联银行股份有限公司 Data transmission method, device, storage medium and electronic equipment
CN117294763A (en) * 2023-11-27 2023-12-26 武汉泽塔云科技股份有限公司 Cloud desktop terminal management method for forwarding terminal request information based on proxy service

Similar Documents

Publication Publication Date Title
CN100359948C (en) Ever-decreasing network qos requirements for stored video streaming in a mobile wireless interworking environment
CN105991731A (en) Method for obtaining information, intelligent terminal and server side
CN111240858B (en) Event scheduling method and component
CN111158779B (en) Data processing method and related equipment
US11868707B2 (en) Information interaction method and apparatus, server, system, and storage medium
CN113141520B (en) Video stream transmission method and device, electronic equipment and storage medium
CN117729172A (en) Data transmission method, device and storage medium in isolated network environment
CN108810632A (en) A kind of split type television system
CN113595966A (en) Serial port communication control, configuration and test method and device, electronic equipment and storage medium
CN116244231A (en) Data transmission method, device and system, electronic equipment and storage medium
CN109104581A (en) A kind of method of wireless screen transmission, system and receive terminal
CN113327302A (en) Picture processing method and device, storage medium and electronic device
CN114461425A (en) Data processing method, device, equipment and computer readable storage medium
WO2018098896A1 (en) Method for configuring structure of data subframe and related device
CN110248038B (en) Image transmission method and system based on WIFI
CN114189890A (en) Method, device, equipment and storage medium for updating network service quality model
CN108880738B (en) Information processing method and device
CN109600837B (en) System information generation method and device
CN106851134B (en) Method, device and system for transmitting image data
CN110401851A (en) A kind of video transcoding method based on CMSP
CN112218285B (en) Method, equipment and system for transmitting uplink user data
CN115242816B (en) FC device-based data distribution method, device, equipment and storage medium
CN116541153B (en) Task scheduling method and system for edge calculation, readable storage medium and computer
WO2023088268A1 (en) Ai information transmission method and device
CN113038438B (en) Data transmission method and device of gateway, gateway and storage medium

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