CN111342932B - Data transmission method, device, equipment and computer readable storage medium - Google Patents

Data transmission method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN111342932B
CN111342932B CN202010102457.9A CN202010102457A CN111342932B CN 111342932 B CN111342932 B CN 111342932B CN 202010102457 A CN202010102457 A CN 202010102457A CN 111342932 B CN111342932 B CN 111342932B
Authority
CN
China
Prior art keywords
service
platform
user
data
supplier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010102457.9A
Other languages
Chinese (zh)
Other versions
CN111342932A (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.)
Wanghai Kangxin Beijing Technology Co ltd
Original Assignee
Wanghai Kangxin Beijing 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 Wanghai Kangxin Beijing Technology Co ltd filed Critical Wanghai Kangxin Beijing Technology Co ltd
Priority to CN202010102457.9A priority Critical patent/CN111342932B/en
Publication of CN111342932A publication Critical patent/CN111342932A/en
Application granted granted Critical
Publication of CN111342932B publication Critical patent/CN111342932B/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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0015Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy
    • 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/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application provides a method, a device, equipment and a computer readable storage medium for data transmission, wherein the method is applied to a gateway and comprises the following steps: receiving a first message sent by a service initiating terminal, wherein the first message comprises service data and node information, and the service initiating terminal comprises a user platform included by a user system, a supplier platform user side included by the user system and any one of the supplier platforms; and sending the service data to a service receiving end according to the node information and a preset transmission strategy, wherein the service receiving end comprises at least one of a user platform, a supplier platform user side and a supplier platform. According to the method, under the condition that the user system is located in an internal network and the provider platform is located in an external network, the consistency of data transmission among the user platform included by the user system, the provider platform user side included by the user system and the provider platform is ensured through the gateway and the preset transmission strategy.

Description

Data transmission method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for data transmission.
Background
At present, based on the demand of informatization construction in the medical field, in order to establish the supply-demand relationship between a hospital platform and a supplier, information intercommunication between the hospital and the supplier needs to be realized. Due to the confidentiality of information of the hospital platform and the limitation of a network environment, the hospital end of the hospital platform and the hospital end of the supplier platform are positioned in an internal hospital network, the supplier platform is positioned in an external hospital network, and the consistency and safety of data transmission among the hospital platform, the hospital end of the supplier platform and the supplier platform are ensured under the condition that the internal hospital network and the external hospital network are mutually isolated; however, in a scenario where an internal hospital network and an external hospital network are isolated from each other, the prior art does not achieve consistency of data transmission among a hospital platform, a supplier platform hospital side and a supplier platform.
Disclosure of Invention
The present application provides a method, an apparatus, a device and a computer readable storage medium for data transmission, which are used to solve the problem of consistency of data transmission.
In a first aspect, the present application provides a data transmission method, applied to a gateway, including:
receiving a first message sent by a service initiating terminal, wherein the first message comprises service data and node information, and the service initiating terminal comprises a user platform included by a user system, a supplier platform user side included by the user system and any one of the supplier platforms;
and sending the service data to a service receiving end according to the node information and a preset transmission strategy, wherein the service receiving end comprises at least one of a user platform, a supplier platform user side and a supplier platform.
Optionally, sending the service data to a service receiving end according to the node information and a preset transmission policy, including:
and sending the service data to a service receiving end according to the port information included in the node information and any one of single synchronous transmission, paging synchronous transmission and asynchronous transmission in the transmission strategy.
Optionally, after the service data is sent to the service receiving end, the method further includes:
and when receiving second information sent by the service receiving end, sending indication information to the service initiating end, wherein the second information is used for representing the failure of service data sending, the indication information is used for indicating the service initiating end to perform rollback operation, and the rollback operation is used for enabling the service initiating end to recover to the state before the service data is sent.
Optionally, a record of the failure of sending the service data is generated according to the second information and a preset compensation mechanism, and the record is sent to a preset operation and maintenance system, so that the operation and maintenance system performs a retry on the service data at regular time according to the record.
Optionally, the gateway provides the same interface format for data transmission between the gateway and the user platform, the supplier platform user side, and the supplier platform in the same data format.
Optionally, before sending the service data to the service receiving end according to the node information and a preset transmission policy, the method further includes:
and encrypting the service data in a dynamic password mode.
Optionally, when it is detected that the first message is received repeatedly, the service data is discarded according to a preset idempotent mechanism.
In a second aspect, the present application provides an apparatus for data transmission, which is applied to a gateway, and includes:
the system comprises a first processing module, a second processing module and a service processing module, wherein the first processing module is used for receiving a first message sent by a service initiating terminal, the first message comprises service data and node information, and the service initiating terminal comprises a user platform included by a user system, a supplier platform user side included by the user system and any one of the supplier platforms;
and the second processing module is used for sending the service data to a service receiving end according to the node information and a preset transmission strategy, and the service receiving end comprises at least one of a user platform, a supplier platform user end and a supplier platform.
Optionally, the second processing module is specifically configured to send the service data to the service receiving end according to the port information included in the node information and any one of single synchronous transmission, paging synchronous transmission, and asynchronous transmission in the transmission policy.
Optionally, after the service data is sent to the service receiving end, the method further includes:
and when receiving second information sent by the service receiving end, sending indication information to the service initiating end, wherein the second information is used for representing the failure of service data sending, the indication information is used for indicating the service initiating end to perform rollback operation, and the rollback operation is used for enabling the service initiating end to recover to the state before the service data is sent.
Optionally, a record of the failure of sending the service data is generated according to the second information and a preset compensation mechanism, and the record is sent to a preset operation and maintenance system, so that the operation and maintenance system performs a retry on the service data at regular time according to the record.
Optionally, the gateway provides the same interface format for data transmission between the gateway and the user platform, the supplier platform user side, and the supplier platform in the same data format.
Optionally, before sending the service data to the service receiving end according to the node information and a preset transmission policy, the method further includes:
and encrypting the service data in a dynamic password mode.
Optionally, when it is detected that the first message is received repeatedly, the service data is discarded according to a preset idempotent mechanism.
In a third aspect, the present application provides an electronic device, comprising: a processor, a memory, and a bus;
a bus for connecting the processor and the memory;
a memory for storing operating instructions;
and the processor is used for executing the data transmission method of the first aspect of the application by calling the operation instruction.
In a fourth aspect, the present application provides a computer readable storage medium storing a computer program for performing the method of data transmission of the first aspect of the present application.
The technical scheme provided by the embodiment of the application at least has the following beneficial effects:
receiving a first message sent by a service initiating terminal, wherein the first message comprises service data and node information, and the service initiating terminal comprises a user platform included by a user system, a supplier platform user side included by the user system and any one of the supplier platforms; and sending the service data to a service receiving end according to the node information and a preset transmission strategy, wherein the service receiving end comprises at least one of a user platform, a supplier platform user side and a supplier platform. Therefore, under the condition that the user system is positioned in an internal network and the supplier platform is positioned in an external network, the consistency of data transmission among the user platform included by the user system, the supplier platform user side included by the user system and the supplier platform is ensured through the gateway and the preset transmission strategy.
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
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a data transmission architecture according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
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 invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
For better understanding and description of the embodiments of the present application, some technical terms used in the embodiments of the present application will be briefly described below.
Gateway (Gateway): the gateway is an internetwork connector and a protocol converter, realizes network interconnection above a network layer, is complex network interconnection equipment and is only used for interconnection of two different networks with high-level protocols; the gateway can be used for interconnection of a wide area network and local area network; a gateway is a computer system or device that acts as a switch-master, used between two systems of different communication protocols, data formats or languages, and even completely different architectures.
Idempotent: idempotent is defined as f (x) f (x)), and a function uses the same parameters, and the result of one call to the function is the same as the result of multiple calls; for the consuming side, if the consuming operation is an idempotent operation, even if a repeated message comes in, the idempotent operation will obtain the same result, thereby eliminating the influence of the repeated message on the consuming system.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
The embodiment of the present application provides a data transmission method, which is applied to a gateway, and a flow diagram of the method is shown in fig. 1, where the method includes:
s101, receiving a first message sent by a service initiating terminal, wherein the first message comprises service data and node information, and the service initiating terminal comprises a user platform included by a user system, a supplier platform user side included by the user system and any one of the supplier platforms.
Optionally, the user system is a hospital system, the user platform is one or more hospital platforms, and the supplier platform user side is a supplier platform hospital side.
Optionally, the business data comprises at least one of supplier status data, historical material data.
Optionally, the node information includes at least one of a port identifier of the gateway and a port identifier of the service receiving end.
And S102, sending the service data to a service receiving end according to the node information and a preset transmission strategy, wherein the service receiving end comprises at least one of a user platform, a supplier platform user side and a supplier platform.
Optionally, the preset transmission policy includes any one of single synchronous transmission, paged synchronous transmission and asynchronous transmission.
In the embodiment of the application, a first message sent by a service initiating terminal is received, wherein the first message comprises service data and node information, and the service initiating terminal comprises a user platform included by a user system, a supplier platform user side included by the user system and any one of the supplier platforms; and sending the service data to a service receiving end according to the node information and a preset transmission strategy, wherein the service receiving end comprises at least one of a user platform, a supplier platform user side and a supplier platform. Therefore, under the condition that the user system is positioned in an internal network and the supplier platform is positioned in an external network, the consistency of data transmission among the user platform included by the user system, the supplier platform user side included by the user system and the supplier platform is ensured through the gateway and the preset transmission strategy.
Optionally, sending the service data to a service receiving end according to the node information and a preset transmission policy, including:
and sending the service data to a service receiving end according to the port information included in the node information and any one of single synchronous transmission, paging synchronous transmission and asynchronous transmission in the transmission strategy.
Optionally, after the service data is sent to the service receiving end, the method further includes:
and when receiving second information sent by the service receiving end, sending indication information to the service initiating end, wherein the second information is used for representing the failure of service data sending, the indication information is used for indicating the service initiating end to perform rollback operation, and the rollback operation is used for enabling the service initiating end to recover to the state before the service data is sent.
Optionally, a record of the failure of sending the service data is generated according to the second information and a preset compensation mechanism, and the record is sent to a preset operation and maintenance system, so that the operation and maintenance system performs a retry on the service data at regular time according to the record.
Optionally, when data transmission fails, a data retry mechanism is introduced into the gateway, so that data transmission failure caused by network fluctuation is avoided, the operation and maintenance system is timely notified of timing retry for synchronization failure records, the timing retry reaches a certain number of times, manual try can be performed, system resources are saved, and an effective mechanism is provided for maintaining data transmission consistency.
Optionally, the gateway provides the same interface format for data transmission between the gateway and the user platform, the supplier platform user side, and the supplier platform in the same data format.
Optionally, before sending the service data to the service receiving end according to the node information and a preset transmission policy, the method further includes:
and encrypting the service data in a dynamic password mode.
Optionally, when it is detected that the first message is received repeatedly, the service data is discarded according to a preset idempotent mechanism.
Optionally, an idempotent mechanism ensures that the same message is not transmitted repeatedly, and for the same repeated data synchronization, a data comparison method is configured, and the repeated data is discarded, so that system resources are not wasted for data processing.
Optionally, as shown in fig. 2, a hospital platform 201, a supplier platform hospital side 202, a gateway 203, and a supplier platform 204 are included in fig. 2. The gateway 203 is used as a transaction coordinator to solve the problem that the transaction consistency cannot be ensured in the traditional distributed transaction network isolation scene; the gateway 203 provides a synchronization strategy defining a uniform interface, a data transmission encryption mechanism and big data, so as to ensure the consistent data format and data security provided for the hospital platform 201, the supplier platform hospital side 202 and the supplier platform 204; the hospital intranet comprises 1 or more hospital platforms 201 and a supplier platform hospital end 202, the hospital platforms 201 and the supplier platform hospital end 202 correspond to different databases respectively, and the hospital extranet comprises a supplier platform 204.
Optionally, in a scenario where the hospital intranet and the hospital extranet are isolated from each other, the gateway 203 communicates with the hospital intranet, the gateway 203 communicates with the hospital extranet, the gateway 203 serves as a proxy node for an event, any one of the three nodes, namely, the hospital platform 201, the provider platform hospital side 202, and the provider platform 204, initiates a distributed event request, for example, a first message, sends the first message to the gateway 203, after the gateway 203 receives the first message, the gateway 203 coordinates the hospital platform 201, the provider platform hospital side 202, and the provider platform 204 to execute corresponding operations according to the first message, the gateway 203 controls the submission or rollback operation of the event, the gateway 203 finally sends an execution result to the service initiating side, and the service initiating side performs subsequent processing according to the corresponding result.
Optionally, the gateway 203 provides a uniform interface format, ensures that the data format provided by the hospital platform 201 is uniform, ensures data consistency from the format, and the gateway 201 performs data transmission between the hospital platform 201 and the provider platform 204 in the uniform data format.
Optionally, the gateway 203 encrypts the unified data before synchronizing the data, and uses a dynamic password to make the secret key of each hospital private, thereby ensuring the interface security of the internal network of the hospital.
Optionally, the synchronization policy of the big data provided by the gateway 203 includes that different interfaces correspond to different service types, the service types include provider states, historical materials, and the like, and different transmission policies are configured for different service types. The synchronous supplier state can adopt single synchronous transmission, and the single synchronous transmission can realize single data updating. The synchronous historical materials can be transmitted in a paging synchronous mode, and paging synchronous transmission can realize paging transmission of a large amount of historical materials. By adopting asynchronous transmission, the hospital platform 201 sends first information to the gateway 203, the first information comprises service data and node information, the service data comprises updated supplier state data, the hospital platform 201 does not need to wait for feedback of the supplier platform 204, and data transmission is continued, so that the user experience is improved by the asynchronous transmission, and meanwhile, stable transmission of the data is ensured.
In the embodiment of the application, the consistency of data transmission among the hospital platform included in the hospital system, the supplier platform hospital side included in the hospital system and the supplier platform is ensured through the gateway and the preset transmission strategy under the condition that the hospital system is located in the intranet and the supplier platform is located in the extranet.
Based on the same inventive concept, the embodiment of the present application further provides a data transmission apparatus, which is schematically shown in fig. 3, and the data transmission apparatus 30 includes a first processing module 301 and a second processing module 302.
A first processing module 301, configured to receive a first message sent by a service initiating end, where the first message includes service data and node information, and the service initiating end includes any one of a user platform included in a user system, a provider platform user end included in the user system, and a provider platform;
the second processing module 302 is configured to send the service data to a service receiving end according to the node information and a preset transmission policy, where the service receiving end includes at least one of a user platform, a provider platform user side, and a provider platform.
Optionally, the second processing module 302 is specifically configured to send the service data to the service receiving end according to the port information included in the node information and any one of single synchronous transmission, paging synchronous transmission, and asynchronous transmission in the transmission policy.
Optionally, after the service data is sent to the service receiving end, the method further includes:
and when receiving second information sent by the service receiving end, sending indication information to the service initiating end, wherein the second information is used for representing the failure of service data sending, the indication information is used for indicating the service initiating end to perform rollback operation, and the rollback operation is used for enabling the service initiating end to recover to the state before the service data is sent.
Optionally, a record of the failure of sending the service data is generated according to the second information and a preset compensation mechanism, and the record is sent to a preset operation and maintenance system, so that the operation and maintenance system performs a retry on the service data at regular time according to the record.
Optionally, the gateway provides the same interface format for data transmission between the gateway and the user platform, the supplier platform user side, and the supplier platform in the same data format.
Optionally, before sending the service data to the service receiving end according to the node information and a preset transmission policy, the method further includes:
and encrypting the service data in a dynamic password mode.
Optionally, when it is detected that the first message is received repeatedly, the service data is discarded according to a preset idempotent mechanism.
The application of the embodiment of the application has at least the following beneficial effects:
receiving a first message sent by a service initiating terminal, wherein the first message comprises service data and node information, and the service initiating terminal comprises a user platform included by a user system, a supplier platform user side included by the user system and any one of the supplier platforms; and sending the service data to a service receiving end according to the node information and a preset transmission strategy, wherein the service receiving end comprises at least one of a user platform, a supplier platform user side and a supplier platform. Therefore, under the condition that the user system is positioned in an internal network and the supplier platform is positioned in an external network, the consistency of data transmission among the user platform included by the user system, the supplier platform user side included by the user system and the supplier platform is ensured through the gateway and the preset transmission strategy.
For the content that is not described in detail in the data transmission device provided in the embodiment of the present application, reference may be made to the data transmission method provided in the foregoing embodiment, and the beneficial effects that the data transmission device provided in the embodiment of the present application can achieve are the same as the data transmission method provided in the foregoing embodiment, and are not described herein again.
Based on the same inventive concept, the embodiment of the present application further provides an electronic device, a schematic structural diagram of the electronic device is shown in fig. 4, the electronic device 7000 includes at least one processor 7001, a memory 7002 and a bus 7003, and the at least one processor 7001 is electrically connected to the memory 7002; the memory 7002 is configured to store at least one computer executable instruction, and the processor 7001 is configured to execute the at least one computer executable instruction so as to execute the steps of any one of the methods of data transmission as provided in any one of the embodiments or any one of the alternative embodiments of the present application.
Further, the processor 7001 may be an FPGA (Field-Programmable Gate Array) or other devices having logic processing capability, such as an MCU (micro controller Unit) and a CPU (Central processing Unit).
The application of the embodiment of the application has at least the following beneficial effects:
receiving a first message sent by a service initiating terminal, wherein the first message comprises service data and node information, and the service initiating terminal comprises a user platform included by a user system, a supplier platform user side included by the user system and any one of the supplier platforms; and sending the service data to a service receiving end according to the node information and a preset transmission strategy, wherein the service receiving end comprises at least one of a user platform, a supplier platform user side and a supplier platform. Therefore, under the condition that the user system is positioned in an internal network and the supplier platform is positioned in an external network, the consistency of data transmission among the user platform included by the user system, the supplier platform user side included by the user system and the supplier platform is ensured through the gateway and the preset transmission strategy.
Based on the same inventive concept, the present application further provides a computer-readable storage medium storing a computer program for implementing any one of the embodiments of the present application or any one of the steps of the method for focus control when the computer program is executed by a processor.
The computer-readable storage medium provided by the embodiments of the present application includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random Access memories), EPROMs (Erasable Programmable Read-Only memories), EEPROMs (Electrically Erasable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a readable storage medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer).
The application of the embodiment of the application has at least the following beneficial effects:
receiving a first message sent by a service initiating terminal, wherein the first message comprises service data and node information, and the service initiating terminal comprises a user platform included by a user system, a supplier platform user side included by the user system and any one of the supplier platforms; and sending the service data to a service receiving end according to the node information and a preset transmission strategy, wherein the service receiving end comprises at least one of a user platform, a supplier platform user side and a supplier platform. Therefore, under the condition that the user system is positioned in an internal network and the supplier platform is positioned in an external network, the consistency of data transmission among the user platform included by the user system, the supplier platform user side included by the user system and the supplier platform is ensured through the gateway and the preset transmission strategy.
It will be understood by those within the art that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. Those skilled in the art will appreciate that the computer program instructions may be implemented by a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, implement the aspects specified in the block or blocks of the block diagrams and/or flowchart illustrations disclosed herein.
Those of skill in the art will appreciate that the various operations, methods, steps in the processes, acts, or solutions discussed in this application can be interchanged, modified, combined, or eliminated. Further, other steps, measures, or schemes in various operations, methods, or flows that have been discussed in this application can be alternated, altered, rearranged, broken down, combined, or deleted. Further, steps, measures, schemes in the prior art having various operations, methods, procedures disclosed in the present application may also be alternated, modified, rearranged, decomposed, combined, or deleted.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.

Claims (10)

1. A data transmission method is applied to a gateway, and is characterized by comprising the following steps:
receiving a first message sent by a service initiating terminal, wherein the first message comprises service data and node information, and the service initiating terminal comprises a user platform included by a user system, a supplier platform user side included by the user system and any one of the supplier platforms; the user side of the user platform and the user side of the supplier platform are positioned in an internal network, and the supplier platform is positioned in an external network;
sending the service data to a service receiving end according to the node information, a synchronization strategy of big data provided by the gateway and a preset transmission strategy, wherein the service receiving end comprises at least one of the user platform, the supplier platform user side and the supplier platform; the synchronization strategy comprises different interfaces corresponding to different service types, and different transmission strategies are configured for the different service types; the node information includes at least one of a port identifier of the gateway and a port identifier of the service receiving end.
2. The method of claim 1, wherein the sending the service data to the service receiving end according to the node information, a synchronization policy of big data provided by the gateway, and a preset transmission policy comprises:
and sending the service data to the service receiving end according to port information included in the node information, a synchronization strategy of big data provided by the gateway and any one of single synchronous transmission, paging synchronous transmission and asynchronous transmission in the transmission strategy.
3. The method of claim 1, further comprising, after the sending the service data to the service receiving end:
and when receiving second information sent by the service receiving end, sending indication information to the service initiating end, wherein the second information is used for representing the failure of sending the service data, the indication information is used for indicating the service initiating end to perform rollback operation, and the rollback operation is used for enabling the service initiating end to recover to the state before the service data is sent.
4. The method of claim 3, further comprising:
and generating a record of the service data sending failure according to the second information and a preset compensation mechanism, and sending the record to a preset operation and maintenance system so as to enable the operation and maintenance system to retry the service data at regular time according to the record.
5. The method of claim 1, wherein the gateway provides the same interface format for data transmission between the gateway and the user platform, the provider platform user side, and the provider platform in the same data format.
6. The method according to claim 1, wherein before sending the service data to a service receiving end according to the node information, the synchronization policy of the big data provided by the gateway, and a preset transmission policy, further comprising:
and encrypting the service data in a dynamic password mode.
7. The method of claim 1, further comprising:
and when the first message is detected to be repeatedly received, discarding the service data according to a preset idempotent mechanism.
8. An apparatus for data transmission, applied to a gateway, comprising:
the system comprises a first processing module, a second processing module and a third processing module, wherein the first processing module is used for receiving a first message sent by a service initiating terminal, the first message comprises service data and node information, and the service initiating terminal comprises a user platform included by a user system, a supplier platform user side included by the user system and any one of the supplier platform; the user side of the user platform and the user side of the supplier platform are positioned in an internal network, and the supplier platform is positioned in an external network;
the second processing module is used for sending the service data to a service receiving end according to the node information, a synchronization strategy of big data provided by the gateway and a preset transmission strategy, wherein the service receiving end comprises at least one of the user platform, the supplier platform user side and the supplier platform; the synchronization strategy comprises different interfaces corresponding to different service types, and different transmission strategies are configured for the different service types; the node information includes at least one of a port identifier of the gateway and a port identifier of the service receiving end.
9. An electronic device, comprising: a processor, a memory;
the memory for storing a computer program;
the processor configured to execute the method for data transmission according to any one of claims 1 to 7 by calling the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the method of data transmission according to any one of claims 1 to 7.
CN202010102457.9A 2020-02-19 2020-02-19 Data transmission method, device, equipment and computer readable storage medium Active CN111342932B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010102457.9A CN111342932B (en) 2020-02-19 2020-02-19 Data transmission method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010102457.9A CN111342932B (en) 2020-02-19 2020-02-19 Data transmission method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111342932A CN111342932A (en) 2020-06-26
CN111342932B true CN111342932B (en) 2022-09-16

Family

ID=71185431

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010102457.9A Active CN111342932B (en) 2020-02-19 2020-02-19 Data transmission method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111342932B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114172918B (en) * 2021-12-08 2023-08-01 天翼物联科技有限公司 Data synchronization method, device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103391257A (en) * 2012-05-08 2013-11-13 阿里巴巴集团控股有限公司 Message storing and forwarding method, device and system
CN205647582U (en) * 2016-03-16 2016-10-12 无锡十月中宸科技有限公司 Cloud safe gateway and cloud safety coefficient
CN106533973A (en) * 2016-11-04 2017-03-22 华为技术有限公司 Method and system for distributing service message, and equipment
CN107609820A (en) * 2017-09-19 2018-01-19 深圳市优户科技有限公司 Method, system, medium and the server that commerce and trade enterprise interacts with supplier wechat
CN107800603A (en) * 2017-07-31 2018-03-13 北京上和瑞科技有限公司 Intranet user accesses the method and storage medium of headend equipment based on VPN
CN109361776A (en) * 2018-12-18 2019-02-19 郑州云海信息技术有限公司 Method for message transmission and device in cloud computing system
WO2019202367A1 (en) * 2018-04-18 2019-10-24 Cashworks Operations Ag Method and system for facilitating a decision about a money transaction

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170076233A1 (en) * 2015-09-15 2017-03-16 Caterpillar Inc. Sharing Application for Equipment and Personnel

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103391257A (en) * 2012-05-08 2013-11-13 阿里巴巴集团控股有限公司 Message storing and forwarding method, device and system
CN205647582U (en) * 2016-03-16 2016-10-12 无锡十月中宸科技有限公司 Cloud safe gateway and cloud safety coefficient
CN106533973A (en) * 2016-11-04 2017-03-22 华为技术有限公司 Method and system for distributing service message, and equipment
CN107800603A (en) * 2017-07-31 2018-03-13 北京上和瑞科技有限公司 Intranet user accesses the method and storage medium of headend equipment based on VPN
CN107609820A (en) * 2017-09-19 2018-01-19 深圳市优户科技有限公司 Method, system, medium and the server that commerce and trade enterprise interacts with supplier wechat
WO2019202367A1 (en) * 2018-04-18 2019-10-24 Cashworks Operations Ag Method and system for facilitating a decision about a money transaction
CN109361776A (en) * 2018-12-18 2019-02-19 郑州云海信息技术有限公司 Method for message transmission and device in cloud computing system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
K钢铁集团电子商务系统数据安全管理研究;何玉华;《中国优秀硕士学位论文全文数据库》;20200131;全文 *
MaliceScript: A Novel Browser-Based Intranet Threat;Chaoge Liu;《IEEE》;20180719;全文 *
医院智能营养膳食分析系统的建立与应用;刘晓东等;《医疗卫生装备》;20170415(第04期);第1-3页 *

Also Published As

Publication number Publication date
CN111342932A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
CN110557384B (en) Internet of things management control method based on block chain
CN111478771B (en) Method for safety access between micro services and micro service system
CN113056898B (en) Method and device for obtaining secret key and secret key management system
JP7422167B2 (en) Communication method and communication device
EP2790104B1 (en) Systems, methods, and computer program products for recording service status of applications
CN114255031A (en) System for executing cross block chain of transaction, cross chain transaction method and equipment
WO2020252611A1 (en) Data interaction method and related equipments
CN115022101B (en) Account data changing method and device, computer equipment and storage medium
WO2024021703A1 (en) Server control method, server, and storage medium
CN114499866A (en) Key hierarchical management method and device for federal learning and privacy calculation
CN111342932B (en) Data transmission method, device, equipment and computer readable storage medium
CN114926163A (en) Resource cross-chain transfer method and device
CN112699136B (en) Cross-link certificate storage method and related device
WO2018076298A1 (en) Security capability negotiation method and related device
CN111327447B (en) Distributed system, arbitration method, node device and storage medium
CN115002803B (en) Terminal management method and device and electronic equipment
CN115022178B (en) Network card switching method and device, electronic equipment and readable storage medium
US8572383B2 (en) Key exchange device, key exchange processing system, key exchange method, and program
CN106357646B (en) Agent control system for storage management software
CN112906032B (en) File secure transmission method, system and medium based on CP-ABE and block chain
CN115174081A (en) Key synchronization method and system for VSM cold migration
CN113691510A (en) Cross-domain access control method, system, storage medium and equipment
CN114222290A (en) Communication method, device, equipment and storage medium
CN113849851A (en) Proxy method, device and computer readable storage medium
CN112512022A (en) TSN industrial application server, client, system, service method 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
GR01 Patent grant
GR01 Patent grant