Iot transmission method and device, computer device and readable storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN JOOAN TECH CO LTD
- Filing Date
- 2026-07-09
- Publication Date
- 2026-08-07
AI Technical Summary
传统MQTT基于TCP(Transmission Control Protocol,传输控制协议)传输,在高延迟、高丢包率的弱网环境下,TCP传输队列的队头阻塞情况、慢启动机制会严重影响传输效率
[0021]上述物联网传输方法、装置、计算机设备以及计算机可读存储介质,响应于通道连接请求,基于通道优先级配置信息向主传输通道发起连接请求,所述通道优先级配置信息中包括基于端口穿透特征确定的多个传输通道的连接顺序,所述端口穿透特征表征多个传输通道的传输协议类型在目标网络环境的连接性能;在所述主传输通道未成功连接时,执行传输通道降级操作并根据所述通道优先级配置信息设置的连接顺序向辅传输通道发起连接请求;响应于所述辅传输通道连接成功的结果,在所述辅传输通道上发送信令信息,基于通道优先级配置信息设置多个传输通道的连接顺序,在生成通道连接请求时,首先向主传输通道发起连接请求,在主传输通道未成功连接时,执行传输通道降级操作并基于多个传输通道的连接顺序向辅传输通道发起连接请求,其中主传输通道和辅传输通道具有不同的端口穿透特性,在主传输通道未成功连接时,能够向辅传输通道发起连接请求,在辅传输通道连接成功时,在辅传输通道上发送信令信息。此时,向主传输通道发起连接为了保证连接性能,在主传输通道没有连接成功时,则根据通道优先级配置信息定义的多个传输通道的连接顺序向其他传输通道发起连接请求,保证连接效率,通过本申请的传输通道选择方式能够针对性地适应不同网络环境的连接质量和连接特性,确保连接性能和连接效率的平衡。
Smart Images

Figure CN122534026A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet of Things (IoT) communication technology, and in particular to an IoT transmission method, apparatus, computer equipment, and readable storage medium. Background Technology
[0002] In real-time communication fields such as the Internet of Things (IoT) and the Internet of Vehicles (IoV), MQTT (Message Queuing Telemetry Transport) is gradually becoming the mainstream signaling transmission mode. Traditional MQTT is based on TCP (Transmission Control Protocol), and in weak network environments with high latency and high packet loss rates, the head-of-queue congestion and slow start mechanism of TCP transmission queues can severely affect transmission efficiency. MQTT transmission schemes based on the QUIC (Quick UDP Internet Connections) protocol, however, feature 0-RTT (Zero Round Trip Time) connections, connection migration, and multi-stream multiplexing, significantly improving transmission performance in weak network environments. However, because it inherently uses the UDP (User Datagram Protocol) transmission protocol, UDP traffic can be rate-limited, blocked, or even completely discarded in certain network environments.
[0003] To address these issues, existing solutions employ multipath or hybrid transmission schemes, maintaining multiple transmission channels simultaneously and dynamically switching based on network quality. However, when selecting transmission channels, they fail to specifically adapt to the connection quality and characteristics of different network environments, making it difficult to achieve a balance between connection performance and connectivity efficiency. Summary of the Invention
[0004] Therefore, it is necessary to provide an IoT transmission method, apparatus, computer device, and readable storage medium that can balance the connectivity performance and connectivity efficiency of IoT devices to address the aforementioned technical problems.
[0005] In a first aspect, this application provides an Internet of Things (IoT) transmission method, including:
[0006] In response to a channel connection request, a connection request is initiated to the main transmission channel based on channel priority configuration information. The channel priority configuration information includes the connection order of multiple transmission channels determined based on port penetration features. The port penetration features are configured based on the connection success rate of the multiple transmission channels in the target network environment.
[0007] When the primary transmission channel fails to connect, a transmission channel degradation operation is performed and a connection request is initiated to the secondary transmission channel according to the connection order set by the channel priority configuration information.
[0008] In response to the successful connection of the secondary transmission channel, signaling information is sent on the secondary transmission channel.
[0009] Secondly, this application also provides an Internet of Things (IoT) transmission device, comprising:
[0010] The channel connection module is used to respond to a channel connection request by initiating a connection request to the main transmission channel based on channel priority configuration information. The channel priority configuration information includes the connection order of multiple transmission channels determined based on port penetration features. The port penetration features are configured based on the connection success rate of the multiple transmission channels in the target network environment.
[0011] The channel switching module is used to perform a transmission channel degradation operation and initiate a connection request to the auxiliary transmission channel according to the connection order set by the channel priority configuration information when the main transmission channel is not successfully connected.
[0012] The signaling transmission module is used to send signaling information on the secondary transmission channel in response to the successful connection of the secondary transmission channel.
[0013] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0014] In response to a channel connection request, a connection request is initiated to the main transmission channel based on channel priority configuration information. The channel priority configuration information includes the connection order of multiple transmission channels determined based on port penetration characteristics. The port penetration characteristics characterize the connection performance of the transmission protocol types of multiple transmission channels in the target network environment.
[0015] When the primary transmission channel fails to connect, a transmission channel degradation operation is performed and a connection request is initiated to the secondary transmission channel according to the connection order set by the channel priority configuration information.
[0016] In response to the successful connection of the secondary transmission channel, signaling information is sent on the secondary transmission channel.
[0017] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0018] In response to a channel connection request, a connection request is initiated to the main transmission channel based on channel priority configuration information. The channel priority configuration information includes the connection order of multiple transmission channels determined based on port penetration characteristics. The port penetration characteristics characterize the connection performance of the transmission protocol types of multiple transmission channels in the target network environment.
[0019] When the primary transmission channel fails to connect, a transmission channel degradation operation is performed and a connection request is initiated to the secondary transmission channel according to the connection order set by the channel priority configuration information.
[0020] In response to the successful connection of the secondary transmission channel, signaling information is sent on the secondary transmission channel.
[0021] The aforementioned IoT transmission method, apparatus, computer device, and computer-readable storage medium, in response to a channel connection request, initiate a connection request to a primary transmission channel based on channel priority configuration information. The channel priority configuration information includes a connection order of multiple transmission channels determined based on port penetration characteristics. These port penetration characteristics characterize the connection performance of the transmission protocol types of the multiple transmission channels in the target network environment. If the primary transmission channel fails to connect, a transmission channel degradation operation is performed, and a connection request is initiated to a secondary transmission channel according to the connection order set by the channel priority configuration information. In response to a successful connection to the secondary transmission channel, signaling information is sent on the secondary transmission channel. The connection order of the multiple transmission channels is set based on the channel priority configuration information. When generating a channel connection request, a connection request is first initiated to the primary transmission channel. If the primary transmission channel fails to connect, a transmission channel degradation operation is performed, and a connection request is initiated to the secondary transmission channel based on the connection order of the multiple transmission channels. The primary and secondary transmission channels have different port penetration characteristics. If the primary transmission channel fails to connect, a connection request can be initiated to the secondary transmission channel. If the secondary transmission channel connects successfully, signaling information is sent on the secondary transmission channel. At this point, to ensure connection performance, if the connection to the main transmission channel fails, a connection request is initiated to other transmission channels according to the connection order of multiple transmission channels defined by the channel priority configuration information, thus ensuring connection efficiency. The transmission channel selection method of this application can be specifically adapted to the connection quality and connection characteristics of different network environments, ensuring a balance between connection performance and connection efficiency. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is an application environment diagram of an IoT transmission method in one embodiment;
[0024] Figure 2This is a flowchart illustrating an IoT transmission method in one embodiment;
[0025] Figure 3 This is a flowchart illustrating an IoT transmission method in another embodiment;
[0026] Figure 4 This is a flowchart illustrating an IoT transmission method in another embodiment;
[0027] Figure 5 This is a flowchart illustrating an IoT transmission method in another embodiment;
[0028] Figure 6 This is a flowchart illustrating an IoT transmission method in another embodiment;
[0029] Figure 7 This is a structural block diagram of an IoT transmission device in one embodiment;
[0030] Figure 8 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0031] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0032] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.
[0033] The IoT transmission method provided in this application embodiment can be applied to, for example... Figure 1In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or located on the cloud or other network servers. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, drones, low-altitude aircraft, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, projection devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. Server 104 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0034] In real-time communication fields such as the Internet of Things (IoT) and the Internet of Vehicles (IoV), the MQTT (Message Queuing Telemetry Transport) protocol, with its lightweight nature and publish / subscribe model, is gradually becoming the mainstream signaling transmission protocol. Traditional MQTT is based on TCP, and in weak network environments with high latency and high packet loss rates, TCP head-of-line congestion and other mechanisms can reduce transmission efficiency.
[0035] The MQTT transmission method based on the QUIC (Quick UDP Internet Connections) protocol has been proposed. QUIC also possesses the 0-RTT connection, connection migration, and multi-stream reuse characteristics of the UDP protocol, significantly improving transmission performance in weak network conditions. However, QUIC uses a custom UDP port, and in enterprise firewalls, campus LANs, or carrier NAT environments, UDP traffic may be restricted, blocked, or even dropped.
[0036] Existing technologies address these issues by employing multipath transmission and hybrid transmission schemes. Scheme one involves simultaneously maintaining TCP and QUIC channels, dynamically switching between them based on network quality. Scheme two uses MPQUIC (Multipath QUIC) to aggregate multiple transmission channels to transmit the same data.
[0037] In the transmission scheme based on Option 1, native TCP transmission is mostly used, but the ports used are not standard web ports, which are easily blocked in enterprise networks. The hybrid transmission scheme based on Option 2 selects paths based on bandwidth, latency, or packet loss rate, making the path selection criteria relatively singular.
[0038] In one exemplary embodiment, such as Figure 2 As shown, an IoT transmission method is provided, which can be applied to... Figure 1 Taking the terminal in the example, the explanation includes the following steps S202 to S206. Wherein:
[0039] Step S202: In response to the channel connection request, a connection request is initiated to the main transmission channel based on the channel priority configuration information. The channel priority configuration information includes the connection order of multiple transmission channels determined based on the port penetration feature. The port penetration feature is configured based on the connection success rate of multiple transmission channels in the target network environment.
[0040] Specifically, a channel connection request refers to a request to establish a transmission channel between the client and the message broker server. After the transmission channel is established, the device and the message broker server can transmit signaling messages, control data, etc. on the transmission channel.
[0041] A transmission channel refers to the method of establishing a connection and sending data based on transmission protocol rules. A channel connection request can be a two-way communication link established based on the transmission protocol rules defined in the transmission channel.
[0042] In this context, the client is a physical entity capable of sending and receiving data and connected to a communication network. Furthermore, the client can be an IoT terminal device, which communicates with remote servers or other devices via wireless or wired networks. These devices typically integrate sensing units, control units, and execution units.
[0043] For example, IoT terminal devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, projection devices, etc.
[0044] A message broker server is a middleware server in a network responsible for receiving, storing, routing, and forwarding messages. In the application scenario of this application, the message service broker can be a message broker server that uses the MQTT protocol as its message transmission protocol, such as an MQTT Broker. Its core functions include maintaining client connections, managing topics, and performing message subscription and publish matching.
[0045] Channel priority configuration information is used to define the connection order of multiple transmission channels, where the connection order of transmission channels is determined based on the connection performance of each transmission channel in the target network environment.
[0046] A connection channel refers to a data transmission channel established between a client or other communication node and a message broker server, based on a specific transmission protocol. Each transmission channel includes a corresponding protocol stack structure, port identifier, and session state. For example, the traditional MQTT transmission protocol builds transmission channels based on the TCP protocol.
[0047] Port traversal refers to the ability of various transmission channels' corresponding port identifiers / transmission protocols to penetrate intermediate network devices. Specifically, when a data packet is sent from the client to the message broker server, different transmission protocols and port numbers have different success rates in traversing intermediate network devices such as firewalls or NAT gateways. A higher success rate indicates stronger traversal capability, and vice versa.
[0048] Meanwhile, under the same network environment, the penetration capabilities of different transmission protocols also vary. For example, transmission channels based on the TCP transmission protocol have poor penetration capabilities in weak network environments such as mobile 4G / 5G and satellite networks. On the other hand, the QUIC transmission channel based on the UDP transmission protocol has relatively high penetration capabilities in weak network environments.
[0049] It should be noted that before the client initiates a channel connection request, the message broker server can send channel priority configuration information to the client. This channel priority configuration information includes the connection order of multiple transmission channels and the configuration information of each transmission channel.
[0050] Specifically, the channel priority configuration information includes multiple transmission channels and the connection order of the transmission channels.
[0051] Multiple transmission channels represent multiple connection methods based on transmission protocols and port identifiers. The connection order is the sequence in which the client initiates and attempts to connect to the message broker server using different connection methods.
[0052] For example, the channel priority configuration information is configured with N transmission channels, where N is a positive integer greater than or equal to 1, and the connection order of the N transmission channels is first transmission channel → second transmission channel.
[0053] When the client starts, it first initiates a connection to the message broker server based on the first transmission channel. If the connection initiated based on the first transmission channel fails, it then initiates a connection to the message broker server based on the second transmission channel.
[0054] When the client starts, in response to the channel connection request, it initiates a connection request to the main transmission channel according to the connection order defined in the channel priority configuration information.
[0055] Initiating a connection request to the main transmission channel refers to the client sending a data transmission request to the message broker server using the transmission protocol and port identifier corresponding to the main transmission channel. Furthermore, the main transmission channel is based on the A transmission protocol, and the target port is the first port number. Initiating a connection request involves executing the connection method specified by the transmission protocol, initiating a handshake with the message broker server, and attempting to establish a bidirectional communication link between the client and the message broker server.
[0056] In this embodiment, "initiating a connection request to a transmission channel" refers to the process of initiating a connection to a message broker server using the transmission protocol, port identifier, and other connection rules represented by the transmission channel.
[0057] Step S204: When the main transmission channel fails to connect, perform a transmission channel degradation operation and initiate a connection request to the secondary transmission channel according to the connection order set by the channel priority configuration information.
[0058] Specifically, reasons for the main transmission channel failing to connect may include connection timeout, traffic being blocked, or certificate errors.
[0059] The transmission channel degradation operation refers to the operation of using a lower-priority transmission channel to initiate a connection request to the message broker server when a higher-priority transmission channel fails to connect, based on the connection order of each transmission channel defined by the channel priority configuration information.
[0060] During the transmission channel degradation operation, the client does not need to be intervened at the application layer. The protocol layer performs the transmission channel degradation operation and automatically switches from transmission through the primary transmission channel to transmission through the secondary transmission channel.
[0061] The application layer and protocol layer are divided according to the client's software architecture. Specifically, the application layer is the core of client intelligence, responsible for handling all operational logic related to business scenarios, including but not limited to collecting, processing, and uploading data, and receiving execution commands for the client. The protocol layer is used to execute logic such as establishing connections with servers, etc.
[0062] The secondary transmission channel is a transmission channel whose connection order is lower than that of the primary transmission channel. The channel priority configuration information includes the configuration details for the secondary transmission channel, which allows connections to be initiated to the message broker server via the secondary transmission channel.
[0063] Step S206: In response to the successful connection of the secondary transmission channel, signaling information is sent on the secondary transmission channel.
[0064] Specifically, the channel priority configuration information determines the connection order of multiple transmission channels based on port traversal characteristics.
[0065] The primary and secondary transmission channels use different transmission protocols and port identifiers to achieve a balance between connection performance and connection efficiency in the target network environment.
[0066] Specifically, when the primary transmission channel connection fails, the secondary transmission channel is used to establish a connection. If the secondary transmission channel connection is successful, the client sends signaling information to the message broker server based on the secondary transmission channel.
[0067] Signaling messages refer to information exchanged bidirectionally between a client and a message broker server. Functionally, signaling messages can include control message data and service data, among others.
[0068] Control message data is the data exchanged at the protocol layer and is used to maintain the connection between the client and the message broker server.
[0069] Business data can be the data that the client needs to transmit based on the business scenario.
[0070] For example, taking a message broker server as a server that transmits MQTT protocol data as an example, the control message data follows the MQTT protocol specification. Message types include CONNECT, CONNACK, PUBLISH, SUBSCRIBE, SUBACK, PINGREQ, PINGRESP, DISCONNECT, etc.
[0071] Taking an IoT device as an example, the business data can include sensor data, device status data, control command data, and file / multimedia data. Sensor data includes temperature and humidity; device status data includes online / offline status and battery level; control command data includes commands sent to the device by the user or the cloud; and file / multimedia data includes solid-state upgrade packages and video stream data.
[0072] In this embodiment, the connection order of multiple transmission channels is configured based on the port traversal characteristics of multiple transmission channels using channel priority configuration information. The channel priority configuration information also configures a corresponding connection method for each transmission channel, where the connection method refers to the transmission protocol and port identifier of that transmission channel. When a client initiates a channel connection request, in response to the request, a connection request is initiated for the primary transmission channel as defined in the channel priority configuration information. If the primary transmission channel fails to connect, a transmission channel degradation operation is performed, and a connection request is initiated for the secondary transmission channel. The connection order of the primary transmission channel is higher than that of the secondary transmission channel. When the primary transmission channel connection fails, a connection request is initiated for the secondary transmission channel. When the secondary transmission channel connection is successful, signaling information is sent on the secondary transmission channel. The primary and secondary transmission channels initiate connection requests for the primary transmission channel based on different port traversal characteristics. To ensure connection performance, when the primary transmission channel fails to connect, a connection request is initiated for the secondary transmission channel according to the connection order defined in the channel priority configuration information, ensuring connection efficiency. This channel connection method can specifically adapt to the connection quality and characteristics of different network environments, ensuring a balance between connection performance and connection efficiency.
[0073] like Figure 3 As shown, in an exemplary embodiment, step S202 includes steps S302 to S304. Wherein:
[0074] Step S302: Based on the channel priority configuration information, obtain the main port configuration information, which includes the transmission protocol type and port information of the main transmission channel.
[0075] Step S304: Initiate a connection request to the main transmission channel based on the main port configuration information.
[0076] Specifically, the main port configuration information refers to the connection rules for initiating connection requests on the main transmission channel. The main port configuration information includes the transmission protocol type and port information of the main transmission channel.
[0077] The transport protocol type indicates the protocol rules used when initiating a connection request to the message broker server through the main transport channel, and the port information indicates the port identifier used by the main transport channel.
[0078] The transport protocol type can be either TCP (Transmission Control Protocol) or UDP (User Datagram Protocol).
[0079] Based on the transport protocol type and port information defined in the main port configuration information, a channel connection request is initiated to the main transport channel. During the connection channel establishment process, a connection request is sent to the message broker server based on the handshake rules defined in the transport protocol type and the port information.
[0080] Taking UDP as an example, UDP is a connectionless transport protocol. The client sends data packets to the message broker server, which receives the data packets and obtains the client's IP address and port identifier.
[0081] Essentially, the connection request process based on the UDP protocol is actually sending the first data packet to the message broker server.
[0082] In this embodiment, by configuring the primary port configuration information for the primary transmission channel and the secondary port configuration information for the secondary transmission channel, the two transmission channels adopt different transmission protocol types and port information, and have different port penetration characteristics. If the primary transmission channel fails to connect, the transmission channel is downgraded and switched to the secondary transmission channel, which can adapt to different network environments and achieve a balance between connection performance and connection efficiency.
[0083] like Figure 4 As shown, in an exemplary embodiment, step S204 includes steps S402 to S406. Wherein:
[0084] Step S402: Obtain the session context information transmitted when establishing a connection to the main transmission channel.
[0085] In step S404, in response to the failure of the primary transmission channel connection, a transmission channel degradation operation is performed to migrate the session context information to the next transmission channel.
[0086] Step S406: Based on the secondary port configuration information and session context information included in the channel priority configuration information, initiate a connection request to the secondary transmission channel. The secondary port configuration information includes the transmission protocol type and port information of the secondary transmission channel.
[0087] Furthermore, if the primary transmission channel fails to connect, a transmission channel degradation operation is performed, switching from the primary transmission channel to the secondary transmission channel. The secondary transmission channel is a transmission channel whose connection order is configured to be lower than that of the primary transmission channel in the channel priority configuration information.
[0088] To achieve a seamless switch from the primary transmission channel to the secondary transmission channel, session context information is transmitted on both the primary and secondary transmission channels using the same signaling transmission protocol. Therefore, session context information can be migrated from the primary transmission channel to the secondary transmission channel.
[0089] When the primary transmission channel connection fails, the client obtains the session context information transmitted on the primary transmission channel and initiates a connection request to the secondary transmission channel based on the session context information to attempt to establish a communication connection between the client and the message broker server.
[0090] When initiating a connection request, the session context information is data information that the client and message broker server use when the connection is established.
[0091] The message broker server maintains communication sessions based on the MQTT protocol. When a connection is established, the client sends a CONNECT message, etc.
[0092] Session context information includes control messages, will messages, and session states used to establish the connection.
[0093] If the primary and secondary transmission channels are based on the same protocol semantics, then when the primary transmission channel connection fails, the session context information is migrated to the secondary transmission channel. The connection request is then initiated on the secondary transmission channel based on the same protocol semantics, which enables rapid migration and improves the channel connection speed.
[0094] The secondary port configuration information refers to the connection rules that initiate connection requests to the secondary transport channel. The secondary transport channel includes its transport protocol type and port information.
[0095] The transport protocol type of the secondary transport channel indicates the protocol rules used when initiating a connection request to the message broker server using the secondary transport channel, and the port information indicates the port identifier used by the secondary transport channel.
[0096] Based on the transport protocol type and port information defined in the secondary port configuration information, a channel connection request is initiated to the secondary transport channel. During the connection channel establishment process, a connection request is initiated to the message broker server based on the handshake rules defined in the transport protocol type and the port information.
[0097] Taking TCP as an example, TCP is a connection-oriented transport protocol. The client and the message broker server need to establish a connection-oriented channel through a three-way handshake.
[0098] Once the three-way handshake connection is successful, it indicates that the connection established based on the secondary transport channel has been successfully established, and the client can send business data to the message broker server.
[0099] In this embodiment, the primary and secondary transmission channels are based on the same protocol semantics. When the primary transmission channel fails to connect, the session context information from when the connection was established on the primary transmission channel is obtained. When a connection request is initiated to the secondary transmission channel, the session context information is migrated from the primary transmission channel to the secondary transmission channel, completing the transmission channel degradation operation. The transmission channel degradation operation, based on the primary and secondary transmission channels using the same protocol semantics, migrates the connection session of the connection establishment request from the primary transmission channel to the secondary transmission channel, achieving seamless switching of transmission channels and reducing the time required to re-establish a connection.
[0100] In one exemplary embodiment, the transport protocol type includes a first transport protocol and a second transport protocol.
[0101] The primary transmission channel is configured to use the first transmission protocol, which is a connectionless transmission protocol; the secondary transmission channel is configured to use the second transmission protocol, which is a connection-oriented transmission protocol.
[0102] Specifically, connectionless transport protocols refer to protocols where no communication between the client and the message broker server needs to be established before data transmission; data is sent in independent units.
[0103] Connection-oriented transport protocols refer to protocols that require establishing a communication state between the client and the message broker server before data transmission.
[0104] Furthermore, the primary transport protocol can be UDP, which does not require a handshake between the client and the message broker server. The UDP-based main transport channel, based on zero round-trip time and connection migration mechanisms, offers high penetration performance. However, the ports used by UDP may be blocked in some target environments.
[0105] The second transport protocol can be TCP. TCP requires a handshake between the client and the message broker server, and its port traversal performance is lower than UDP. However, TCP has a higher port traversal success rate than UDP, and is less likely to be blocked by firewalls or NAT gateways.
[0106] In summary, the primary transmission channel, based on the UDP protocol, offers the best penetration performance, but its penetration efficiency is lower due to the higher likelihood of interception. The secondary transmission channel, based on the TCP protocol, has slightly inferior penetration performance compared to the primary channel, but its lower likelihood of interception results in higher penetration efficiency.
[0107] Furthermore, the first transport protocol could be MQTT over QUIC. This protocol runs the MQTT protocol on top of the QUIC protocol. QUIC (Quick UDP Internet Connections) is a secure transport protocol based on UDP. QUIC features low connection latency, connection migration, and multiplexing. Connection migration refers to the ability to maintain a connection even when the client's IP address or port changes, based on the Connection ID.
[0108] The first transmission protocol is based on the QUIC protocol, which solves the problem of MQTT protocol connection being blocked in weak network environments.
[0109] The second transport protocol could be MQTT over WebSocket over TLS (WSS). This protocol runs the MQTT protocol on top of the WebSocket protocol and uses TLS for encryption on the outer layer. This transport protocol allows the MQTT protocol, which is originally based on TCP, to run in a web environment.
[0110] WSS tunnels can share ports, certificates, and load balancers with existing HTTPS services, eliminating the need for additional open ports or the deployment of separate services, thus significantly reducing operational costs.
[0111] The secondary transport channel built using this protocol requires the establishment of a TLS encrypted tunnel during the channel connection process. Within this encrypted tunnel, a handshake is initiated using the WebSocket protocol to establish the WebSocket channel. MQTT protocol messages are then sent on the WebSocket channel. Once the message broker server sends the corresponding reply message, the secondary transport channel connection is successful. The client can then send business data to the message broker server.
[0112] When initiating a connection request to the main transport channel, the client uses the main port configuration information. This main port configuration is `mqtt-quic: / / broker:14567`. `mqtt-quic` represents the transport protocol type of the main transport channel, `14567` is the port number, and `broker` is a message broker server based on the MQTT protocol. This indicates that the client is initiating a bidirectional communication link with the MQTT Broker using the main transport channel connection method.
[0113] Furthermore, if the connection of the main transmission channel is successfully established within the preset timeout period, the main transmission channel will be used as the channel for transmitting current service data, and at this time, a stable transmission state will be entered.
[0114] If the primary transmission channel fails to be established within the preset timeout period, a transmission channel degradation operation will be performed, and a connection request will be initiated to the secondary transmission channel.
[0115] When initiating a connection request to the secondary transport channel, the client initiates the connection using the secondary port configuration information. This secondary port configuration information is either `mqtt-wss: / / broker:433 / mqtt` or `wss: / / broker:433 / mqtt`. `mqtt-wss` or `wss` specifies the transport protocol type for the secondary transport channel, and `433` specifies the port number. Port 433 is the standard HTTPS port, which is less likely to be blocked by firewalls or NAT gateways.
[0116] The preset timeout can be set to 5 seconds. Reasons for the failure to establish the main transmission channel include, but are not limited to, timeout, UDP traffic being blocked, and certificate errors.
[0117] In this embodiment, the primary transmission channel uses a first transmission protocol, which is a connectionless transmission protocol; the secondary transmission channel uses a second transmission protocol, which is a connection-oriented transmission protocol. The connection characteristics of the first and second transmission protocols enable the primary and secondary transmission channels to exhibit different port traversal features in different network environments. These port traversal features include traversal performance and traversal efficiency. The connectionless transmission protocol, due to its non-handshake connection requirement, has stronger traversal performance, while the connection-oriented transmission protocol is less likely to be blocked by firewalls or NAT gateways and has higher traversal efficiency. Based on the port traversal features of the primary and secondary transmission channels, when a client initiates a channel connection request, the connection is switched according to the connection status, balancing traversal performance and efficiency, and improving connection flexibility in complex and ever-changing network environments.
[0118] like Figure 5 As shown, in an exemplary embodiment, after step S206, the IoT transmission method further includes the following steps:
[0119] Step S502: Send a stability test request to the main transmission channel.
[0120] Step S504: When the number of successful stability test requests exceeds the preset number, a switching operation is performed to switch back from the secondary transmission channel to the primary transmission channel.
[0121] Specifically, the stability test request is used to determine whether the primary transmission channel can maintain a stable connection. When the client communicates with the message broker server through the secondary transmission channel, the client initiates a stability test task, which involves sending a connection request to the primary transmission channel at preset intervals. This connection request can be a heartbeat keep-alive request or a reconnection request.
[0122] This reconnection request can be based on the session context information from the first time the connection request was initiated to the main transmission channel, and can re-initiate the connection request to the main transmission channel.
[0123] Specifically, sending a stability test request to the main transmission channel and receiving a response from the message broker server indicates that the stability test request was successful; and if N consecutive successes occur, it means that the connection corresponding to the main transmission channel has been restored.
[0124] The preset period for initiating connection requests to the main transmission channel can be 30 seconds. Two consecutive successful probes indicate that the connection to the main transmission channel has been restored. It should be noted that the preset period and the number of consecutive successful tests can be adjusted based on the actual scenario, for example, by determining the length of the preset period and the number of successful tests based on historical network data.
[0125] At this point, the client's transmission channel can be switched from the secondary transmission channel to the primary transmission channel. After the switch is complete, the secondary transmission channel should be closed.
[0126] In this embodiment, when using the secondary transmission channel for communication, the availability of the primary transmission channel is tested periodically. When the test shows that the connection of the primary transmission channel has been restored, the system automatically switches from the secondary transmission channel to the primary transmission channel. Since the penetration performance of the primary transmission channel is higher than that of the secondary transmission channel, the system automatically switches back to the transmission channel with higher penetration performance, which improves the adaptability to complex network environments to a certain extent.
[0127] As an optional implementation, the channel priority configuration information includes a primary transmission channel and at least two hierarchical transmission channels. The IoT transmission method also includes:
[0128] If the main transmission channel fails to connect, connection requests are initiated to the next level transmission channel in descending order of connection sequence.
[0129] For example, multiple layers of transmission channels can be added below the main transmission channel, with the main transmission channel having the highest level and being the first in the connection order.
[0130] When the main transmission channel fails to connect, a connection request is initiated sequentially to the next level transmission channel based on the multi-level transmission channel mechanism.
[0131] Specifically, the next level below the main transmission channel is the auxiliary transmission channel, the next level below the auxiliary transmission channel is the primary transmission channel, and the next level below the primary transmission channel is the secondary transmission channel.
[0132] Each level of transmission channel corresponds to port configuration information for that level, which includes the transmission protocol type and port information.
[0133] For example, the primary transmission channel uses TCP as its transport protocol and port 1883. The secondary transmission channel uses MQTT-SN as its transport protocol and port 1883, which is based on UDP.
[0134] If the primary transmission channel fails to connect, a connection request is initiated to the secondary transmission channel. If the secondary transmission channel fails to connect, a connection request is initiated to the primary transmission channel. If the primary transmission channel fails to connect, a connection request is initiated to the secondary transmission channel, and so on, until a connection is successfully established.
[0135] It should be noted that the number of transmission channel layers exemplified in this embodiment is only for illustrative purposes, and more transmission channel layers can be selected according to the actual scenario.
[0136] In this embodiment, by setting up multiple levels of transmission channels, multi-level transmission channel degradation is achieved, and each level of transmission channel adopts different transmission protocol types and port information. When the current level of transmission channel fails to connect, it is downgraded to the next level of transmission channel and a connection is initiated to the next level of transmission channel until the connection is successful, thereby further enhancing the channel connection success rate in extreme network environments.
[0137] like Figure 6 As shown, as an optional implementation method, the IoT transmission method further includes:
[0138] Step S602: Obtain the device-side network environment parameters associated with the channel connection request based on the parsing of the channel connection request.
[0139] Step S604: Retrieve historical port penetration data of the network environment parameters on the device side when making a connection request. The historical port penetration data represents the success rate of connecting to the main transmission channel and the success rate of connecting to the secondary transmission channel.
[0140] Step S606: Adjust the connection order of multiple transmission channels defined in the channel priority configuration information according to historical port penetration data.
[0141] Specifically, device-side network environment parameters are obtained based on channel connection requests. Device-side network parameters refer to network status information used to describe the client, including but not limited to network connection status, network performance parameters, and network topology parameters.
[0142] Among them, the network environment parameters on the device side can be the network connection status, which is used to determine the client's network type, IP address, port number, etc.
[0143] In this case, if the device connects to the Internet via Wi-Fi, it obtains the client's Wi-Fi SSID.
[0144] Historical port penetration data refers to the data on the connection results of the transmission channel in the past when the client established a communication connection with the message broker server.
[0145] For example, historical port passthrough data represents the client's historical connection success rate across different transmission channels and network environments.
[0146] The connection result includes whether the connection was successful and the reason for the connection failure.
[0147] The connection success rate of the transmission protocol corresponding to each transmission channel is determined based on historical port pass-through data, including the success rate of connecting to the primary transmission channel and the success rate of connecting to the secondary transmission channel.
[0148] Specifically, the client uses a wireless connection to obtain the client's WiFi SSID. If it is detected that the WiFi SSID has a high probability of blocking UDP traffic, the connection order of the primary and secondary transmission channels is adjusted, and a connection request is attempted to be sent to the secondary transmission channel to further reduce the channel connection time and improve the efficiency of the client initiating connection requests.
[0149] In this embodiment, based on the client's historical port penetration data, the connection success rate of the network environment where the client is located for different transmission channels is determined. Based on the connection success rate, the connection order for each transmission channel in the channel priority configuration information is adjusted to avoid wasting the waiting time to connect to the main transmission channel in extreme network environments and improve the success rate of establishing the channel connection for the first time.
[0150] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0151] Based on the same inventive concept, this application also provides an IoT transmission device for implementing the IoT transmission method described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations in one or more IoT transmission device embodiments provided below can be found in the limitations of the IoT transmission method described above, and will not be repeated here.
[0152] In one exemplary embodiment, such as Figure 7 As shown, an Internet of Things (IoT) transmission device is provided, including: a channel connection module 710, a channel switching module 720, and a signaling transmission module 730. Wherein:
[0153] The channel connection module 710 is used to respond to a channel connection request by initiating a connection request to the main transmission channel based on channel priority configuration information. The channel priority configuration information includes the connection order of multiple transmission channels determined based on port penetration features. The port penetration features are configured based on the connection success rate of multiple transmission channels in the target network environment.
[0154] The channel switching module 720 is used to perform a transmission channel degradation operation and initiate a connection request to the auxiliary transmission channel according to the connection order set by the channel priority configuration information when the main transmission channel is not successfully connected.
[0155] The signaling transmission module 730 is used to send signaling information on the secondary transmission channel in response to the successful connection of the secondary transmission channel.
[0156] As an optional implementation, the channel connection module 710 includes the following units:
[0157] The main port configuration acquisition unit is used to acquire the main port configuration information based on the channel priority configuration information. The main port configuration information includes the transmission protocol type and port information of the main transmission channel.
[0158] The main channel connection unit is used to initiate a connection request to the main transmission channel based on the main port configuration information.
[0159] As an optional implementation, the channel switching module 720 includes the following units:
[0160] The context acquisition unit is used to acquire the session context information transmitted when establishing a connection to the main transmission channel.
[0161] The degradation unit is used to perform a transmission channel degradation operation in response to a failure of the primary transmission channel connection. The transmission channel degradation operation is used to migrate session context information to the next transmission channel.
[0162] The secondary channel connection unit is used to initiate a connection request to the secondary transmission channel based on the secondary port configuration information and session context information included in the channel priority configuration information. The secondary port configuration information includes the transmission protocol type and port information of the secondary transmission channel.
[0163] As an optional implementation, the IoT transmission device also includes the following modules:
[0164] The stability test module is used to send stability test requests to the main transmission channel.
[0165] The channel switching module is used to perform a switching operation from the secondary transmission channel back to the primary transmission channel when the number of successful stability test requests exceeds a preset number.
[0166] The channel-level connection module is used to initiate connection requests to the next level transmission channel in descending order of connection sequence when the main transmission channel is not successfully connected.
[0167] The network parameter acquisition module is used to parse the channel connection request to obtain the device-side network environment parameters associated with the channel connection request.
[0168] The historical data acquisition module is used to retrieve historical port penetration data of the network environment parameters on the device side when making connection requests. The historical port penetration data represents the success rate of connecting to the main transmission channel and the success rate of connecting to the secondary transmission channel.
[0169] The priority adjustment module is used to adjust the connection order of multiple transmission channels defined in the channel priority configuration information based on historical port penetration data.
[0170] Each module in the aforementioned IoT transmission device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the corresponding operations of each module.
[0171] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 8As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements an Internet of Things (IoT) transmission method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0172] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0173] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0174] In response to a channel connection request, a connection request is initiated to the main transmission channel based on the channel priority configuration information. The channel priority configuration information includes the connection order of multiple transmission channels determined based on port penetration characteristics. Port penetration characteristics characterize the connection performance of the transmission protocol types of multiple transmission channels in the target network environment.
[0175] If the primary transmission channel fails to connect, a transmission channel degradation operation is performed, and a connection request is initiated to the secondary transmission channel according to the connection order set in the channel priority configuration information.
[0176] In response to the successful connection of the secondary transmission channel, signaling information is sent on the secondary transmission channel.
[0177] Based on the channel priority configuration information, obtain the main port configuration information, which includes the transmission protocol type and port information of the main transmission channel.
[0178] Initiate a connection request to the main transmission channel based on the main port configuration information.
[0179] Obtain the session context information transmitted when establishing a connection to the main transmission channel.
[0180] In response to a failure of the primary transport channel connection, a transport channel degradation operation is performed, which is used to migrate session context information to the next transport channel.
[0181] Based on the secondary port configuration information and session context information included in the channel priority configuration information, a connection request is initiated to the secondary transmission channel. The secondary port configuration information includes the transmission protocol type and port information of the secondary transmission channel.
[0182] In one exemplary embodiment, the transport protocol type includes a first transport protocol and a second transport protocol.
[0183] The primary transmission channel is configured to use the first transmission protocol, which is a connectionless transmission protocol. The secondary transmission channel is configured to use the second transmission protocol, which is a connection-oriented transmission protocol.
[0184] Send a stability test request to the main transmission channel.
[0185] If the number of successful stability test requests exceeds the preset number, a switchover operation will be performed to switch back from the secondary transmission channel to the primary transmission channel.
[0186] If the main transmission channel fails to connect, connection requests are initiated to the next level transmission channel in descending order of connection sequence.
[0187] Based on the parsing of the channel connection request, the device-side network environment parameters associated with the channel connection request are obtained.
[0188] Retrieve historical port passthrough data of the network environment parameters on the device side when making connection requests. The historical port passthrough data represents the success rate of connecting to the main transmission channel and the success rate of connecting to the secondary transmission channel.
[0189] Adjust the connection order of multiple transmission channels defined in the channel priority configuration information based on historical port pass-through data.
[0190] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0191] In response to a channel connection request, a connection request is initiated to the main transmission channel based on the channel priority configuration information. The channel priority configuration information includes the connection order of multiple transmission channels determined based on port penetration characteristics. Port penetration characteristics characterize the connection performance of the transmission protocol types of multiple transmission channels in the target network environment.
[0192] When the primary transmission channel fails to connect, a transmission channel degradation operation is performed and a connection request is initiated to the secondary transmission channel according to the connection order set in the channel priority configuration information.
[0193] In response to the successful connection of the secondary transmission channel, signaling information is sent on the secondary transmission channel.
[0194] Based on the channel priority configuration information, obtain the main port configuration information, which includes the transmission protocol type and port information of the main transmission channel;
[0195] Initiate a connection request to the main transmission channel based on the main port configuration information.
[0196] Obtain the session context information transmitted when establishing a connection to the main transmission channel;
[0197] In response to a failure of the primary transport channel connection, a transport channel degradation operation is performed, which is used to migrate session context information to the next transport channel.
[0198] Based on the secondary port configuration information and session context information included in the channel priority configuration information, a connection request is initiated to the secondary transmission channel. The secondary port configuration information includes the transmission protocol type and port information of the secondary transmission channel.
[0199] In one exemplary embodiment, the transport protocol type includes a first transport protocol and a second transport protocol.
[0200] The primary transmission channel is configured to use the first transmission protocol, which is a connectionless transmission protocol; the secondary transmission channel is configured to use the second transmission protocol, which is a connection-oriented transmission protocol.
[0201] Send a stability test request to the main transmission channel;
[0202] If the number of successful stability test requests exceeds the preset number, a switchover operation will be performed to switch back from the secondary transmission channel to the primary transmission channel.
[0203] The channel priority configuration information includes the primary transmission channel and at least two tier transmission channels.
[0204] If the main transmission channel fails to connect, connection requests are initiated to the next level transmission channel in descending order of connection sequence.
[0205] Based on the parsing of the channel connection request, the device-side network environment parameters associated with the channel connection request are obtained;
[0206] Retrieve historical port passthrough data of the network environment parameters on the device side when making connection requests. The historical port passthrough data represents the success rate of connecting to the main transmission channel and the success rate of connecting to the secondary transmission channel.
[0207] Adjust the connection order of multiple transmission channels defined in the channel priority configuration information based on historical port pass-through data.
[0208] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0209] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0210] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. An Internet of Things (IoT) transmission method, characterized in that, The method includes: In response to a channel connection request, a connection request is initiated to the main transmission channel based on channel priority configuration information. The channel priority configuration information includes the connection order of multiple transmission channels determined based on port penetration features. The port penetration features are configured based on the connection success rate of the multiple transmission channels in the target network environment. When the primary transmission channel fails to connect, a transmission channel degradation operation is performed and a connection request is initiated to the secondary transmission channel according to the connection order set by the channel priority configuration information. In response to the successful connection of the secondary transmission channel, signaling information is sent on the secondary transmission channel.
2. The method according to claim 1, characterized in that, The step of initiating a connection request to the main transmission channel in response to a channel connection request, based on channel priority configuration information, includes: Based on the channel priority configuration information, the main port configuration information is obtained, which includes the transmission protocol type and port information of the main transmission channel; A connection request is initiated to the main transmission channel based on the main port configuration information.
3. The method according to claim 1, characterized in that, When the primary transmission channel fails to connect, the process of performing a transmission channel degradation operation and initiating a connection request to the secondary transmission channel according to the connection order configured in the channel priority configuration information includes: Obtain the session context information transmitted when establishing a connection to the main transmission channel; In response to the failure of the primary transmission channel connection, a transmission channel degradation operation is performed, which is used to migrate the session context information to the next transmission channel; Based on the secondary port configuration information included in the channel priority configuration information and the session context information, a connection request is initiated to the secondary transmission channel. The secondary port configuration information includes the transmission protocol type and port information of the secondary transmission channel.
4. The method according to any one of claims 1-3, characterized in that, The transmission protocol type includes a first transmission protocol and a second transmission protocol; The primary transmission channel is configured to use the first transmission protocol, which is a connectionless transmission protocol; the secondary transmission channel is configured to use the second transmission protocol, which is a connection-oriented transmission protocol.
5. The method according to claim 1, characterized in that, After sending signaling information on the secondary transmission channel in response to a successful connection of the secondary transmission channel, the method further includes: Send a stability test request to the main transmission channel; When the number of successful stability test requests exceeds a preset number, a switching operation is performed to switch back from the secondary transmission channel to the primary transmission channel.
6. The method according to claim 1, characterized in that, The channel priority configuration information includes the main transmission channel and at least two hierarchical transmission channels, and the method further includes: If the main transmission channel fails to connect, connection requests are initiated to the next level transmission channel in descending order of connection sequence.
7. The method according to claim 1, characterized in that, The method further includes: Based on the parsing of the channel connection request, the device-side network environment parameters associated with the channel connection request are obtained; The historical port penetration data of the network environment parameters on the device side when making a connection request is retrieved. The historical port penetration data represents the success rate of connecting to the main transmission channel and the success rate of connecting to the secondary transmission channel. The connection order of multiple transmission channels defined in the channel priority configuration information is adjusted based on the historical port penetration data.
8. An Internet of Things (IoT) transmission device, characterized in that, The device includes: The channel connection module is used to respond to a channel connection request by initiating a connection request to the main transmission channel based on channel priority configuration information. The channel priority configuration information includes the connection order of multiple transmission channels determined based on port penetration features. The port penetration features are configured based on the connection success rate of the multiple transmission channels in the target network environment. The channel switching module is used to perform a transmission channel degradation operation and initiate a connection request to the auxiliary transmission channel according to the connection order set by the channel priority configuration information when the main transmission channel is not successfully connected. The signaling transmission module is used to send signaling information on the secondary transmission channel in response to the successful connection of the secondary transmission channel.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.