A method, device, electronic device and storage medium for transmitting message data
By building and configuring the transmission channel, the interface matching processing of message data and the service interface transmission are solved, and the problem of insufficient data transmission efficiency and security in the prior art is achieved, and efficient and secure data transmission is achieved.
Patent Information
- Application Number
- CN202211563234.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-07
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2042-12-07
AI Technical Summary
The prior art has problems with insufficient data transmission efficiency and security in data exchange, especially in multi-channel transmission and isolation gate technology, where the number of transmission channels is limited and the security is easy to analyze and crack.
By building a transmission channel, configuring transmission standard information, receiving the message data to be sent and performing interface matching processing, sending request message data based on the service interface, improving the efficiency and security of data transmission are achieved, while avoiding excessive use of resources and consumption.
It improves the efficiency and security of data transmission, has higher flexibility, has less resource utilization and less consumption during transmission, and does not limit the number of transmission channels, which enhances the concealment and security of data.
Smart Images

Figure CN115801567B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device, electronic device and computer storage medium for transmitting message data. Background Art
[0002] Cross-network data exchange refers to the use of technical means to logically isolate and communicate without protocols between different networks and different security domains, or the use of certain technologies to physically isolate networks to move data from one end to another.
[0003] The existing technology adopts a dynamic ferrying transmission algorithm for data exchange. With this data exchange method, when the front-end machine and the back-end machine interact with the network gate device or interact internally with the network gate, the efficiency and security of data transmission are still defective. Specifically, the number of multi-channel transmissions is limited. Since the address pointing is allocated to select the appropriate data transmission channel when connecting, the transmission of data at the same time is limited by the number of channels; if the address is occupied more, it can be known that the address refers to the IP address. If too many addresses are occupied, it will affect the use of other device addresses in the environment; if the 2+1 architecture (built-in machine, external machine, isolated network gate) of the traditional isolation network gate technology is adopted, there are security issues such as plain text display and easy analysis and cracking when data is transmitted in the middle. If the traditional isolation network gate technology is not adopted, the software and hardware consumption of the isolation network gate will increase. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for transmitting message data, which can improve the data transmission efficiency and at the same time improve the security during data transmission, will not limit the number of transmission channels, and occupy fewer resources and consume less during the transmission process.
[0005] In a first aspect, an embodiment of the present application provides a method for transmitting message data, the method comprising:
[0006] Build transmission channels;
[0007] Configure transmission standard information;
[0008] receiving the message data to be sent according to the transmission channel and the transmission standard information;
[0009] Performing interface matching processing on the message data to be sent to obtain request message data;
[0010] The request message data is sent according to the service interface.
[0011] In the above implementation process, after the transmission channel is constructed, the message data to be sent is received according to the transmission channel and transmission standard information, and then the request message data is sent through the business interface. This can improve the data transmission efficiency and the security during data transmission. It will not limit the number of transmission channels, and the resources occupied and consumption during the transmission process are less.
[0012] Furthermore, the step of constructing the transmission channel includes:
[0013] Get the parameters needed to build the transmission channel;
[0014] configuring the parameters to obtain the configured parameters;
[0015] The transmission channel is constructed according to the configured parameters.
[0016] In the above implementation process, the transmission channel is constructed through parameter configuration, so that the transmission channel can be adjusted as needed, which is easier to adapt to the message data to be transmitted, and the number of channels is not limited, which has higher flexibility.
[0017] Furthermore, the step of configuring transmission standard information includes:
[0018] Configure the transmission type;
[0019] Configure transmission parameters and transmission channel type according to the transmission type;
[0020] The transmission standard information is obtained according to the transmission type, the transmission parameters and the transmission channel type.
[0021] In the above implementation process, transmission standard information is obtained according to the transmission type, transmission parameters and transmission channel type so that the channel and transmission mode can be consistent and more in line with data transmission requirements, thereby improving transmission efficiency.
[0022] Further, the step of performing interface matching processing on the message data to be sent to obtain request message data includes:
[0023] Determining whether the type of the message data to be sent conforms to the interface type of the transmission channel;
[0024] If so, decrypt the message data to obtain the request message data;
[0025] If not, encrypt the message data to obtain request message data.
[0026] In the above implementation process, whether the type of message data conforms to the interface type of the transmission channel is used to distinguish whether the message data is to be decrypted or encrypted, so that the transmission channel can adaptively transmit according to the type of message data, which helps to shorten the transmission time and reduce the usage of memory resources.
[0027] Furthermore, the step of decrypting the message data to obtain the request message data includes:
[0028] Perform channel decryption on the message data to obtain original message data;
[0029] Unloading the original message data to obtain a data field;
[0030] The data fields are concatenated to obtain the request message data.
[0031] In the above implementation process, the message data is channel-decrypted and unloaded, so that the obtained data fields can be spliced according to needs to obtain the request message data, which improves the applicability of the request message data and enables the request message data to better match the transmission channel and the business interface.
[0032] Furthermore, the step of encrypting the message data to obtain the request message data includes:
[0033] Unloading the message data to obtain a data field;
[0034] splicing the data fields to obtain initial request message data;
[0035] The initial request message data is encrypted to obtain the request message data.
[0036] In the above implementation process, the message data is re-encrypted, which improves the security and confidentiality of the request message data and reduces the possibility of leakage during transmission.
[0037] Further, after the step of sending the request message data according to the service interface, it also includes:
[0038] Data transmission of the request message data is monitored to obtain a record log.
[0039] In the above implementation process, the message data is monitored for data transmission and a record log is obtained to facilitate the subsequent review of the message data transmission process and to facilitate the discovery of abnormalities.
[0040] In a second aspect, an embodiment of the present application further provides a device for transmitting message data, the device comprising:
[0041] Building blocks for constructing transmission channels;
[0042] Configuration module, used to configure transmission standard information;
[0043] A receiving module, used for receiving the message data to be sent according to the transmission channel and the transmission standard information;
[0044] An interface matching module, used for performing interface matching processing on the message data to be sent to obtain request message data;
[0045] The sending module is used to send the request message data according to the service interface.
[0046] In the above implementation process, after the transmission channel is constructed, the message data to be sent is received according to the transmission channel and transmission standard information, and then the request message data is sent through the business interface. This can improve the data transmission efficiency and the security during data transmission. It will not limit the number of transmission channels, and the resources occupied and consumption during the transmission process are less.
[0047] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any one of the first aspects when executing the computer program.
[0048] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which instructions are stored. When the instructions are executed on a computer, the computer executes the method as described in any one of the first aspects.
[0049] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on a computer, enables the computer to execute the method as described in any one of the first aspects.
[0050] Other features and advantages of the present disclosure will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by implementing the above-mentioned technology of the present disclosure.
[0051] And it can be implemented according to the contents of the specification. The following is a detailed description of the preferred embodiments of the present application with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the range values. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying any creative work.
[0053] Figure 1 A flow chart of a method for transmitting message data provided in an embodiment of the present application;
[0054] Figure 2 A schematic diagram of the structure of a transmission device for message data provided in an embodiment of the present application;
[0055] Figure 3 A schematic diagram of the structural composition of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0057] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0058] The specific implementation methods of the present application are further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present application, but are not used to limit the scope of the present application.
[0059] Embodiment 1
[0060] Figure 1 is a flow chart of a method for transmitting message data provided in an embodiment of the present application, such as Figure 1 As shown, the method includes:
[0061] S1, build transmission channel;
[0062] S2, configure transmission standard information;
[0063] S3, receiving the message data to be sent according to the transmission channel and the transmission standard information;
[0064] S4, performing interface matching processing on the message data to be sent to obtain the request message data;
[0065] S5, sending the request message data according to the service interface.
[0066] In the above implementation process, after the transmission channel is constructed, the message data to be sent is received according to the transmission channel and transmission standard information, and then the request message data is sent through the business interface. This can improve the data transmission efficiency and the security during data transmission. It will not limit the number of transmission channels, and the resources occupied and consumption during the transmission process are less.
[0067] The method of the embodiment of the present application is implemented based on a data exchange product, and provides a channel covering multiple interfaces and a negotiated encryption process. In the data exchange product, by customizing the transmission channel and performing multiple encryptions on the message, the expansion of transmission efficiency and the improvement of transmission security performance are achieved.
[0068] Furthermore, S1 includes:
[0069] Get the parameters needed to build the transmission channel;
[0070] Configure the parameters to obtain the configured parameters;
[0071] Construct a transmission channel according to the configured parameters.
[0072] In the above implementation process, the transmission channel is constructed through parameter configuration, so that the transmission channel can be adjusted as needed, which is easier to adapt to the message data to be transmitted, and the number of channels is not limited, which has higher flexibility.
[0073] The embodiments of the present application require preprocessing of various parameters required for data transmission, including manually setting or automatically setting a unique number for the transmission channel (optionally, it can be a negotiation channel) to ensure that both ends of the channel can recognize each other for encryption and decryption, and assigning which physical interfaces (including business interfaces and non-business interfaces) to access the channel to ensure that message data can be sent or received from the real physical interface, and selecting an algorithm that can perform balanced distribution when transmitting message data to ensure that message data with the same attributes are sent from the same interface.
[0074] When the parameters at both ends of the channel are configured, the interface information through which both parties can communicate is determined by sending detection message data, forming a real transmission channel composed of communicative physical interfaces. Finally, the content of the message data is completely encrypted. The security of the data in the channel can be guaranteed by encryption.
[0075] Furthermore, S2 includes:
[0076] Configure the transmission type;
[0077] Configure transmission parameters and transmission channel type according to the transmission type;
[0078] The transmission standard information is obtained according to the transmission type, transmission parameters and transmission channel type.
[0079] In the above implementation process, transmission standard information is obtained according to the transmission type, transmission parameters and transmission channel type so that the channel and transmission mode can be consistent and more in line with data transmission requirements, thereby improving transmission efficiency.
[0080] Specifically, you need to configure the transmission type first, including but not limited to protocol proxy, file synchronization, database synchronization, etc., then select the corresponding specific configuration according to the transmission type, and then select the transmission channel to send data.
[0081] Furthermore, S4 includes:
[0082] Determine whether the type of the message data to be sent conforms to the interface type of the transmission channel;
[0083] If so, decrypt the message data to obtain the request message data;
[0084] If not, encrypt the message data to obtain the request message data.
[0085] In the above implementation process, whether the type of message data conforms to the interface type of the transmission channel is used to distinguish whether the message data is to be decrypted or encrypted, so that the transmission channel can adaptively transmit according to the type of message data, which helps to shorten the transmission time and reduce the occupation of memory resources.
[0086] The type of the message data to be sent is preliminarily determined to determine whether it is a type that can be received by the physical interface covered by the transmission channel. If so, the message data is decrypted; if not, the message data is encrypted without the need to decrypt the message.
[0087] Furthermore, the step of decrypting the message data to obtain the request message data includes:
[0088] Channel decryption of the message data to obtain the original message data;
[0089] Unload the original message data to obtain the data field;
[0090] The data fields are concatenated to obtain the request message data.
[0091] In the above implementation process, the message data is channel-decrypted and unloaded, so that the obtained data fields can be spliced according to needs to obtain the request message data, which improves the applicability of the request message data and enables the request message data to better match the transmission channel and the business interface.
[0092] Exemplarily, the message data received by the physical interface covered by the transmission channel is decrypted. Specifically, the outermost channel encryption part is first removed to restore the real original message data, and then the original message data is unloaded, the ISO five-layer architecture is stripped off, only the data field is retained, and then the message is spliced according to the specific data field in the message, and finally the request message data is reassembled.
[0093] Furthermore, the step of encrypting the message data to obtain the request message data includes:
[0094] Unload the message data to obtain the data field;
[0095] Concatenate the data fields to obtain the initial request message data;
[0096] The initial request message data is encrypted to obtain the request message data.
[0097] In the above implementation process, the message data is re-encrypted, which improves the security and confidentiality of the request message data and reduces the possibility of leakage during transmission.
[0098] The embodiment of the present application selects a data encryption method, such as: VPN technology (Security Socket Layer-SSL, SSLVPN) based on the secure socket layer protocol to establish a remote secure access channel, and perform secondary encryption on the data transmitted through the transmission channel. Specifically, the message data received by the physical interface not covered by the transmission channel is unloaded, the ISO five-layer architecture is stripped, only the data field is retained, and the message data is spliced according to the size or type of the message data, and then reassembled to obtain the initial request message data, and finally the initial request message data is encrypted through the channel to obtain the request message data.
[0099] Furthermore, after the step of sending the request message data according to the service interface, the method further includes:
[0100] Perform data transmission monitoring on request message data and obtain record logs.
[0101] In the above implementation process, the message data is monitored for data transmission and a record log is obtained to facilitate the subsequent review of the message data transmission process and to facilitate the discovery of abnormalities.
[0102] Perform data transmission monitoring on the request message data, specifically including comparing the channel number of the channel, the balance matching algorithm, judging whether the physical interfaces are connected, whether the physical interfaces have a corresponding relationship, and judging whether the encryption and decryption of the data passing through the transmission channel are normal, and record the corresponding information obtained from the above monitoring to obtain a record log for users to view and identify problems.
[0103] Among them, type judgment monitoring is: making a preliminary type judgment on the data received by the device, judging whether it is received by the physical interface covered by the transmission channel, and recording relevant parameters of the message data.
[0104] Message processing monitoring records each message processing process, including: whether the transmission channel successfully decrypts the message, message unloading, message restoration, message reassembly, and encryption of the message by the transmission channel.
[0105] Exemplarily, the embodiments of the present application can be applied as follows:
[0106] The transmission channel constructed in the embodiment of the present application includes a front-end channel and a back-end channel, and a unique number of the front-end channel is determined, wherein the number must have a one-to-one correspondence with the back-end channel number to ensure that data is transmitted in a controllable transmission channel, such as the transmission channel. Both parties agree that the number ID must be the same, or have a certain symmetrical asymmetric relationship (the embodiment of the present application takes the consistency of the number ID as an example). The transmission channel is configured with relevant parameters according to the physical interface to ensure the structure of the message data sent through the transmission channel.
[0107] In the front-end channel and the back-end channel, respectively, a message matching algorithm for multiple physical interfaces in a single channel is selected to ensure that message data with the same attributes are sent from the same interface. For example, when a hash value is calculated for the five-tuple of message data, messages with the same value are sent from the second physical interface feth2 under the channel ID 25543387.
[0108] Relevant non-service interface access channels are respectively specified in the front-end channel and the back-end channel, and the interface configuration is automatically replaced from the original configuration to the channel configuration.
[0109] When both ends of the transmission channel are configured, the physical interface detection information is sent to the other end to clarify the interface that can complete the communication between the two parties in the transmission channel and to confirm that the transmission channel can be established normally, and the relevant information of the establishment of the transmission channel is monitored and recorded.
[0110] The client sends a 0.1s message data, which is received by the business interface of the front-end channel. It is determined that it belongs to a non-business interface, and the request message is disassembled according to the ISO five-layer system architecture to obtain the data field. After obtaining the data fields of multiple requests from the same source within a fixed time of 0.1s, the data fields are reorganized with the check value of a single request as the tail, forming a structure of: data exchange rule ID1 + request 1 content + request 1 content check value + data exchange rule ID2 + request 2 content + request 2 content check value....
[0111] Optionally, the data exchange rule includes the protocol, business interface, port, etc. in the protocol proxy (this example takes the protocol proxy as an example) or the source server of the synchronization data, synchronization conditions, synchronization content, etc. The data exchange rule has a unique rule ID.
[0112] The data is reassembled for secondary data verification with the transmission channel ID and message data as the hash value and fixed length as the beginning. After the secondary reassembly verification, the data is encrypted in the transmission channel encryption method, and reassembled into message data according to the interface information of the transmission channel to obtain the request message data.
[0113] Optionally, the reassembled request message data is obtained through a calculated message matching algorithm through a transmission channel, and its physical interface is sent to a device in a rear-end direction, including a front-end resource pool and a rear-end machine that are not limited to the isolation network gate.
[0114] The backend receives the request message data, finds that it comes from the physical interface covered by the transmission channel, and decrypts the message data according to the encryption method of the transmission channel.
[0115] Decryption obtains multiple data fields of the request content, splits the data fields according to the message parsing rules agreed upon by the front-end and back-end, and reassembles them into a new request message data in combination with the specific information of the back-end data exchange rules (such as information related to the server providing the response or information related to the destination server of the synchronized data). Then, combined with the business interface information of the device, the request message data is sent to the real server.
[0116] The embodiments of the present application have high security during data transmission, can realize multi-physical interface transmission of the transmission channel, focus on multiple encryption of transmission data during data exchange transmission and multi-physical interface transmission of the transmission channel, and can reorganize and restore message data.
[0117] Embodiment 2
[0118] In order to execute the method corresponding to the above embodiment 1 to achieve the corresponding functions and technical effects, a transmission device for message data is provided below, such as Figure 3 As shown, the device comprises:
[0119] Building module 1, used for building a transmission channel;
[0120] Configuration module 2, used to configure transmission standard information;
[0121] Receiving module 3, used for receiving the message data to be sent according to the transmission channel and transmission standard information;
[0122] The interface matching module 4 is used to perform interface matching processing on the message data to be sent to obtain the request message data;
[0123] The sending module 5 is used to send the request message data according to the service interface.
[0124] In the above implementation process, after the transmission channel is constructed, the message data to be sent is received according to the transmission channel and transmission standard information, and then the request message data is sent through the business interface. This can improve the data transmission efficiency and the security during data transmission. It will not limit the number of transmission channels, and the resources occupied and consumption during the transmission process are less.
[0125] Furthermore, the building block 1 is also used for:
[0126] Get the parameters needed to build the transmission channel;
[0127] Configure the parameters to obtain the configured parameters;
[0128] Construct a transmission channel according to the configured parameters.
[0129] In the above implementation process, the transmission channel is constructed through parameter configuration, so that the transmission channel can be adjusted as needed, which is easier to adapt to the message data to be transmitted, and the number of channels is not limited, which has higher flexibility.
[0130] Furthermore, the configuration module 2 is also used for:
[0131] Configure the transmission type;
[0132] Configure transmission parameters and transmission channel type according to the transmission type;
[0133] The transmission standard information is obtained according to the transmission type, transmission parameters and transmission channel type.
[0134] In the above implementation process, transmission standard information is obtained according to the transmission type, transmission parameters and transmission channel type so that the channel and transmission mode can be consistent and more in line with data transmission requirements, thereby improving transmission efficiency.
[0135] Furthermore, the interface matching module 4 is also used for:
[0136] Determine whether the type of the message data to be sent conforms to the interface type of the transmission channel;
[0137] If so, decrypt the message data to obtain the request message data;
[0138] If not, encrypt the message data to obtain the request message data.
[0139] In the above implementation process, whether the type of message data conforms to the interface type of the transmission channel is used to distinguish whether the message data is to be decrypted or encrypted, so that the transmission channel can adaptively transmit according to the type of message data, which helps to shorten the transmission time and reduce the occupation of memory resources.
[0140] Furthermore, the interface matching module 4 is also used for:
[0141] Channel decryption of the message data to obtain the original message data;
[0142] Unload the original message data to obtain the data field;
[0143] The data fields are concatenated to obtain the request message data.
[0144] In the above implementation process, the message data is channel-decrypted and unloaded, so that the obtained data fields can be spliced according to needs to obtain the request message data, which improves the applicability of the request message data and enables the request message data to better match the transmission channel and the business interface.
[0145] Furthermore, the interface matching module 4 is also used for:
[0146] Unload the message data to obtain the data field;
[0147] Concatenate the data fields to obtain the initial request message data;
[0148] The initial request message data is encrypted to obtain the request message data.
[0149] In the above implementation process, the message data is re-encrypted, which improves the security and confidentiality of the request message data and reduces the possibility of leakage during transmission.
[0150] Furthermore, the device also includes a monitoring module, which is used to:
[0151] Perform data transmission monitoring on request message data and obtain record logs.
[0152] In the above implementation process, the message data is monitored for data transmission and a record log is obtained to facilitate the subsequent review of the message data transmission process and to facilitate the discovery of abnormalities.
[0153] The above-mentioned transmission device for message data can implement the method of the above-mentioned embodiment 1. The options in the above-mentioned embodiment 1 are also applicable to this embodiment and will not be described in detail here.
[0154] The rest of the contents of the embodiments of the present application can refer to the contents of the above-mentioned embodiment 1, and will not be repeated in this embodiment.
[0155] Embodiment 3
[0156] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the message data transmission method of embodiment 1.
[0157] Optionally, the above-mentioned electronic device may be a server.
[0158] See also Figure 3 , Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include a processor 31, a communication interface 32, a memory 33 and at least one communication bus 34. The communication bus 34 is used to realize direct connection and communication between these components. The communication interface 32 of the device in the embodiment of the present application is used to communicate signaling or data with other node devices. The processor 31 may be an integrated circuit chip with signal processing capabilities.
[0159] The processor 31 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor 31 can also be any conventional processor, etc.
[0160] The memory 33 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory 33 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 31, the device can execute the above-mentioned Figure 1 The method embodiment involves various steps.
[0161] Optionally, the electronic device may further include a storage controller and an input / output unit. The memory 33, the storage controller, the processor 31, the peripheral interface, and the input / output unit are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components may be electrically connected to each other via one or more communication buses 34. The processor 31 is used to execute executable modules stored in the memory 33, such as software function modules or computer programs included in the device.
[0162] The input and output unit is used to provide users with the task creation and to create a start optional time period or preset execution time for the task to realize the interaction between the user and the server. The input and output unit can be, but is not limited to, a mouse and a keyboard.
[0163] Understandably, Figure 3 The structure shown is for illustration only. The electronic device may also include Figure 3 More or fewer components as shown, or with Figure 3 Different configurations are shown. Figure 3 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0164] In addition, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which implements the message data transmission method of embodiment 1 when the computer program is executed by a processor.
[0165] The embodiment of the present application also provides a computer program product, which, when running on a computer, enables the computer to execute the method described in the method embodiment.
[0166] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart, can be implemented with a dedicated hardware-based device that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0167] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0168] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0169] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application. It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0170] The above is only a specific implementation of the present application, but the protection range of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical range disclosed in the present application, which should be included in the protection range of the present application. Therefore, the protection range of the present application should be based on the protection range of the claims.
[0171] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A method for transmitting message data, characterized in that: The method comprises: Build transmission channels; Configure transmission standard information; receiving the message data to be sent according to the transmission channel and the transmission standard information; Performing interface matching processing on the message data to be sent to obtain request message data; Sending the request message data according to the service interface; The step of configuring transmission standard information includes: Configure the transmission type; Configure transmission parameters and transmission channel type according to the transmission type; Obtaining the transmission standard information according to the transmission type, the transmission parameters and the transmission channel type; The step of performing interface matching processing on the message data to be sent to obtain request message data includes: Determining whether the type of the message data to be sent conforms to the interface type of the transmission channel; If so, decrypt the message data to obtain the request message data; If not, encrypt the message data to obtain request message data; The step of decrypting the message data to obtain the request message data includes: Perform channel decryption on the message data to obtain original message data; Unloading the original message data to obtain a data field; splicing the data fields to obtain the request message data; The step of encrypting the message data to obtain the request message data comprises: Unloading the message data to obtain a data field; splicing the data fields to obtain initial request message data; The initial request message data is encrypted to obtain the request message data.
2. The method for transmitting message data according to claim 1, characterized in that: The step of constructing the transmission channel includes: Get the parameters needed to build a transmission channel; configuring the parameters to obtain the configured parameters; The transmission channel is constructed according to the configured parameters.
3. The method for transmitting message data according to claim 1, characterized in that: After the step of sending the request message data according to the service interface, the method further includes: Data transmission of the request message data is monitored to obtain a record log.
4. A message data transmission device, characterized in that: The device comprises: Building blocks for constructing transmission channels; Configuration module, used to configure transmission standard information; A receiving module, used for receiving the message data to be sent according to the transmission channel and the transmission standard information; An interface matching module, used for performing interface matching processing on the message data to be sent to obtain request message data; A sending module, used to send the request message data according to the service interface; The configuration module is also used to: Configure the transmission type; Configure transmission parameters and transmission channel type according to the transmission type; Obtaining the transmission standard information according to the transmission type, the transmission parameters and the transmission channel type; The interface matching module is also used for: Determining whether the type of the message data to be sent conforms to the interface type of the transmission channel; If so, decrypt the message data to obtain the request message data; If not, encrypt the message data to obtain request message data; Perform channel decryption on the message data to obtain original message data; Unloading the original message data to obtain a data field; splicing the data fields to obtain the request message data; Unloading the message data to obtain a data field; splicing the data fields to obtain initial request message data; The initial request message data is encrypted to obtain the request message data.
5. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the message data transmission method according to any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that: It stores a computer program, which, when executed by a processor, implements the message data transmission method according to any one of claims 1 to 3.
