A data transmission method, system, electronic device and storage medium
By acquiring data attribute information and using a preset configuration file to determine the target transmission method, the problem of the central control station needing to handle multiple protocols is solved, achieving efficient data transmission compatibility and reducing redundancy.
Patent Information
- Application Number
- CN202211193326.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-28
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2042-09-28
AI Technical Summary
In existing technologies, the central control station needs to process data in real time according to the data transmission protocols and modes of different enterprise service nodes, resulting in low data transmission efficiency, redundant and complex interactive systems, and affecting the data interaction efficiency of the communication network.
By acquiring the attribute information of the data to be transmitted, determining the target transmission method using a preset configuration file, and transmitting the data based on that method, compatibility with multiple data transmission methods is achieved.
It reduces the complexity of data transmission and processing, reduces software system redundancy, and improves data transmission efficiency and user satisfaction.
Smart Images

Figure CN115604343B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer application, and in particular to a data transmission method and system, electronic device and storage medium. BACKGROUND
[0002] At present, the data transmission between internal and external networks is often involved in the communication network, and different service nodes in the internal network need to interact with the external service nodes through the central control station. Due to the different development levels of enterprises or organizations, different enterprise service nodes may use different data transmission protocols for transmission, resulting in different data protocols and transmission modes used by different internal and external networks and the central control station. The central control station needs to process in real time according to the transmission protocol and transmission mode of each service node in order to realize data transmission. The central control station first judges the data protocol used by the service node, and then interacts with the data according to the data transmission mode set by the protocol. This processing not only reduces the transmission efficiency of the data, but also leads to redundancy and complexity of the interaction system of the central control station, greatly affecting the data interaction efficiency of the entire communication network. SUMMARY
[0003] The present application provides a data transmission method, system, electronic device and storage medium to realize the compatibility of multiple data transmission modes, reduce the complexity of data transmission processing, reduce the redundancy of the data interaction system, and improve the data transmission efficiency.
[0004] According to an aspect of the present application, a data transmission method is provided, wherein the method comprises:
[0005] obtaining the to-be-transmitted data of at least one source node, and determining the attribute information of the to-be-transmitted data;
[0006] determining the target transmission mode of the to-be-transmitted data according to the attribute information according to a preset configuration file;
[0007] transmitting the to-be-transmitted data to a target node according to the target transmission mode.
[0008] According to another aspect of the present application, a data transmission system is provided, wherein the system comprises:
[0009] an information determination module for obtaining the to-be-transmitted data of at least one source node, and determining the attribute information of the to-be-transmitted data;
[0010] a transmission determination module for determining the target transmission mode of the to-be-transmitted data according to the attribute information according to a preset configuration file;
[0011] a transmission execution module for transmitting the to-be-transmitted data to a target node according to the target transmission mode.
[0012] According to another aspect of the present application, there is provided an electronic device, comprising:
[0013] at least one processor; and
[0014] a memory connected with the at least one processor in communication; wherein,
[0015] the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the data transmission method according to any one of the embodiments of the present application.
[0016] According to another aspect of the present application, there is provided a computer readable storage medium storing computer instructions for enabling a processor to implement the data transmission method according to any one of the embodiments of the present application when executed by the processor.
[0017] The technical solution of the embodiments of the present application realizes the compatibility of multiple data transmission modes by receiving the to-be-transmitted data of the source node and determining the attribute information of the to-be-transmitted data, searching for the target transmission mode corresponding to the attribute information in a preset configuration file, and transmitting the to-be-transmitted data to the target node based on the target transmission mode, reduces the complexity of data transmission processing, reduces the redundancy of the software system, can improve the data transmission efficiency, and improves the user satisfaction degree of data transmission.
[0018] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor on the basis of these drawings.
[0020] Figure 1 is a scenario diagram of data transmission according to an embodiment of the present application;
[0021] Figure 2 is a flowchart of a data transmission method according to an embodiment of the present application;
[0022] Figure 3 is a flowchart of a data transmission method according to an embodiment of the present application;
[0023] Figure 4 is a structural schematic diagram of a data transmission system provided according to an embodiment four of the present application;
[0024] Figure 5 is a structural schematic diagram of an electronic device implementing a data transmission method of the present application. DETAILED DESCRIPTION
[0025] In order to make the personnel in the technical field better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should belong to the scope of protection of the present application.
[0026] It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] Figure 1 is a scenario diagram of data transmission provided according to an embodiment of the present application, referring to Figure 1 , the external network and the internal network each include a plurality of service nodes, each of which can perform different business functions. Each service node can use different transmission protocols and transmission modes for data transmission. The central control station can send the received data from the internal network to the external network or send the data from the external network to the internal network, realizing data interaction of the internal and external networks. The data transmission method provided by the embodiment of the present application can be used for data transmission in this scenario, and a unified data protocol can be used to process data interaction of all nodes in combination with the actual situation of the internal / external network nodes, improving the data protocol processing efficiency, enhancing the maintainability and expandability of the data interaction system.
[0028] Embodiment one
[0029] Figure 2This is a flowchart of a data transmission method according to Embodiment 1 of the present invention. This embodiment is applicable to cross-domain data transmission in a communication network. The method can be executed by a data transmission system, which can be implemented in hardware and / or software. This data transmission system can be configured at the central control station of the communication network, specifically as a server, gateway, firewall, or other network device. Figure 2 As shown, the method includes:
[0030] Step 110: Obtain the data to be transmitted from at least one source node and determine the attribute information of the data to be transmitted.
[0031] In this context, the source node can be the starting point for data interaction. The source node can be located on an intranet or an extranet. The data to be transmitted can be information transmitted between service nodes on the intranet and extranet. The data transmission method of the data to be transmitted can be determined by the source node. Attribute information can reflect the transmission method of the data to be transmitted, and may include protocol format and transmission protocol identifiers, etc.
[0032] In this embodiment of the invention, data to be transmitted from different source nodes on the intranet or the extranet can be received. The corresponding attribute information of the received data to be transmitted can be extracted. It is understood that the attribute information can be carried by the data to be transmitted or determined by the data format of the data to be transmitted.
[0033] Step 120: Determine the target transmission method of the data to be transmitted according to the attribute information based on the preset configuration file.
[0034] The preset configuration file can be configured with different transmission methods for different nodes, and the specific content of the preset configuration file can differ for different nodes. The preset configuration file may include file attribute information, node attribute information, internal and external network interaction information, business module affiliation, transmission method, and storage / read configuration information. The target transmission method can be the method by which the data to be transmitted is sent, and the target transmission method may include communication protocols, data conversion methods, etc.
[0035] In this embodiment of the invention, a preset configuration file can be read, and the corresponding target transmission method can be found within the preset configuration file according to the attribute information of the data to be transmitted. In some embodiments, the preset configuration file can be loaded into system memory, and the strings within the preset configuration file can be analyzed character by character. Depth-first traversal and polymorphism can be used to parse different types of elements within the preset configuration file, and the corresponding transmission method can be found in the parsed information based on the attribute information as the target transmission method.
[0036] Step 130: Transmit the data to be transmitted to the target node according to the target transmission method.
[0037] The target node can be a service node receiving the data to be transmitted, and the target node and the source node can be located in different network domains. For example, the source node is located in an external network, and the target node is located in an internal network. Conversely, the source node is located in an internal network, and the target node is located in an external network.
[0038] In the embodiment of the present application, the data to be transmitted can be transmitted to the target node according to the obtained target transmission mode, which can include a data transmission protocol and a data transmission format. The data to be transmitted can be transmitted to the target node according to the data transmission format. In an exemplary embodiment, the target transmission mode can include a communication protocol of the data to be transmitted. The data to be transmitted can be format-converted according to the communication protocol, and the format-converted data to be transmitted can be transmitted to the target node. In other embodiments, the transmission mode of the source node for transmitting the data to be transmitted can be consistent with the target transmission mode. The data to be transmitted can be directly transmitted to the target node according to the target transmission mode.
[0039] In the embodiment of the present application, the data to be transmitted of the source node is received, and the attribute information of the data to be transmitted is determined. The target transmission mode corresponding to the attribute information is searched in a preset configuration file. The data to be transmitted is transmitted to the target node based on the target transmission mode. The compatibility of multiple data transmission modes is realized. The complexity of data transmission processing is reduced. The redundancy of the software system is reduced. The data transmission efficiency is improved. The user satisfaction degree of data transmission is improved.
[0040] Embodiment two
[0041] Figure 3 is a flowchart of a data transmission method according to the embodiment two of the present application. The embodiment of the present application is based on the above embodiment. The determination process of the target transmission mode is described in detail. Referring to Figure 3 The method provided by the embodiment of the present application specifically includes the following steps:
[0042] Step 210, receiving the data to be transmitted sent by the source node in the internal network and / or the external network.
[0043] In the embodiment of the present application, the data to be transmitted sent by different source nodes can be received in the internal network or the external network respectively. The transmission mode of each source node for transmitting the data to be transmitted can be different.
[0044] Step 220, extracting the node identifier of the source node in the data to be transmitted as attribute information.
[0045] The node identifier can be information describing the source node. The node identifier can include a node name, a node number, etc. It can be understood that the node identifier can include node information of the source node and node information of the target node.
[0046] In the embodiment of the present application, the node identifier corresponding to the obtained to-be-transmitted data can be extracted, and the node identifier can be taken as the attribute information. In an exemplary embodiment, the node identifier can be located in the data packet header of the to-be-transmitted data, and the node identifier can be extracted as the attribute information by analyzing the packet of the to-be-transmitted data.
[0047] In step 230, at least one of the data interaction relationship, the communication protocol, and the system configuration of the service node in the preset configuration file is extracted.
[0048] The service node can be a network node participating in data transmission, and the service node can send or receive data. The data interaction relationship can be information reflecting the data transmission situation between different nodes, and can include the direction of data transmission, the source address of data transmission, the destination address of data transmission, etc. The communication protocol can represent the data transmission mode of the to-be-transmitted data, and can include a general data transmission protocol and an enterprise self-defined transmission protocol, and the communication protocol can be represented by identification information. The system configuration can include the software and hardware configuration of the source node and the destination node device of data transmission.
[0049] In the embodiment of the present application, the preset configuration file configures the data interaction relationship, the communication protocol, the system configuration, etc. for different service nodes. It can be understood that the content of the data interaction, the communication protocol, the system configuration, etc. configured for different service nodes can be different. In some embodiments, the preset configuration file can only configure the data interaction relationship or the communication protocol. In the embodiment of the present application, the timing of step 230 is not unique, and in some embodiments, the information loading of the preset configuration file can be performed before step 210.
[0050] In an example embodiment, the preset configuration file can be an SCD file, which can include six parts of Header, Station, Communication, IED, DataTypeTemplates, and SystemParameterTemplates, wherein the Header part contains configuration file identification, configuration tool, id, file modification history record, and the like. The Station part describes station name, file version, and description. The Communication part describes data interaction content of the intranet and the extranet. On the basis of the original scd file, the interactive configuration file simplifies and optimizes this part, which is divided into two sub-group tags of intranet and extranet, and records the corresponding relationship of the interactive node pair. The IED part describes the code and detailed information of each communication module. The IED part of the scd file in the prior art describes each loop and sub-node information of each electrical unit node, and the content is hundreds of lines at a time. The preset configuration file in the example embodiment only retains the node ID and description information, which are used for fast identification and processing of the protocol. The DataTypeTemplates part defines the specific data format and communication protocol. The SystemParameterTemplates part describes system parameter configuration information, which is used to describe specific reading or storage configuration parameters in the data transmission process.
[0051] Step 240, associating at least one of the data interaction relationship, the communication protocol, and the system configuration to each service node.
[0052] In the example embodiment, each service node in the preset configuration file is configured with at least one of the data interaction relationship, the communication protocol, and the system configuration. After obtaining the information configured by each service node, the information can be associated with the service node. The association can include marking the information using the identification information of the service node, or storing the information in the storage area corresponding to the different service nodes. The association can be used to determine the information used by the service node during data transmission.
[0053] Step 250, finding a target service node having the same node identification as the source node at each service node.
[0054] In the example embodiment, the node identification of the source node can be matched with the node identification of the service node. When the node identification of the service node is the same as the node identification of the source node, the service node can be recorded as a target service node. The target service node can be used to determine the transmission mode of the to-be-transmitted data.
[0055] Step 260, taking the data interaction relationship, the communication protocol, and the system configuration associated with the target service node as a target transmission mode.
[0056] Specifically, the target transmission mode can be found according to the target service node, including data interaction relationship, communication protocol and system configuration. In one embodiment, the data interaction relationship, communication protocol and system configuration with the same identification information as the target service node can be found in the memory as the target transmission mode. In another embodiment, the memory area corresponding to the target service node can be found, and the data interaction relationship, communication protocol and system configuration stored in the memory area can be taken as the target transmission mode.
[0057] Step 270, extracting the communication protocol in the target transmission mode.
[0058] In the embodiment of the present application, the communication protocol in the target transmission mode can be extracted, which can include the communication protocol name, communication protocol identification, communication protocol message format and other information. It can be understood that the communication protocol can be the data transmission mode used by the target node corresponding to the source node.
[0059] Step 280, performing data format conversion on the to-be-transmitted data according to the communication protocol.
[0060] In the embodiment of the present application, since the data transmission mode of the target node can be different from the data transmission mode of the source node, the to-be-transmitted data can be converted in data format according to the communication protocol in the target transmission mode, so that the to-be-transmitted data can be processed by the target node. The data format conversion can include data conversion between general data formats, or conversion between non-general data formats, for example, structured to-be-transmitted data can be processed into unstructured to-be-transmitted data.
[0061] Step 290, transmitting the to-be-transmitted data to the target node according to the communication protocol.
[0062] In the embodiment of the present application, the data transmission mode corresponding to the communication protocol can be used to send the to-be-transmitted data to the target node.
[0063] In the embodiment of the present application, the node identification of each to-be-transmitted data is extracted as attribute information by receiving the to-be-transmitted data transmitted by the source node in the internal network or external network, the data interaction relationship, communication protocol and system configuration and other information of different service nodes in the preset configuration file are read and managed to the corresponding service nodes, the target service node with the same node identification as the source node is found in each service node, the communication protocol of the target service node is extracted, the data format of the to-be-transmitted data is converted according to the communication protocol, and the to-be-transmitted data is transmitted to the target node according to the communication protocol, which realizes the compatibility of multiple data transmission modes, reduces the complexity of data transmission processing, reduces the redundancy of software system, improves the data transmission efficiency, and improves the user satisfaction degree of data transmission.
[0064] Further, in the embodiment of the present application, the preset configuration file comprises at least file attribute information, node attribute information, internal and external network interaction, service module attribution, transmission mode and storage and reading configuration.
[0065] The file attribute information comprises at least one of the following: file identification field, configuration tool field, modification history field.
[0066] The node attribute information comprises at least one of the following: node name field, node description field.
[0067] The service module attribution comprises at least one of the following: module code field, module description field, module type field, additional information field.
[0068] The internal and external network interaction comprises at least one of the following: internal and external network label field, data interaction content index field, data interaction mode identification field, data source address field, data destination address field, data type field.
[0069] The transmission mode comprises at least one of the following: service node identification field, protocol format field.
[0070] The storage and reading configuration comprises at least one of the following: protocol port number field, protocol group address field.
[0071] In the embodiment of the present application, the preset configuration file can be composed of file attribute information, node attribute information, internal and external network interaction, service module attribution, transmission mode and storage and reading configuration, the file attribute information comprises file identification field, configuration tool field and modification history field, the node attribute information comprises node name field and node description field, the service module attribution comprises module code field, module description field, module type field and additional information field, the internal and external network interaction comprises internal and external network label field, data interaction content index field, data interaction mode identification field, data source address field, data destination address field and data type field, the transmission mode comprises service node identification field and protocol format field, and the storage and reading configuration comprises protocol port number field and protocol group address field.
[0072] In one exemplary embodiment, the service module attribution, internal and external network interaction, transmission mode and storage and reading configuration in the preset configuration file are described in detail.
[0073] The service module attribution can be expressed as: <IED name="DC0001" desc="Data Communication System" type="optics" configVersion="1.00">, wherein the name attribute is the code of the module, which can be used for the program to quickly identify each communication module. In the internal and external network interaction part of the preset configuration file, the source address and destination address of the data interaction use the code of the module. name="DC0001" indicates the data communication system, DC is the English abbreviation of Data Communication, and 0001 is the ID of the module, which can be agreed according to the design of the program. The desc attribute describes the detailed name of the module, the type attribute indicates that this is an optical device, and the configVersion indicates the version of the data communication system. Further, the Services tag can be set under the IDE tag, and other information of each module can be added under the Services tag.
[0074] The internal and external network interaction can be expressed as:
[0075]
[0076] There are only two StationNetwork large tags in Communication, which represent the internal network and the external network respectively. In the ConnectedAP tag, index represents the index of the data interaction content, infoID represents the ID number of the data interaction, which can be quickly located in the program, infoName represents the detailed description of the information content, Src represents the source address of the data, Dst represents the destination address of the data, and type represents the data type. The tag <ConnectedAP index="1" infoID="1" infoName="T0" Src="DC0001" Dst="INMC0001" type="Data" / > indicates that the index is 1, the data interaction ID number is 1, the information content is "T0", the data comes from the data interaction system (DC0001), and is sent to the main control system (INMC0001). The information is data type information.
[0077] The transmission mode can be expressed as:
[0078]
[0079] In the DataType tag, the communication device name is recorded, which can be used to find the internal and external network interfaces and data formats of the data interaction software. In the ProtocolFormat tag, the protocol format of the communication of the station is recorded.
[0080] The storage and reading configuration can be expressed as:
[0081]
[0082] The SystemParameter records parameters such as port numbers and group addresses used for data transmission.
[0083] Further, in the embodiment of the present application, the method further comprises: acquiring service requirement information of the service node, and processing the preset configuration file according to the service requirement information, wherein the processing comprises at least one of adding, deleting and modifying.
[0084] The service requirement information can be requirements proposed by different service nodes for implementing service functions, and can include data formats and communication protocols.
[0085] In the embodiment of the present application, the service requirement information of different service nodes can be collected, and the preset configuration file can be processed according to the extracted service requirement information, which can include adding new data interaction relationships, communication protocols and system configurations in the preset configuration file, or deleting original data interaction relationships, communication protocols and system configurations in the preset configuration file, or updating the existing data interaction relationships, communication protocols and system configurations in the preset configuration file to new data interaction relationships, communication protocols and system configurations.
[0086] Embodiment three
[0087] The data transmission method provided by the embodiment of the application can be used for internal and external network data interaction of aviation base information, and the data transmission method can be composed of an SCD configuration file and a data interaction system, wherein an administrator needs to collect and summarize business requirements of each site, write or modify the configuration file according to a writing rule, uniformly issue the configuration file to site operators, and backup the configuration file. After receiving the configuration file issued by the administrator, the operator updates the old version of the configuration file, restarts the data interaction software, and reads the configuration file again to adapt to new business requirements. The SCD configuration file can be tailored and functionally expanded and adapted based on a protocol of a power SCD file, and the SCD file can include six parts of Header, Station, Communication, IED, DataTypeTemplates and SystemParameterTemplates, wherein the Header part includes configuration file identification, configuration tools, id, file modification history record and the like. The Station part describes a site name, a file version and a description. The Communication part describes data interaction content of the internal and external networks. On the basis of the original scd file, the interaction configuration file optimizes and adapts this part, and divides the part into two sub-group tags of internal and external networks, and records corresponding interaction node corresponding relationships. The IED part describes a code and detailed information of each communication module. The IED part of the scd file in the prior art describes each loop and sub-node information of each electrical unit node in detail, and the content is hundreds or thousands of lines, and the preset configuration file only retains node ID and description information in the embodiment of the application, and is used for rapid identification and processing of a protocol. The DataTypeTemplates part defines specific data formats and communication protocols. The SystemParameterTemplates part describes system parameter configuration information, and is used for describing specific reading or storage configuration parameters in a data transmission process.
[0088] The data interaction system requires the use of an SCD configuration file, which is compatible with the protocol code of existing nodes and enables rapid switching of the data interaction system architecture. It can also be modified according to the built-in general data protocol template to achieve multi-node data interaction functionality. Meanwhile, the data parsing module of the data interaction system software borrows the open-source tinyxml2 framework. tinyxml2 is an open-source, simple, compact, and efficient C++ XML parser consisting of only one .h file and one .cpp file, which can be quickly integrated into this data interaction system software. Data parsing is performed using tinyxml2. Specifically, the data interaction system calls tinyxml2 to read the information from the configuration file. tinyxml2 reads the data interaction configuration file into memory all at once, parses the string character by character, and uses depth-first search (DFS) and polymorphism to parse different types of elements. Because the interaction system configuration file is a concise file, the file parsing time is extremely fast. After parsing, the data interaction system retrieves the IDs and descriptions of the internal and external network data nodes from memory and stores them in the data interaction system's memory. Then, it continues to interpret the data interaction relationships, communication protocols, system configurations, etc., of each node from memory. The communication protocol includes several built-in protocol templates commonly used in previous projects. If a corresponding protocol template is found, the interaction system associates the protocol with the relevant internal and external network communication nodes. When data communication occurs between nodes, the data interaction system software converts and transmits the data according to the parsed protocol, completing the internal and external network data interaction of the aviation base information. Furthermore, it may include a graphical display module to visually display the data content list of each communication node in the SCD configuration file and the data connection relationships between the communication nodes. Users can also adjust the data connection relationships of different communication nodes through the visual graphics.
[0089] Furthermore, in some embodiments, modifications to the SCD configuration file can be made to handle the assembly and decompression of different data frames within the intranet. Since different data frames have separate transmission protocols, these protocols can be configured in the SCD configuration file. Intranet communication nodes can read the respective data protocols used in the SCD configuration file to assemble and decompress data frames. Simultaneously, the SCD configuration file can reserve space for adding data protocols needed in the future, improving the compatibility of data frame assembly and decompression.
[0090] Example 4
[0091] Figure 4 This is a schematic diagram of a data transmission system according to Embodiment 4 of the present invention, as shown below. Figure 4 As shown, the system includes: an information determination module 301, a transmission determination module 302, and a transmission execution module 303.
[0092] The information determining module 301 is configured to acquire the to-be-transmitted data of at least one source node and determine attribute information of the to-be-transmitted data.
[0093] The transmission determining module 302 is configured to determine a target transmission mode of the to-be-transmitted data according to a preset configuration file according to the attribute information.
[0094] The transmission executing module 303 is configured to transmit the to-be-transmitted data to a target node according to the target transmission mode.
[0095] According to the embodiment of the present application, the information determining module receives the to-be-transmitted data of the source node and determines the attribute information of the to-be-transmitted data, the transmission determining module searches for the target transmission mode corresponding to the attribute information in the preset configuration file, and the transmission executing module transmits the to-be-transmitted data to the target node based on the target transmission mode, thereby realizing the compatibility of multiple data transmission modes, reducing the complexity of data transmission processing, reducing the redundancy of the software system, improving the data transmission efficiency, and improving the user satisfaction degree of data transmission.
[0096] Optionally, the information determining module comprises:
[0097] The data receiving unit is configured to receive the to-be-transmitted data sent by the source node in the internal network and / or the external network.
[0098] The attribute extracting unit is configured to extract the node identifier of the source node in the to-be-transmitted data as the attribute information.
[0099] Optionally, the transmission determining module 302 comprises:
[0100] The configuration reading unit is configured to extract at least one of the data interaction relationship, the communication protocol, and the system configuration of the service node in the preset configuration file.
[0101] The information association unit is configured to associate at least one of the data interaction relationship, the communication protocol, and the system configuration to each of the service nodes.
[0102] The node searching unit is configured to search for a target service node having the same node identifier as the source node in each of the service nodes.
[0103] The determination executing unit is configured to take the data interaction relationship, the communication protocol, and the system configuration associated with the target service node as the target transmission mode.
[0104] Optionally, the transmission executing module 303 is specifically configured to extract the communication protocol in the target transmission mode and transmit the to-be-transmitted data to the target node according to the communication protocol.
[0105] Optionally, the system provided by the embodiment of the present application further comprises a data conversion module configured to perform data format conversion on the data to be transmitted according to the communication protocol.
[0106] Optionally, the preset configuration file in the system provided by the embodiment of the present application comprises at least file attribute information, node attribute information, internal and external network interaction information, service module attribution, transmission mode and storage and reading configuration.
[0107] The file attribute information comprises at least one of the following: a file identification field, a configuration tool field and a modification history field.
[0108] The node attribute information comprises at least one of the following: a node name field and a node description field.
[0109] The service module attribution comprises at least one of the following: a module code field, a module description field, a module type field and an additional information field.
[0110] The internal and external network interaction information comprises at least one of the following: an internal and external network label field, a data interaction content index field, a data interaction mode identification field, a data source address field, a data destination address field and a data type field.
[0111] The transmission mode comprises at least one of the following: a service node identification field and a protocol format field.
[0112] The storage and reading configuration comprises at least one of the following: a protocol port number field and a protocol group address field.
[0113] Optionally, the system provided by the embodiment of the present application further comprises:
[0114] A configuration updating module configured to acquire service demand information of a service node and process the preset configuration file according to the service demand information, wherein the processing comprises at least one of adding, deleting and modifying.
[0115] The data transmission system provided by the embodiment of the present application can execute the data transmission method provided by any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.
[0116] Embodiment five
[0117] Figure 5This is a schematic diagram of the structure of an electronic device implementing the data transmission method of an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0118] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0119] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0120] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as data transfer methods.
[0121] In some embodiments, the data transmission method can be implemented as a computer program tangibly embodied in a computer readable storage medium, e.g., storage unit 18. In some embodiments, parts or all of the computer program can be loaded and / or installed onto electronic device 10 via, e.g., ROM 12 and / or communication unit 19. When the computer program is loaded onto RAM 13 and executed by processor 11 as described above, one or more steps of the data transmission method described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the data transmission method by way of other means, e.g., with the aid of firmware.
[0122] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a programmable logic device (PLD), a computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0123] Computer programs used to implement the methods of the present application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the computer program, when executed by the processor of the machine, implements the functions / acts specified in the flowcharts and / or block diagrams. The computer program can be executed entirely on a machine, partially on a machine, partially on a machine as part of a standalone software package, or entirely on a remote machine or server.
[0124] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer-readable storage medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of a machine-readable storage medium will include one or more lines of a program of instructions in a transitory signal, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0125] To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
[0126] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0127] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system, to solve the defects of large management difficulty and weak business scalability in traditional physical host and VPS service.
[0128] It should be understood that the various forms of flow shown above can be used to reorder, add or delete steps. For example, each step described in the present application can be executed in parallel, sequentially or in a different order, as long as the desired results of the technical solutions of the present application can be achieved, which is not limited herein.
[0129] The above detailed description does not constitute a limitation on the scope of protection of the present application. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A data transmission method, characterized by, The method comprises the following steps: acquiring data to be transmitted of at least one source node and determining attribute information of the data to be transmitted; determining a target transmission mode of the data to be transmitted according to a preset configuration file according to the attribute information; transmitting the data to be transmitted to a target node according to the target transmission mode; wherein the step of determining the target transmission mode of the data to be transmitted according to the preset configuration file according to the attribute information comprises the following steps: extracting at least one of a data interaction relationship, a communication protocol and a system configuration of a service node in the preset configuration file; associating the at least one of the data interaction relationship, the communication protocol and the system configuration to each of the service nodes; finding a target service node having a same node identifier as the source node at each of the service nodes; associating the data interaction relationship, the communication protocol and the system configuration of the target service node as the target transmission mode; the preset configuration file is an SCD file, and the preset configuration file at least comprises file attribute information, node attribute information, internal and external network interaction, service module attribution, transmission mode and storage and reading configuration; wherein the file attribute information comprises at least one of a file identifier field, a configuration tool field and a modification history field; the node attribute information comprises at least one of a node name field and a node description field; the service module attribution comprises at least one of a module code field, a module description field, a module type field and an additional information field; the internal and external network interaction comprises at least one of an internal and external network label field, a data interaction content index field, a data interaction mode identifier field, a data source address field, a data destination address field and a data type field; the transmission mode comprises at least one of a service node identifier field and a protocol format field; the storage and reading configuration comprises at least one of a protocol port number field and a protocol group address field.
2. The method of claim 1, wherein, The method comprises the following steps: receiving the data to be transmitted sent by the source node in an internal network and / or an external network; extracting a node identifier of the source node in the data to be transmitted as the attribute information.
3. The method of claim 1, wherein, The method comprises the following steps: extracting a communication protocol in the target transmission mode; transmitting the data to be transmitted to the target node according to the communication protocol.
4. The method of claim 3, wherein, Before the step of transmitting the data to be transmitted to the target node according to the communication protocol, the method further comprises the following step: performing data format conversion on the data to be transmitted according to the communication protocol.
5. The method of claim 1, wherein, The method further comprises the following steps: acquiring service demand information of a service node and processing the preset configuration file according to the service demand information, wherein the processing comprises at least one of adding, deleting and modifying.
6. A data transmission system, characterized by The method comprises the following steps: an information determination module, configured to acquire data to be transmitted of at least one source node and determine attribute information of the data to be transmitted; a transmission determination module, configured to determine a target transmission mode of the data to be transmitted according to a preset configuration file according to the attribute information; The transmission execution module is configured to transmit the to-be-transmitted data to a target node according to the target transmission mode. The transmission determination module comprises: The configuration reading unit is configured to extract at least one of a data interaction relationship, a communication protocol and a system configuration of a service node in the preset configuration file; The information association unit is configured to associate the at least one of the data interaction relationship, the communication protocol and the system configuration to each of the service nodes; The node searching unit is configured to search for a target service node having a same node identifier as the source node in each of the service nodes; The determination execution unit is configured to take the data interaction relationship, the communication protocol and the system configuration associated with the target service node as the target transmission mode. The preset configuration file is an SCD file, and the preset configuration file at least comprises file attribute information, node attribute information, internal and external network interaction, service module attribution, transmission mode and storage and reading configuration. The file attribute information comprises at least one of a file identifier field, a configuration tool field and a modification history field. The node attribute information comprises at least one of a node name field and a node description field. The service module attribution comprises at least one of a module code field, a module description field, a module type field and an additional information field. The internal and external network interaction comprises at least one of an internal and external network label field, a data interaction content index field, a data interaction mode identifier field, a data source address field, a data destination address field and a data type field. The transmission mode comprises at least one of a service node identifier field and a protocol format field. The storage and reading configuration comprises at least one of a protocol port number field and a protocol group address field.
7. An electronic device, comprising: The electronic device comprises: at least one processor; and a memory connected with the at least one processor in communication; wherein The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the data transmission method in any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions for enabling the processor to execute the data transmission method in any one of claims 1-5 when executed.
Citation Information
Patent Citations
Data transmission method and device, electronic device and storage medium
CN109194647A
Data transmission method and device and computer readable storage medium
CN114401201A