A communication method and system for data communication based on multiple communication protocols
In data communication between IoT devices, the protocol of each layer of the TCP/IP model is adapted to the data communication function and device information, and the problem of insufficient communication efficiency and stability in the prior art is solved, and more efficient and stable data communication is achieved.
Patent Information
- Application Number
- CN202411839338.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2044-12-13
AI Technical Summary
In the data communication between IoT devices, the prior art ignores the important impact of the choice of each layer of the TCP/IP model on communication efficiency and stability, resulting in insufficient communication efficiency and stability.
By judging the data communication function required to be transmitted, the application layer protocol is determined based on the data volume and communication function, then the transmission layer protocol is selected according to the application layer protocol, the network layer protocol is selected based on the device information and communication function, and finally the network interface layer protocol is selected based on the communication distance and network layer protocol, ensuring that each layer selects the appropriate protocol.
By adapting to each layer of protocol, the efficiency and stability of data communication are improved, and the problem of insufficient communication efficiency and stability in the prior art is solved.
Smart Images

Figure CN119316495B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data communication, and in particular to a communication method and system for performing data communication based on multiple communication protocols. Background Art
[0002] Nowadays, the Internet of Things technology is developing rapidly and plays an important role in daily life and social production. Data communication between IoT devices is the basis for realizing various functions of the Internet of Things. Therefore, how to improve communication efficiency and stability is extremely important.
[0003] The TCP / IP model is one of the most commonly used communication protocol models in the Internet of Things. It consists of four layers, namely the application layer, transport layer, network layer and network interface layer. In the existing technology, most of them only determine the protocol of the network interface layer by the communication distance between devices. However, it is ignored that the protocol selection of each layer of the TCP / IP model will have an important impact on the efficiency and stability of data communication, and the protocol selected by the upper layer also has a certain impact on the protocol selection of the network interface layer. Therefore, the existing technology has defects, and how to select a suitable protocol for each layer and select a more suitable network interface layer protocol to improve the efficiency and stability of data communication is an urgent problem to be solved. Summary of the invention
[0004] The present invention is to solve the technical problems existing in the prior art. The present invention provides a communication method for data communication based on multiple communication protocols, comprising the following steps:
[0005] Determine the communication function of the data to be transmitted;
[0006] Determine the application layer communication protocol based on the amount of data to be transmitted and the communication function;
[0007] Select the transport layer communication protocol according to the application layer communication protocol;
[0008] Selecting a network layer protocol according to the device information of the data sender and the data receiver, the communication function and data volume of the data to be transmitted and communicated, and the transport layer communication protocol selected in the above step;
[0009] Select the network interface layer protocol based on the communication distance between the data sender device and the data receiver device and the network layer protocol selected in the previous step.
[0010] Furthermore, the communication functions include but are not limited to storage records, data monitoring, command control and threshold alarms.
[0011] Furthermore, the determining of the communication function of the data to be transmitted and communicated specifically comprises the following steps:
[0012] Obtain the main functions of the data sender's device and the data receiver's device and obtain the parsed content information of the data to be transmitted and communicated;
[0013] According to the main functional role and parsed content information, the communication role of the data to be communicated is determined through the pre-trained first neural network prediction model.
[0014] Furthermore, the obtaining of the parsed content information of the data to be transmitted and communicated specifically comprises: according to the data format of the data to be transmitted and communicated, using a corresponding parsing library to parse and convert it into a string, and then formatting and outputting the parsed content information.
[0015] Furthermore, the selection of the network layer protocol according to the device information of the data sender device and the data receiver device, the communication function and the data volume of the data to be transmitted and communicated specifically includes the following steps:
[0016] Determine the network layer protocols supported by the data sending device and the data receiving device according to the device information of the data sending device and the data receiving device. If both the data sending device and the data receiving device support both the IPv4 protocol and the IPv6 protocol, proceed to the next step.
[0017] According to the communication function of the data to be transmitted and communicated, the real-time requirements of the data to be transmitted and communicated are rated through custom standard rules;
[0018] Based on the real-time requirement rating and data volume, the network layer protocol is determined by a trained second neural network prediction model.
[0019] Furthermore, after determining the network layer protocols supported by the data sending device and the data receiving device according to the device information of the data sending device and the data receiving device, the following determination is also performed:
[0020] If the data sender device supports both IPv4 and IPv6 protocols, and the data receiver device only supports IPv4 or IPv6, the data sender device selects the same network layer protocol as the data receiver device;
[0021] If the data sending device and the data receiving device only support one network layer protocol, and the network layer protocol supported by the data sending device is different from that supported by the data receiving device, tunneling technology is used to encapsulate the data to be transmitted and communicated in a data packet of the network layer protocol supported by the data receiving device, and then the transmission and communication is carried out.
[0022] Furthermore, the network interface layer protocol is selected according to the communication distance between the data sender device and the data receiver device and the network layer protocol selected in the previous step. Specifically, the network interface layer protocol is selected according to the communication distance between the data sender device and the data receiver device and the network layer protocol selected by the data sender device through a trained third neural network prediction model.
[0023] The present invention also provides a communication system for performing data communication based on multiple communication protocols, comprising:
[0024] A communication function analysis module is used to determine the communication function of the data to be transmitted and communicated;
[0025] An application layer communication protocol selection module is used to determine the application layer communication protocol according to the amount of data to be transmitted and the communication function;
[0026] A transport layer communication protocol selection module, used for selecting a transport layer communication protocol according to an application layer communication protocol;
[0027] A network layer protocol selection module is used to select a network layer protocol according to the device information of the data sender device and the data receiver device, the communication function and the data volume of the data to be transmitted and communicated;
[0028] The network interface layer protocol selection module selects the network interface layer protocol according to the communication distance between the data sender device and the data receiver device and the network layer protocol selected in the network layer protocol selection module.
[0029] Furthermore, the selection of the network layer protocol according to the device information of the data sender device and the data receiver device, the communication function and the data volume of the data to be transmitted and communicated specifically includes the following steps:
[0030] Determine the network layer protocols supported by the data sending device and the data receiving device according to the device information of the data sending device and the data receiving device. If both the data sending device and the data receiving device support both the IPv4 protocol and the IPv6 protocol, proceed to the next step.
[0031] According to the communication function of the data to be transmitted and communicated, the real-time requirements of the data to be transmitted and communicated are rated through custom standard rules;
[0032] Based on the real-time requirement rating and data volume, the network layer protocol is determined by a trained second neural network prediction model.
[0033] Furthermore, the network interface layer protocol is selected according to the communication distance between the data sending device and the data receiving device and the network layer protocol selected in the network layer protocol selection module. Specifically, the network interface layer protocol is selected according to the communication distance between the data sending device and the data receiving device and the network layer protocol selected by the data sending device through a trained third neural network prediction model.
[0034] Compared with the prior art, the present invention has the following beneficial effects:
[0035] The present invention determines the application layer communication protocol according to the data volume of the data to be transmitted and the communication function, and then selects the transport layer communication protocol according to the application layer communication protocol. Then, the network layer protocol is selected according to the device information, communication function and data volume of the data sending and receiving devices. Finally, the network interface layer protocol is selected according to the communication distance and the network layer protocol, and the adaptive protocol is effectively selected for each layer. In addition, the influence of the upper layer protocol on the selection of the lower layer protocol is combined to further improve the adaptability of the network interface layer protocol, thereby improving the efficiency and stability of data communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0038] Figure 1 It is a flow chart of a communication method for performing data communication based on multiple communication protocols of the present invention;
[0039] Figure 2 is a flow chart of step S1 in a communication method for performing data communication based on multiple communication protocols of the present invention;
[0040] Figure 3 It is a flow chart of step S4 in a communication method for performing data communication based on multiple communication protocols of the present invention. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0043] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0044] Embodiment 1
[0045] See also Figure 1 As shown, the present invention provides a communication method for data communication based on multiple communication protocols, which specifically includes the following steps:
[0046] S1. Determine the communication function of the data to be transmitted and communicated;
[0047] S2, determining the application layer communication protocol according to the amount of data to be transmitted and the communication function;
[0048] S3, selecting a transport layer communication protocol according to the application layer communication protocol;
[0049] S4. Selecting a network layer protocol according to the device information of the data sender and the data receiver, the communication function and the data volume of the data to be transmitted and communicated;
[0050] S5. Select a network interface layer protocol according to the communication distance between the data sender device and the data receiver device and the network layer protocol selected in the previous step.
[0051] See also Figure 2 As shown, in the above step S1, the communication function of the data to be transmitted and communicated is determined, specifically including the following steps:
[0052] T11. Obtain the main functions of the data sender device and the data receiver device and obtain the parsed content information of the data to be transmitted and communicated;
[0053] T12. According to the main functional role and parsed content information, the communication role of the data to be communicated is determined through the pre-trained first neural network prediction model.
[0054] The main functions of the equipment are explained by taking the IoT devices used in temperature monitoring scenarios as an example. The main function of the temperature sensor is to collect ambient temperature data. The main function of the central controller is to receive various monitoring data, centrally manage and analyze them, and generate control instructions. The main function of the alarm device is to trigger the alarm mechanism and make relevant responses when the temperature exceeds the set threshold. The main function of the air-conditioning equipment is to adjust the temperature of the environment according to the control instructions, etc.
[0055] The parsed content information is the content information of the string formed after the data is parsed and converted. Through the parsed content information, the specific content represented by the data can be determined, such as the temperature data and monitoring time monitored by the temperature sensor, and whether the communication data transmitted by the central controller is an air conditioning control instruction or an alarm instruction, etc.
[0056] In the above step T11, the parsed content information of the data to be transmitted and communicated is obtained. Specifically, according to the data format of the data to be transmitted and communicated, the parsed content information is formatted and output after being parsed and converted into a string using a corresponding parsing library.
[0057] For example, data in JSON format can be directly parsed using the JSON library in the programming language, data in XML format can be processed using the XML parsing library, and so on.
[0058] The communication functions include but are not limited to storage records, data monitoring, command control and threshold alarms, etc.
[0059] For the above step S2, different application layer protocols perform differently when processing data of different sizes. For example, for small data volumes, lightweight protocols (such as MQTT and CoAP) can reduce network overhead and improve transmission efficiency, while for large data volumes, heavy protocols (such as HTTP / HTTPS and WebSocket) can process large amounts of data.
[0060] In addition, different communication functions usually correspond to one or more preferred communication protocols. This is because different communication protocols have different focuses in their design to meet the needs of specific scenarios, such as:
[0061] Storage records: For applications that need to efficiently store and retrieve large amounts of data, HTTP or HTTPS protocols can be used to transmit data to a cloud server for storage. For scenarios where real-time requirements are not high but reliability requirements are high, the MQTT protocol can be considered because it supports features such as disconnection and reconnection.
[0062] Data monitoring, real-time data monitoring usually requires lower latency, so the WebSocket protocol can be used to achieve two-way communication between the client and the server;
[0063] Command control: For command control with strong immediacy, such as remote control of robots or smart home devices, CoAP may be more preferred;
[0064] Threshold alarms, alarm systems that require fast response may choose to use WebSocket or Webhooks to achieve real-time notifications.
[0065] It should be noted that the protocols in the above communication functions are only examples for better understanding of the solutions of the present invention, and the actual selected protocols are set by users or professional staff according to actual conditions and actual equipment.
[0066] The first neural network prediction model is trained using multiple sets of device information of data sender devices and data receiver devices, data analysis content information and corresponding communication function tags as training data.
[0067] For the above step S3, in the TCP / IP model, the selection of the application layer protocol has a certain impact on the selection of the transport layer protocol. For example, if HTTP, HTTPS or MQTT is selected in the application layer communication protocol, the transport layer communication protocol usually uses TCP because reliable transmission is required. If CoAP is selected in the application layer communication protocol, the transport layer communication protocol tends to use UDP because it is more suitable for resource-constrained devices and low-power and real-time demand scenarios.
[0068] See also Figure 3 As shown, for the above step S4, the network layer protocol is selected according to the device information of the data sender device and the data receiver device, the communication function and data volume of the data to be transmitted and communicated, and specifically includes the following steps:
[0069] T41. Determine the network layer protocols supported by the data sending device and the data receiving device according to the device information of the data sending device and the data receiving device. If both the data sending device and the data receiving device support both the IPv4 protocol and the IPv6 protocol, proceed to the next step.
[0070] T42. According to the communication function of the data to be transmitted and communicated, the real-time requirements of the data to be transmitted and communicated are rated through custom standard rules;
[0071] T43. Determine the network layer protocol through the trained second neural network prediction model based on the real-time requirement rating and data volume.
[0072] In step T41, if the data sending device supports both IPv4 and IPv6 protocols, and the data receiving device only supports IPv4 or IPv6 protocols, the data sending device selects the same network layer protocol as the data receiving device;
[0073] If the data sending device and the data receiving device only support one network layer protocol, and the network layer protocol supported by the data sending device is different from that supported by the data receiving device, tunneling technology is used to encapsulate the data to be transmitted and communicated in a data packet of the network layer protocol supported by the data receiving device, and then the transmission and communication is carried out.
[0074] For example, an IPv6 packet can be encapsulated in an IPv4 packet and sent to a device that only supports IPv4, and then decapsulated at the destination.
[0075] The tunnel technology allows a data packet of one network protocol to be encapsulated into a data packet of another network protocol, thereby traversing a network that does not support the native protocol. This belongs to the prior art and will not be described in detail here.
[0076] In step T43, for data with a high real-time requirement rating (i.e., strong real-time requirement), the lightweight feature of IPv4 may be more advantageous. For data with a low real-time requirement rating, the built-in security mechanism of IPv6 may be more advantageous. If the data volume is small, IPv4 may be more efficient because its message header is shorter. If the data volume is large, IPv6 supports larger data packets, and its maximum transmission unit is much higher than IPv4, which means that when transmitting large amounts of data, IPv6 can reduce the number of fragmentation and reassembly times and improve transmission efficiency. At the same time, IPv6 has built-in IPsec, which is a mandatory security protocol that can provide end-to-end data encryption and integrity verification. This is very important for applications that transmit large amounts of sensitive data and can ensure data security and privacy.
[0077] The second neural network prediction model is trained using multiple sets of data with different real-time requirement ratings and data volumes, the network layer protocols used, and corresponding experimental result information (such as efficiency and stability) as training data.
[0078] In the above step S5, the network interface layer protocol can be selected specifically through the trained third neural network prediction model according to the communication distance between the data sender device and the data receiver device and the network layer protocol selected in step S4.
[0079] If the communication distance between the data sender and the data receiver is short, it is short-distance communication. You can choose Wi-Fi (802.11 series), Bluetooth, Zigbee (802.15.4) or Ethernet, which are suitable for short-distance communication.
[0080] If the communication distance between the data sender device and the data receiver device is far, which is long-distance communication, you can choose a network interface layer protocol suitable for long-distance communication, such as cellular network, NB-IoT or LoRaWAN.
[0081] At the same time, if the data sender device selects the IPv4 protocol, since IPv4 only has 32-bit address space, it is necessary to select a network interface layer protocol that can effectively manage these limited address resources. Therefore, you can choose Wi-Fi (802.11 series), Ethernet, Bluetooth or 4G cellular network, etc.
[0082] If the data sender device chooses the IPv6 protocol, in order to make full use of its large address space and other features, it usually selects a network interface layer protocol that supports these features to ensure that the network layer and the physical layer can work together efficiently and seamlessly, such as Wi-Fi 6, NB-IoT, LoRaWAN or 5G cellular networks.
[0083] Therefore, through the trained third neural network prediction model, a comprehensive analysis is performed based on the communication distance and the network layer protocol, and the applicable network interface layer protocol can be selected.
[0084] The third neural network prediction model is trained using multiple sets of different communication distances and network layer protocols, the network interface layer protocols used, and corresponding experimental result information (such as efficiency and stability) as training data.
[0085] Embodiment 2
[0086] The present invention also provides a communication system for data communication based on multiple communication protocols, specifically comprising:
[0087] The communication function analysis module, the application layer communication protocol selection module, the transport layer communication protocol selection module, the network layer protocol selection module and the network interface layer protocol selection module are connected in communication with the central processing unit.
[0088] A communication function analysis module is used to determine the communication function of the data to be transmitted and communicated;
[0089] An application layer communication protocol selection module is used to determine the application layer communication protocol according to the amount of data to be transmitted and the communication function;
[0090] A transport layer communication protocol selection module, used for selecting a transport layer communication protocol according to an application layer communication protocol;
[0091] A network layer protocol selection module is used to select a network layer protocol according to the device information of the data sender device and the data receiver device, the communication function and the data volume of the data to be transmitted and communicated;
[0092] The network interface layer protocol selection module selects the network interface layer protocol according to the communication distance between the data sender device and the data receiver device and the network layer protocol selected in the network layer protocol selection module.
[0093] The step of determining the communication function of the data to be transmitted specifically includes the following steps:
[0094] T11. Obtain the main functions of the data sender device and the data receiver device and obtain the parsed content information of the data to be transmitted and communicated;
[0095] T12. According to the main functional role and parsed content information, the communication role of the data to be communicated is determined through the pre-trained first neural network prediction model.
[0096] The selecting of the network layer protocol according to the device information of the data sender device and the data receiver device, the communication function and the data volume of the data to be transmitted and communicated specifically includes the following steps:
[0097] T41. Determine the network layer protocols supported by the data sending device and the data receiving device according to the device information of the data sending device and the data receiving device. If both the data sending device and the data receiving device support both the IPv4 protocol and the IPv6 protocol, proceed to the next step.
[0098] T42. According to the communication function of the data to be transmitted and communicated, the real-time requirements of the data to be transmitted and communicated are rated through custom standard rules;
[0099] T43. Determine the network layer protocol through the trained second neural network prediction model based on the real-time requirement rating and data volume.
[0100] In step T41, if the data sending device supports both IPv4 and IPv6 protocols, and the data receiving device only supports IPv4 or IPv6 protocols, the data sending device selects the same network layer protocol as the data receiving device;
[0101] If the data sending device and the data receiving device only support one network layer protocol, and the network layer protocol supported by the data sending device is different from that supported by the data receiving device, tunneling technology is used to encapsulate the data to be transmitted and communicated in a data packet of the network layer protocol supported by the data receiving device, and then the transmission and communication is carried out.
[0102] The network interface layer protocol is selected according to the communication distance between the data sending device and the data receiving device and the network layer protocol selected in the network layer protocol selection module. Specifically, the network interface layer protocol can be selected according to the communication distance between the data sending device and the data receiving device and the network layer protocol selected in step S4 through a trained third neural network prediction model.
[0103] Embodiment 3
[0104] The present invention also provides an electronic device, including: a processor, a sending device, an input device, an output device and a memory. The processor can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit, or one or more integrated circuits, and is used to execute relevant programs to implement the technical solution provided in the embodiment of the present application. The memory can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM), and is used to store computer program code. The computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device executes a method as described in any of the above possible implementation methods.
[0105] Embodiment 4
[0106] The present invention also provides a computer-readable storage medium, in which a computer program is stored. The computer program includes program instructions. When the program instructions are executed by a processor of an electronic device, the processor executes a method as described in any possible implementation manner.
[0107] The beneficial effects of the present invention are:
[0108] The present invention determines the application layer communication protocol according to the data volume of the data to be transmitted and the communication function, and then selects the transport layer communication protocol according to the application layer communication protocol. Then, the network layer protocol is selected according to the device information, communication function and data volume of the data sending and receiving devices. Finally, the network interface layer protocol is selected according to the communication distance and the network layer protocol, and the adaptive protocol is effectively selected for each layer. In addition, the influence of the upper layer protocol on the selection of the lower layer protocol is combined to further improve the adaptability of the network interface layer protocol, thereby improving the efficiency and stability of data communication.
[0109] In the description of the specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0110] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (RandomAccess Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0111] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A communication method for data communication based on multiple communication protocols, characterized in that: The following steps are involved: Determine the communication function of the data to be transmitted and communicated, wherein the communication function includes storage record, data monitoring, command control and threshold alarm; Determining the application layer communication protocol according to the amount of data to be transmitted and the communication function, specifically including the following steps: obtaining the main functions of the data sending device and the data receiving device and obtaining the parsed content information of the data to be transmitted and communicated; determining the communication function of the data to be communicated through a pre-trained first neural network prediction model according to the main functions and the parsed content information; Select the transport layer communication protocol according to the application layer communication protocol; The network layer protocol is selected according to the device information of the data sender device and the data receiver device, the communication function and the data volume of the data to be transmitted and communicated, and specifically includes the following steps: determining the network layer protocols supported by the data sender device and the data receiver device according to the device information of the data sender device and the data receiver device; if the data sender device and the data receiver device both support the IPv4 protocol and the IPv6 protocol, then according to the communication function of the data to be transmitted and communicated, the real-time requirement rating of the data to be transmitted and communicated is performed through custom standard rules; according to the real-time requirement rating and the data volume, the network layer protocol is determined through a trained second neural network prediction model; Select the network interface layer protocol based on the communication distance between the data sender device and the data receiver device and the network layer protocol selected in the previous step.
2. The communication method for performing data communication based on multiple communication protocols according to claim 1, characterized in that: The obtaining of the parsed content information of the data to be transmitted and communicated specifically includes: according to the data format of the data to be transmitted and communicated, using a corresponding parsing library to parse and convert the data into a string, and then formatting and outputting the parsed content information.
3. The communication method for data communication based on multiple communication protocols according to claim 1, characterized in that: After determining the network layer protocols supported by the data sending device and the data receiving device according to the device information of the data sending device and the data receiving device, the following determination is further performed: If the data sender device supports both IPv4 and IPv6 protocols, and the data receiver device only supports IPv4 or IPv6, the data sender device selects the same network layer protocol as the data receiver device; If the data sending device and the data receiving device only support one network layer protocol, and the network layer protocol supported by the data sending device is different from that supported by the data receiving device, tunneling technology is used to encapsulate the data to be transmitted and communicated in a data packet of the network layer protocol supported by the data receiving device, and then the transmission and communication is carried out.
4. The communication method for data communication based on multiple communication protocols according to claim 1, characterized in that: The network interface layer protocol is selected according to the communication distance between the data sender device and the data receiver device and the network layer protocol selected in the previous step. Specifically, the network interface layer protocol is selected according to the communication distance between the data sender device and the data receiver device and the network layer protocol selected by the data sender device through a trained third neural network prediction model.
5. A communication system for performing data communication based on multiple communication protocols, used to implement the communication method for performing data communication based on multiple communication protocols as claimed in any one of claims 1 to 4, characterized in that: include: A communication function analysis module, used to determine the communication function of the data to be transmitted and communicated, the communication functions including storage records, data monitoring, command control and threshold alarm; The application layer communication protocol selection module is used to determine the application layer communication protocol according to the data volume and communication function of the data to be transmitted and communicated, and specifically includes the following steps: obtaining the main functions of the data sending device and the data receiving device and obtaining the parsed content information of the data to be transmitted and communicated; according to the main functions and the parsed content information, determining the communication function of the data to be communicated through a pre-trained first neural network prediction model; A transport layer communication protocol selection module, used for selecting a transport layer communication protocol according to an application layer communication protocol; The network layer protocol selection module is used to select the network layer protocol according to the device information of the data sender device and the data receiver device, the communication function and data volume of the data to be transmitted and communicated, and specifically includes the following steps: determining the network layer protocols supported by the data sender device and the data receiver device according to the device information of the data sender device and the data receiver device; if the data sender device and the data receiver device both support the IPv4 protocol and the IPv6 protocol, then according to the communication function of the data to be transmitted and communicated, the real-time requirement rating of the data to be transmitted and communicated is performed through custom standard rules; according to the real-time requirement rating and the data volume, the network layer protocol is determined through a trained second neural network prediction model; The network interface layer protocol selection module selects the network interface layer protocol according to the communication distance between the data sender device and the data receiver device and the network layer protocol selected in the network layer protocol selection module.
6. The communication system for data communication based on multiple communication protocols according to claim 5, characterized in that: The network interface layer protocol is selected according to the communication distance between the data sending device and the data receiving device and the network layer protocol selected in the network layer protocol selection module. Specifically, the network interface layer protocol is selected according to the communication distance between the data sending device and the data receiving device and the network layer protocol selected by the data sending device through a trained third neural network prediction model.
Citation Information
Patent Citations
Method for user to select network layer protocol, household gateway and Internet network
CN103856436A
Equipment communication method and system, electronic equipment and storage medium
CN116614533A
Network data packet analysis method and device and electronic equipment
CN117914974A