Remote terminal management method for Internet of Things platform based on TCP transmission control protocol
By collecting and analyzing information from remote terminal devices in the Internet of Things platform, generating targeted terminal policies, and monitoring and managing transmission protocols, the reliability and stability of TCP transmission control protocols are solved, and the performance of remote terminal devices and protocols is improved.
Patent Information
- Application Number
- CN202311549894.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-21
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2043-11-21
AI Technical Summary
The prior art cannot simultaneously ensure the reliability and stability of the data transmission of TCP transmission control protocol, and at the same time lacks strategies to improve the performance of remote terminal devices and protocols.
By collecting key inherent information and operating status information of remote terminal devices in the Internet of Things platform, basic feature identification and priority processing and analysis are carried out, corresponding terminal policies are generated, and the performance of the TCP transmission control protocol is improved through transmission protocol monitoring, analysis and management.
It realizes functional rechecking and policy generation of remote terminal devices, improves the data transmission reliability and stability of TCP transmission control protocol, and thus improves the performance of the device side.
Smart Images

Figure CN117527578B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of Internet of Things terminal management, and in particular relates to an Internet of Things platform remote terminal management method implemented based on a TCP transmission control protocol. Background Art
[0002] With the continuous development of Internet of Things technology, the demand for remote terminal management systems is also increasing. In the existing technology, some remote terminal management systems mainly monitor and manage terminal devices through network connections, but the communication protocol is not stable and secure enough and is vulnerable to network attacks; the monitoring and management capabilities of terminal devices are limited, and it is impossible to meet diversified functional requirements. The connection with the Internet of Things platform is not close enough, and it is impossible to fully utilize the advantages of the Internet of Things.
[0003] The prior art (CN110071826B) discloses an IoT terminal device and a method for establishing a TCP connection with a remote management platform. The method is based on establishing a TCP connection with the terminal device as a client and the remote management platform as a server to complete the remote configuration of the IoT terminal device. According to the characteristics of the IoT system for the configuration management of the terminal device as a low-frequency event, the configuration port of the terminal device is usually kept closed, and the external remote connection is rejected. Only when the remote connection preset by the terminal device with the server is started, the client-server mode is adopted, and the terminal device is used as a client and the remote management platform is used as a server to establish a TCP connection to complete the remote configuration of the terminal device, that is, the configuration port of the terminal device initiates access to the configuration port of the management platform and establishes a connection. It can increase the difficulty for attackers to invade the configuration management module of the IoT terminal device and ensure the security of the connected TCP connection. Although the prior art can guarantee the security of the TCP connection, it cannot simultaneously guarantee the reliability and stability of the data transmitted by the TCP transmission control protocol, and provide performance improvement strategies for remote terminal devices and protocols. Summary of the invention
[0004] The purpose of the present invention is to provide a remote terminal management method for an Internet of Things platform based on the TCP transmission control protocol, which is used to solve the technical problem that the reliability and stability of data transmitted by the TCP transmission control protocol cannot be guaranteed in the prior art, and at the same time, a performance improvement strategy is provided for remote terminal devices and protocols.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] The present invention provides a remote terminal management method for an Internet of Things platform based on a TCP transmission control protocol, comprising the following steps:
[0007] S100, terminal information collection: collecting key inherent information and operation status information of remote terminal devices in the Internet of Things platform;
[0008] S200, terminal information preprocessing: performing basic feature recognition on key inherent information of remote terminal devices in the IoT platform, and dividing remote terminal devices into different groups; then performing priority processing and analysis on the operation status information of remote terminal devices in different groups, and generating a status recheck signal, a status waiting signal, or a status normal signal;
[0009] S300, terminal function recheck: perform function recheck processing on the remote terminal device corresponding to the status recheck signal and the status waiting signal, and generate a function enhancement signal, a function improvement signal or a recheck success signal;
[0010] S400, terminal strategy generation: generating a software and hardware expansion strategy for a remote terminal device corresponding to a function enhancement signal, and generating a memory bandwidth optimization strategy for a remote terminal device corresponding to a function improvement signal;
[0011] S500, transmission protocol monitoring: collecting the protocol performance information and protocol transmission information of the data sent to the TCP protocol by the remote terminal device corresponding to the normal state signal and the recheck success signal through the interface;
[0012] S600, transmission protocol analysis: performing comprehensive protocol analysis on the protocol performance information and protocol transmission information of the data sent to the TCP protocol by the remote terminal device corresponding to the normal status signal and the recheck success signal through the interface to generate a protocol enhancement signal, a protocol normal signal or a protocol weakening signal;
[0013] S700, transmission protocol management: after receiving a protocol enhancement signal, generate a processing strategy for improving the mechanism algorithm; after receiving a normal protocol signal, do not do anything; after receiving a protocol weakening signal, generate a processing strategy for selecting a transmission protocol.
[0014] Preferably, the key inherent information of the remote terminal device includes the device type and the interface type, and the operation status information of the remote terminal device includes the memory usage rate, the bandwidth utilization rate and the real-time connection status;
[0015] The process of basic feature recognition is as follows: identify the device type of the remote terminal device in the Internet of Things platform, and divide the remote terminal devices into different device type groups; identify the interface type of the remote terminal devices in different device type groups, and divide the remote terminal devices into different interface type groups.
[0016] Preferably, the process of prioritizing analysis includes the following steps:
[0017] S1. Mark the memory usage and broadband usage of remote terminal devices under different interface type groups as ZNxy and ZKxy, respectively, where x=1, 2, 3...n, n is a positive integer corresponding to different device type groups, and y=1, 2, 3...p, p is a positive integer corresponding to different interface type groups; according to the calculation formula Obtain the priority fault factor ZZxy of the remote terminal equipment under different interface type groups; wherein α is the priority compensation factor and α=1.37, w1 and w2 are both preset weight coefficients and 1.12<w1<w2<1.83;
[0018] S2. Compare the priority fault factors of remote terminal devices under different interface type groups with the priority fault factor threshold. When the priority fault factor is greater than or equal to the priority fault factor threshold, generate a status recheck signal for each remote terminal device in the real-time connection state and send it to the terminal function recheck module; when the priority fault factor is less than the priority fault factor threshold, generate a status recheck signal for the remote terminal devices in the disconnected state and the connection timeout state and send it to the terminal function recheck module, generate a status waiting signal for the remote terminal device in the connecting state and send it to the terminal function recheck module, and generate a status normal signal for the remote terminal device in the successfully connected state and send it to the transmission protocol monitoring module.
[0019] Preferably, the specific process of functional review is as follows:
[0020] S11, repeatedly collect the operation status information of the remote terminal device corresponding to the status recheck signal and the status waiting signal after a unit time, and calculate the priority fault factor after a unit time; the unit time mentioned here and later is preferably 30 minutes or 1 hour;
[0021] S12. When the priority fault factor is greater than or equal to the priority fault factor threshold, a function enhancement signal is generated and sent to the terminal policy generation module; when the priority fault factor is less than the priority fault factor threshold and the real-time connection status is disconnected, connecting or timed out, a function improvement signal is generated and sent to the terminal policy generation module; when the priority fault factor is less than the priority fault factor threshold and the real-time connection status is successfully connected, a recheck success signal is generated and sent to the transmission protocol monitoring module.
[0022] Preferably, the software and hardware expansion strategy includes updating the operating system, updating the application version, optimizing the application code, replacing better hardware devices and adopting hardware acceleration; the memory bandwidth optimization strategy includes closing unnecessary programs or processes, increasing physical memory capacity, adjusting network bandwidth allocation and increasing broadband capacity.
[0023] Preferably, the protocol performance information includes the frequency of dynamic adjustment of the data window size and the number of retransmissions, and the protocol transmission information includes the packet loss rate and average round-trip time of the data.
[0024] Preferably, the process of comprehensive protocol analysis includes the following steps:
[0025] S21, extract the protocol performance information and protocol transmission information of the data sent by the remote terminal device to the TCP protocol through the interface, mark the window size dynamic adjustment frequency and the number of retransmissions per unit time as TAi and TBi, respectively, mark the packet loss rate and the average round-trip time per unit time as TCi and TDi, respectively, i = 1, 2, 3...a, a is a positive integer and corresponds to different remote terminal devices; according to the calculation formula The protocol risk factors TFi of different remote terminal devices are obtained; wherein β is a risk compensation factor and β=1.25, c1, c2, c3, c4 are all preset weight coefficients and 1.13<c2<c1<c4<c3<2.37;
[0026] S22. Compare the protocol risk factors of different remote terminal devices with the preset range of protocol risk factors. When the protocol risk factor is greater than the maximum value of the preset range of protocol risk factors, generate a protocol enhancement signal; when the protocol risk factor is between the preset range of protocol risk factors, generate a protocol normal signal; when the protocol risk factor is less than the minimum value of the preset range of protocol risk factors, generate a protocol weakening signal.
[0027] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0028] 1. The present invention collects key inherent information and operating status information of remote terminal devices in a specific Internet of Things platform, and divides the remote terminal devices into different groups after basic feature recognition, so as to facilitate centralized transmission performance-related analysis and feedback for remote terminal devices with the same functions, application fields, and interface types; the operation of function recheck processing can eliminate the situation of short-term abnormal operation status, ensure the reliability and accuracy of the generated terminal strategy, and thus carry out targeted software and hardware expansion and memory bandwidth optimization processing for remote terminal devices of different groups, thereby improving the reliability and stability of TCP transmission control protocol data transmission from the device side.
[0029] 2. The priority processing and analysis process of the present invention first uses a combination of marking and formula calculation to obtain a priority fault factor that reflects the demand for expanded functions for the operating status information, and then compares the priority fault factor threshold and combines it with the real-time connection status to determine multiple status-related signals. Combined with subsequent function review operations, it can more accurately reflect the probability of equipment operation failures and the needs for performance improvement and function expansion.
[0030] 3. The monitoring, analysis and management process of the transmission protocol of the present invention targets the protocol performance information and protocol transmission information of the data sent by the remote terminal device to the TCP protocol, and obtains a variety of protocol-related signals reflecting the stability and reliability of data transmission by the remote terminal device through the TCP protocol through a comprehensive protocol analysis method combining marking, formula calculation, and preset range comparison, thereby providing a reference basis for subsequent enhancement or weakening of protocol performance; in the management process, a strategy for improving the mechanism algorithm is provided for the protocol enhancement signal, and a strategy for selecting the transmission protocol is provided for the protocol weakening signal, thereby providing a solution for improving the performance and flexibility of the transmission control protocol. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] 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, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0032] Figure 1 The flowchart of the remote terminal management method of the Internet of Things platform implemented based on the TCP transmission control protocol of the present invention is shown;
[0033] Figure 2 The module diagram of the remote terminal management system of the Internet of Things platform implemented based on the TCP transmission control protocol of the present invention is shown. DETAILED DESCRIPTION
[0034] 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.
[0035] In the prior art, the TCP transmission control protocol is a connection-oriented protocol used to reliably transmit data in the network. TCP is responsible for dividing the data into small data packets and transmitting them to the target device through the network. It also provides mechanisms such as packet sorting, error detection and retransmission to ensure the reliability and integrity of the data. The terminal device transmits data to the TCP protocol through the interface. The TCP protocol is responsible for dividing, transmitting and reorganizing the data and finally passing the data to the target device. The mutual cooperation between the interface and the transmission control protocol enables the terminal device to perform reliable data transmission in the network.
[0036] Among them, the process of TCP segmentation, transmission and reorganization of data is as follows:
[0037] Data segmentation: The sender segments the data to be transmitted according to the MTU (maximum transmission unit) size; MTU is the maximum transmission data length of the network link, usually 1500 bytes;
[0038] Data transmission: The sender encapsulates the segmented data into TCP segments and transmits them through the IP protocol. During the transmission process, TCP will dynamically adjust the window size for sending data according to the network conditions and use the sliding window mechanism to achieve reliable data transmission.
[0039] Data reassembly: After receiving the TCP segments, the receiver sorts the segments according to the sequence number in the TCP header, and reassembles the ordered segments into a complete data stream in sequence; if there are lost segments, TCP requires the sender to resend the lost data through the retransmission mechanism.
[0040] Example 1
[0041] See also Figure 2 As shown, this embodiment provides an Internet of Things platform remote terminal management system based on the TCP transmission control protocol, including a terminal information collection module, a terminal information preprocessing module, a terminal function review module and a terminal policy generation module.
[0042] The terminal information collection module is used to collect the key inherent information and operating status information of the remote terminal devices in the Internet of Things platform and send it to the terminal information preprocessing module; the key inherent information of the remote terminal devices includes the device type and interface type, and the operating status information of the remote terminal devices includes memory usage, broadband utilization and real-time connection status.
[0043] Specifically, the above device types are divided according to the functions and application fields of remote terminal devices in the IoT platform, including sensor devices, actuator devices, monitoring devices, positioning devices, embedded devices and industrial devices. For example, common sensor devices include temperature sensors, humidity sensors and gas sensors; common actuator devices include smart sockets and smart switches; common monitoring devices include video surveillance cameras and security sensors; common embedded devices include smart watches and smart wearable devices; common industrial devices include sensors, actuators and PLC controllers in factories.
[0044] Interface types include USB, HDMI, Ethernet interfaces under hardware interfaces, and interfaces called by programs under software interfaces. Interface refers to the physical interface that connects the terminal device to the network or other devices, and communicates with the network through the interface and sends and receives data. TCP is a connection-oriented protocol. The terminal device transmits data to the TCP protocol through the interface. The TCP protocol divides, transmits and reassembles the data and finally passes the data to the target device. The interface and the transmission control protocol cooperate with each other, so that the terminal device can perform reliable data transmission in the network.
[0045] The memory usage rate indicates the percentage of memory currently used by the remote terminal device. A higher memory usage rate indicates that the terminal device is executing an application or process that occupies a large amount of memory.
[0046] The bandwidth utilization rate indicates the percentage of network bandwidth used by the remote terminal device. A higher bandwidth utilization rate indicates that the terminal device is performing a large amount of data transmission.
[0047] The real-time connection status indicates the current connection status of the remote terminal device, which has the following conditions:
[0048] A successful connection indicates that the device has successfully established a connection with another device or network;
[0049] Disconnection means that the device is disconnected from other devices or networks;
[0050] Connecting means the device is in the process of connecting and has not yet established a completely stable connection;
[0051] Connection timeout means that the device cannot establish a connection within the specified time and the connection request fails.
[0052] The terminal information preprocessing module is used to perform basic feature recognition on the key inherent information of the remote terminal devices in the Internet of Things platform, and divide the remote terminal devices into different groups; then the operating status information of the remote terminal devices in different groups is prioritized for processing and analysis, and a status review signal, a status waiting signal or a normal status signal is generated.
[0053] The process of basic feature recognition is as follows: identify the device type of the remote terminal device in the Internet of Things platform, and divide the remote terminal devices into different device type groups; identify the interface type of the remote terminal devices in different device type groups, and divide the remote terminal devices into different interface type groups.
[0054] The process of prioritizing analysis includes the following steps:
[0055] S1. Mark the memory usage and broadband usage of remote terminal devices under different interface type groups as ZNxy and ZKxy, respectively, where x=1, 2, 3...n, n is a positive integer corresponding to different device type groups, and y=1, 2, 3...p, p is a positive integer corresponding to different interface type groups; according to the calculation formula The priority fault factor ZZxy of the remote terminal equipment under different interface type groups is obtained; wherein α is the priority compensation factor and α=1.37, w1 and w2 are both preset weight coefficients and 1.12<w1<w2<1.83; the larger the apparent value of the priority fault factor, the larger the execution process volume and data transmission volume of the remote terminal equipment under the interface type group, the greater the probability of operation fault, and the higher the demand for improving performance and expanding functions;
[0056] S2. Compare the priority fault factors of remote terminal devices under different interface type groups with the priority fault factor threshold. When the priority fault factor is greater than or equal to the priority fault factor threshold, generate a status recheck signal for each remote terminal device in the real-time connection state and send it to the terminal function recheck module; when the priority fault factor is less than the priority fault factor threshold, generate a status recheck signal for the remote terminal devices in the disconnected state and the connection timeout state and send it to the terminal function recheck module, generate a status waiting signal for the remote terminal device in the connecting state and send it to the terminal function recheck module, and generate a status normal signal for the remote terminal device in the successfully connected state and send it to the transmission protocol monitoring module.
[0057] The priority processing analysis process first uses a combination of marking and formula calculation to obtain a priority fault factor that reflects the need for expanded functions for the operating status information. Then, the priority fault factor threshold is compared and combined with the real-time connection status to determine multiple status-related signals. Combined with subsequent functional re-inspection operations, it can more accurately reflect the probability of equipment operating failures and the need for performance improvement and functional expansion.
[0058] The terminal function recheck module is used to perform function recheck processing on the remote terminal equipment corresponding to the status recheck signal and the status waiting signal, and generate a function enhancement signal, a function improvement signal or a recheck success signal.
[0059] The specific process of functional recheck is as follows:
[0060] S11, repeatedly collect the operation status information of the remote terminal device corresponding to the status recheck signal and the status waiting signal after a unit time, and calculate the priority fault factor after a unit time; the unit time mentioned here and later is preferably 30 minutes or 1 hour;
[0061] S12. When the priority fault factor is greater than or equal to the priority fault factor threshold, a function enhancement signal is generated and sent to the terminal policy generation module; when the priority fault factor is less than the priority fault factor threshold and the real-time connection status is disconnected, connecting or timed out, a function improvement signal is generated and sent to the terminal policy generation module; when the priority fault factor is less than the priority fault factor threshold and the real-time connection status is successfully connected, a recheck success signal is generated and sent to the transmission protocol monitoring module.
[0062] The terminal policy generation module is used to generate software and hardware expansion policies for remote terminal devices corresponding to function enhancement signals, and to generate memory bandwidth optimization policies for remote terminal devices corresponding to function improvement signals. Software and hardware expansion policies include updating the operating system, updating the application version, optimizing the application code, replacing better hardware devices, and using hardware acceleration. Memory bandwidth optimization policies include closing unnecessary programs or processes, increasing physical memory capacity, adjusting network bandwidth allocation, and increasing broadband capacity.
[0063] Updating the operating system and application versions can achieve better performance and resource management; optimizing application code can reduce memory consumption; replacing better hardware devices, such as faster processors and larger memory capacity; using hardware acceleration such as GPU acceleration and network acceleration to improve system performance; closing unnecessary programs or processes can free up memory resources; increasing physical memory capacity can improve the overall memory processing capacity of the system; adjusting network bandwidth allocation can reserve sufficient broadband resources for important applications or services in the device; increasing broadband capacity can improve the speed and responsiveness of network transmission.
[0064] The Internet of Things platform remote terminal management system of this embodiment collects key inherent information and operating status information of remote terminal devices in a specific Internet of Things platform, and divides the remote terminal devices into different groups after basic feature recognition, so as to facilitate centralized transmission performance-related analysis and feedback for remote terminal devices with the same functions, application fields, and interface types; the function recheck processing operation can eliminate short-term abnormalities in the operating status and ensure the reliability and accuracy of the generated terminal strategy, thereby performing targeted software and hardware expansion and memory bandwidth optimization processing on remote terminal devices of different groups, thereby improving the reliability and stability of TCP transmission control protocol data transmission from the device side.
[0065] Example 2
[0066] See also Figure 2 As shown, this embodiment is an Internet of Things platform remote terminal management system implemented based on the TCP transmission control protocol. On the basis of Example 1, it also includes a transmission protocol monitoring module, a transmission protocol analysis module and a transmission protocol management module.
[0067] The transmission protocol monitoring module is used to collect the protocol performance information and protocol transmission information of the data sent to the TCP protocol through the interface by the remote terminal device corresponding to the normal status signal and the recheck success signal, and send it to the transmission protocol analysis module; the protocol performance information includes the dynamic adjustment frequency of the data window size and the number of retransmissions, and the protocol transmission information includes the data packet loss rate and the average round-trip time.
[0068] The frequency of dynamic adjustment of window size is based on the sliding window mechanism. The sliding window mechanism means that when the sender transmits data, it divides the data into multiple data segments according to a certain window size and sends them in sequence. The sender dynamically adjusts the window size according to the confirmation information sent by the receiver to perform continuous data transmission. Therefore, the higher the frequency of dynamic adjustment of window size, the higher the efficiency of data transmission and the higher the continuity.
[0069] During the data transmission process, the TCP transmission control protocol will use a checksum algorithm to verify the data to ensure data integrity. If data transmission fails, a retransmission mechanism will be initiated to achieve reliable data transmission and improve communication efficiency and reliability. Therefore, the higher the number of retransmissions, the higher the efficiency and reliability of data transmission.
[0070] The packet loss rate refers to the proportion of data packets lost during data transmission to the total amount of data sent. A lower packet loss rate can ensure the reliability of data transmission.
[0071] Round-trip time (RTT) refers to the time from when the sender sends data to when the receiver receives the confirmation message. A lower average round-trip time can reduce the delay in data transmission.
[0072] The transmission protocol analysis module is used to perform comprehensive protocol analysis on the protocol performance information and protocol transmission information of the data sent to the TCP protocol through the interface by the remote terminal device corresponding to the normal status signal and the recheck success signal, generate a protocol enhancement signal, a protocol normal signal or a protocol weakening signal, and send the above signals to the transmission protocol management module.
[0073] The process of comprehensive protocol analysis includes the following steps:
[0074] S21, extract the protocol performance information and protocol transmission information of the data sent by the remote terminal device to the TCP protocol through the interface, mark the window size dynamic adjustment frequency and the number of retransmissions per unit time as TAi and TBi, respectively, mark the packet loss rate and the average round-trip time per unit time as TCi and TDi, respectively, i = 1, 2, 3...a, a is a positive integer and corresponds to different remote terminal devices; according to the calculation formula The protocol risk factors TFi of different remote terminal devices are obtained; wherein β is the risk compensation factor and β=1.25, c1, c2, c3, c4 are all preset weight coefficients and 1.13<c2<c1<c4<c3<2.37; the larger the apparent value of the protocol risk factor, the worse the stability and reliability of the remote terminal device in transmitting data through the TCP protocol;
[0075] S22. Compare the protocol risk factors of different remote terminal devices with the preset range of protocol risk factors. When the protocol risk factor is greater than the maximum value of the preset range of protocol risk factors, generate a protocol enhancement signal; when the protocol risk factor is between the preset range of protocol risk factors, generate a protocol normal signal; when the protocol risk factor is less than the minimum value of the preset range of protocol risk factors, generate a protocol weakening signal.
[0076] The transmission protocol management module is used to generate a processing strategy for improving the mechanism algorithm after receiving a protocol enhancement signal; to do nothing after receiving a normal protocol signal; and to generate a processing strategy for selecting a transmission protocol after receiving a protocol weakening signal.
[0077] Strategies for improving mechanism algorithms include using reliable data transmission mechanisms and optimizing network congestion control algorithms. Specifically, the confirmation mechanism and retransmission mechanism of the TCP protocol are used to ensure reliable data transmission; network congestion control algorithms are used, such as congestion window control and slow start. By reasonably setting the congestion window size and adjusting the parameters of the congestion window increase rate, better adapt to the network environment and reduce data loss and delay.
[0078] The processing strategy for selectable transmission protocols is to consider using other reliable transmission protocols, such as UDP protocol combined with a customized reliable transmission mechanism at the application layer, under the premise that the TCP protocol has met the stability and reliability of data transmission. In this way, the appropriate transmission protocol can be selected to transmit data according to specific needs and scenarios.
[0079] The monitoring, analysis and management process of the transmission protocol targets the protocol performance information and protocol transmission information of the data sent by the remote terminal device to the TCP protocol. Through a comprehensive protocol analysis method combining marking, formula calculation and preset range comparison, a variety of protocol-related signals reflecting the stability and reliability of data transmission by the remote terminal device through the TCP protocol are obtained, providing a reference basis for the subsequent enhancement or weakening of the protocol performance. In the management process, strategies for improving the mechanism algorithm are provided for the protocol enhancement signals, and strategies for selecting the transmission protocol are provided for the protocol weakening signals, providing solutions for improving the performance and flexibility of the transmission control protocol.
[0080] Example 3
[0081] See also Figure 1As shown, this embodiment provides a remote terminal management method for an Internet of Things platform based on the TCP transmission control protocol, comprising the following steps:
[0082] S100, terminal information collection: collecting key inherent information and operation status information of remote terminal devices in the IoT platform; the key inherent information of remote terminal devices includes device type and interface type, and the operation status information of remote terminal devices includes memory usage, broadband utilization and real-time connection status;
[0083] S200, terminal information preprocessing: performing basic feature recognition on key inherent information of remote terminal devices in the IoT platform, and dividing remote terminal devices into different groups; then performing priority processing and analysis on the operation status information of remote terminal devices in different groups, and generating a status recheck signal, a status waiting signal, or a status normal signal;
[0084] S300, terminal function recheck: perform function recheck processing on the remote terminal device corresponding to the status recheck signal and the status waiting signal, and generate a function enhancement signal, a function improvement signal or a recheck success signal;
[0085] S400, terminal strategy generation: generating a software and hardware expansion strategy for a remote terminal device corresponding to a function enhancement signal, and generating a memory bandwidth optimization strategy for a remote terminal device corresponding to a function improvement signal;
[0086] S500, transmission protocol monitoring: collecting the protocol performance information and protocol transmission information of the data sent to the TCP protocol by the remote terminal device corresponding to the normal state signal and the recheck success signal through the interface; the protocol performance information includes the frequency of dynamic adjustment of the window size of the data and the number of retransmissions, and the protocol transmission information includes the packet loss rate and the average round-trip time of the data;
[0087] S600, transmission protocol analysis: performing comprehensive protocol analysis on the protocol performance information and protocol transmission information of the data sent to the TCP protocol by the remote terminal device corresponding to the normal status signal and the recheck success signal through the interface to generate a protocol enhancement signal, a protocol normal signal or a protocol weakening signal;
[0088] S700, transmission protocol management: after receiving a protocol enhancement signal, generate a processing strategy for improving the mechanism algorithm; after receiving a normal protocol signal, do not do anything; after receiving a protocol weakening signal, generate a processing strategy for selecting a transmission protocol.
[0089] The preset weight coefficients mentioned in this application are used to balance the weights of each data in the formula calculation, so as to promote the accuracy of the calculation results; the size of the coefficient is to quantify each parameter to obtain a specific value, which is convenient for subsequent comparison. The size of the coefficient depends on the amount of sample data and the preliminary setting of the corresponding weight factor coefficient for each group of sample data by technical personnel in this field; as long as it does not affect the proportional relationship between the parameter and the quantized value. The formulas involved are all obtained by collecting a large amount of data, removing dimensions, and performing software simulation, and a formula close to the true value is selected. The coefficients in the formula are set by technical personnel in this field according to actual conditions. The thresholds and preset range values mentioned in this application are obtained and selected by software communication technicians after collecting a large amount of data for software simulation.
[0090] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
[0091] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only specific implementation methods. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A remote terminal management method for an Internet of Things platform based on the TCP transmission control protocol, characterized in that: The following steps are involved: S100, terminal information collection: collecting key inherent information and operation status information of remote terminal devices in the Internet of Things platform; S200, terminal information preprocessing: performing basic feature recognition on key inherent information of remote terminal devices in the IoT platform, and dividing remote terminal devices into different groups; then performing priority processing and analysis on the operation status information of remote terminal devices in different groups, and generating a status recheck signal, a status waiting signal, or a status normal signal; S300, terminal function recheck: perform function recheck processing on the remote terminal device corresponding to the status recheck signal and the status waiting signal, and generate a function enhancement signal, a function improvement signal or a recheck success signal; S400, terminal strategy generation: generating a software and hardware expansion strategy for a remote terminal device corresponding to a function enhancement signal, and generating a memory bandwidth optimization strategy for a remote terminal device corresponding to a function improvement signal; S500, transmission protocol monitoring: collecting the protocol performance information and protocol transmission information of the data sent to the TCP protocol by the remote terminal device corresponding to the normal state signal and the recheck success signal through the interface; S600, transmission protocol analysis: performing comprehensive protocol analysis on the protocol performance information and protocol transmission information of the data sent to the TCP protocol by the remote terminal device corresponding to the normal status signal and the recheck success signal through the interface to generate a protocol enhancement signal, a protocol normal signal or a protocol weakening signal; S700, transmission protocol management: after receiving the protocol enhancement signal, generating a processing strategy for improving the mechanism algorithm; After receiving a normal protocol signal, no processing is performed; after receiving a weakened protocol signal, a processing strategy for selecting a transmission protocol is generated.
2. The method for remote terminal management of an Internet of Things platform based on TCP transmission control protocol according to claim 1 is characterized in that: The key inherent information of the remote terminal device includes the device type and the interface type, and the operation status information of the remote terminal device includes the memory usage rate, the bandwidth utilization rate and the real-time connection status; The process of basic feature recognition is as follows: identify the device type of the remote terminal device in the Internet of Things platform, and divide the remote terminal devices into different device type groups; identify the interface type of the remote terminal devices in different device type groups, and divide the remote terminal devices into different interface type groups.
3. The method for remote terminal management of an Internet of Things platform based on TCP transmission control protocol according to claim 2 is characterized in that: The process of prioritizing analysis includes the following steps: S1. Mark the memory usage and broadband usage of remote terminal devices under different interface type groups as ZNxy and ZKxy, respectively, where x=1, 2, 3...n, n is a positive integer corresponding to different device type groups, and y=1, 2, 3...p, p is a positive integer corresponding to different interface type groups; according to the calculation formula The priority fault factor ZZxy of the remote terminal equipment under different interface type groups is obtained; wherein α is the priority compensation factor and α=1.37, w1 and w2 are both preset weight coefficients and 1.12<w1<w2<1.83; S2. Compare the priority fault factors of remote terminal devices under different interface type groups with the priority fault factor threshold. When the priority fault factor is greater than or equal to the priority fault factor threshold, generate a status recheck signal for each remote terminal device in the real-time connection state and send it to the terminal function recheck module; when the priority fault factor is less than the priority fault factor threshold, generate a status recheck signal for the remote terminal devices in the disconnected state and the connection timeout state and send it to the terminal function recheck module, generate a status waiting signal for the remote terminal device in the connecting state and send it to the terminal function recheck module, and generate a status normal signal for the remote terminal device in the successfully connected state and send it to the transmission protocol monitoring module.
4. The method for managing remote terminals of an Internet of Things platform based on TCP transmission control protocol according to claim 1, characterized in that: The specific process of functional recheck is as follows: S11, repeatedly collecting the operation status information of the remote terminal equipment corresponding to the status recheck signal and the status waiting signal after a unit time, and calculating the priority fault factor after a unit time; S12. When the priority fault factor is greater than or equal to the priority fault factor threshold, a function enhancement signal is generated and sent to the terminal policy generation module; when the priority fault factor is less than the priority fault factor threshold and the real-time connection status is disconnected, connecting or timed out, a function improvement signal is generated and sent to the terminal policy generation module; when the priority fault factor is less than the priority fault factor threshold and the real-time connection status is successfully connected, a recheck success signal is generated and sent to the transmission protocol monitoring module.
5. The method for remote terminal management of an Internet of Things platform based on TCP transmission control protocol according to claim 1 is characterized in that: The software and hardware expansion strategies include updating the operating system, updating the application version, optimizing the application code, replacing better hardware devices and adopting hardware acceleration; the memory bandwidth optimization strategies include closing unnecessary programs or processes, increasing physical memory capacity, adjusting network bandwidth allocation and increasing broadband capacity.
6. The method for remote terminal management of an Internet of Things platform based on TCP transmission control protocol according to claim 1 is characterized in that: The protocol performance information includes the frequency of dynamic adjustment of the data window size and the number of retransmissions, and the protocol transmission information includes the packet loss rate and the average round-trip time of the data.
7. The method for remote terminal management of an Internet of Things platform based on TCP transmission control protocol according to claim 1 is characterized in that: The process of comprehensive protocol analysis includes the following steps: S21, extract the protocol performance information and protocol transmission information of the data sent by the remote terminal device to the TCP protocol through the interface, mark the window size dynamic adjustment frequency and the number of retransmissions per unit time as TAi and TBi, respectively, mark the packet loss rate and the average round-trip time per unit time as TCi and TDi, respectively, i=1, 2, 3...a, a is a positive integer and corresponds to different remote terminal devices; according to the calculation formula The protocol risk factors TFi of different remote terminal devices are obtained; wherein β is the risk compensation factor and β=1.25, c1, c2, c3, c4 are all preset weight coefficients and 1.13<c2<c1<c4<c3<2.37; S22. Compare the protocol risk factors of different remote terminal devices with the preset range of protocol risk factors. When the protocol risk factor is greater than the maximum value of the preset range of protocol risk factors, generate a protocol enhancement signal; when the protocol risk factor is between the preset range of protocol risk factors, generate a protocol normal signal; when the protocol risk factor is less than the minimum value of the preset range of protocol risk factors, generate a protocol weakening signal.
Citation Information
Patent Citations
IoT terminal devices and methods for establishing TCP connections with remote management platforms
CN110071826B
Internet of things real-time data oriented automatic analysis method
CN107733694A
Edge computing task processing and scheduling method and device in industrial Internet environment
CN111212106A