Information transmission method and device, equipment and storage medium
By introducing management systems and communication systems into the P2P negotiation server, dynamically monitoring and managing remote access channels of IoT devices, the problems of resource waste and key leakage caused by useless connections are solved, and the rational utilization of port resources and communication data are realized. Safe transmission.
Patent Information
- Application Number
- CN202411175636.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-08-23
AI Technical Summary
In the scenario of massive IoT devices, the P2P negotiation server is wasted by waste of public network port resources due to long-term useless connections, which affects system performance, and there is a risk of static updates and leakage of identity authentication keys, resulting in communication data leakage and illegal tampering.
The management system and communication system are introduced, and the connection is established with the client through the management channel, the channel usage is dynamically monitored, the useless connection is actively disconnected, and the dynamically generated identity authentication key and encryption and decryption key are used to ensure communication security.
Effectively utilize port resources, improve transmission system performance, reduce the risk of static key leakage, and ensure the security of communication data.
Smart Images

Figure CN119094590A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to an information transmission method, device, equipment and storage medium. Background Art
[0002] A Virtual Private Network (VPN) can utilize Internet or public Internet technology facilities to provide the same functions and security as a private network, that is, encrypted VPN communications on a public network.
[0003] In the related art, a peer-to-peer (P2P) negotiation server can receive an access request sent by a requesting access terminal for establishing a communication relationship with an accessing client, and establish a communication relationship between the requesting client and the accessing client according to the access request, so that the two clients can start their own VPN programs to exchange data. However, if a large number of IoT devices are used as accessing clients, and there is no data communication for a long time after the connection channel is established between the requesting client and the large number of accessing clients, a large number of public network port resources of the P2P negotiation server will be wasted, affecting the system performance of the P2P negotiation server. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an information transmission method, apparatus, device, storage medium and computer program product to solve the problem of serious waste of resources in maintaining useless connections and reduced system performance of P2P negotiation servers in the prior art.
[0005] In a first aspect, an embodiment of the present application provides an information transmission method, which is applied to an information transmission system, where the information transmission system includes a management system and a communication system, including:
[0006] Receiving a first remote access request sent by a first client, where the first remote access request is used to request access to a remote service in a second client;
[0007] In the case where it is determined that the information transmission system is connected to the second client through the management channel between the management system and the second client, a first forwarding channel between a first session port and a bridge port is established based on the first remote access request, the first session port being a session port between the communication system in the information transmission system and the second client, and the bridge port being a port for communication between the communication system and the management system in the information transmission system;
[0008] Sending a first instruction to the second client through the first session port, the first instruction carrying channel information of the first forwarding channel, the first instruction being used to instruct the second client to establish a second forwarding channel between the second session port and the service port of the remote service based on the channel information, the second session port being a session port between the communication system in the second client and the second client, and the first forwarding channel and the second forwarding channel being disconnectable channels;
[0009] When response information corresponding to the remote service is received from the second client through the first session port, a remote connection instruction is sent to the first client, the response information is obtained by the second client through the second forwarding channel, the remote connection instruction carries information related to the response information, and the remote connection instruction is used to instruct the first client to display information related to the response information.
[0010] In a second aspect, an embodiment of the present application provides an information transmission method, which is applied to an information transmission system, where the information transmission system includes a management system and a communication system, including:
[0011] A receiving module, configured to receive a first remote access request sent by a first client, wherein the first remote access request is used to request access to a remote service in a second client;
[0012] An establishing module, configured to establish a first forwarding channel between a first session port and a bridge port based on a first remote access request when it is determined that the information transmission system is connected to the second client through a management channel between the management system and the second client, wherein the first session port is a session port between the communication system in the information transmission system and the second client, and the bridge port is a port for communication between the communication system and the management system in the information transmission system;
[0013] A transceiver module, configured to send a first instruction to a second client through a first session port, wherein the first instruction carries channel information of a first forwarding channel, and the first instruction is configured to instruct the second client to establish a second forwarding channel between the second session port and a service port of a remote service based on the channel information, wherein the second session port is a session port between the communication system in the second client and the second client, and the first forwarding channel and the second forwarding channel are disconnectable channels;
[0014] The transceiver module is also used to send a remote connection instruction to the first client when response information corresponding to the remote service is received from the second client through the first session port. The response information is obtained by the second client through the second forwarding channel. The remote connection instruction carries information related to the response information. The remote connection instruction is used to instruct the first client to display information related to the response information.
[0015] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, and when the program or instruction is executed by the processor, the steps of the information transmission method shown in the first aspect are implemented.
[0016] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the information transmission method shown in the first aspect are implemented.
[0017] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a display interface, the display interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the information transmission method shown in the first aspect.
[0018] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the information transmission method shown in the first aspect.
[0019] In an embodiment of the present application, a first remote access request sent by a first client may be received, the first remote access request being used to request access to a remote service in a second client; when it is determined that the information transmission system is connected to the second client through a management channel between the management system and the second client, a first forwarding channel between a first session port and a bridge port is established based on the first remote access request, the first session port being a session port between the communication system and the second client in the information transmission system, and the bridge port being a port for communication between the communication system and the management system in the information transmission system; then, a first instruction is sent to the second client through the first session port, the first instruction carries channel information of the first forwarding channel, the first instruction is used to instruct the second client to establish a second forwarding channel between the second session port and a service port of the remote service based on the channel information, the second session port being a session port between the communication system in the second client and the second client; when response information corresponding to the remote service is received from the second client through the first session port, a remote connection instruction is sent to the first client, the response information is obtained by the second client through the second forwarding channel, the remote connection instruction carries information related to the response information, and the remote connection instruction is used to instruct the first client to display information related to the response information. In this way, a management system and a communication system are introduced, and the P2P negotiation server in the existing solution is abandoned. After the second client is started, a management channel can be established between the management system and the second client. In this way, when the first remote access request sent by the first client is received and it is determined that the information transmission system is connected to the second client, a first forwarding channel is established in the information transmission system and a second forwarding channel is established on the second client. Then, a remote access channel is established between the first client, the second client, the management system and the communication system through the first forwarding channel and the second forwarding channel. Since the first forwarding channel and the second forwarding channel are disconnectable channels, the two forwarding channels can be controlled to actively disconnect according to the actual communication situation of the two clients. While ensuring information communication between the first client and the second client, the rational use of ports and communication resources is guaranteed, the performance of the transmission system is improved, and the stable operation of the information transmission system is ensured. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A schematic diagram of the structure of an information transmission system provided in an embodiment of the present application;
[0021] Figure 2 A flowchart of an information transmission method provided in an embodiment of the present application;
[0022] Figure 3 A flowchart of managing channel establishment in an information transmission method provided in an embodiment of the present application;
[0023] Figure 4A flowchart of establishing a forwarding channel in an information transmission method provided in an embodiment of the present application;
[0024] Figure 5 One of the flow charts of forwarding channel recovery in an information transmission method provided in an embodiment of the present application;
[0025] Figure 6 The second flowchart of forwarding channel recovery in an information transmission method provided in an embodiment of the present application;
[0026] Figure 7 A schematic diagram of the structure of an information transmission device provided in an embodiment of the present application;
[0027] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0028] Fig. 9 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0030] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0031] The acquisition, storage, use, and processing of data (including but not limited to the features and information in the text) in the technical solution of this application are in compliance with the relevant provisions of national laws and regulations. In order to solve the above technical problems, the embodiments of this application provide an information transmission method, device, computer equipment, and storage medium.
[0032] In the related art, a requesting client and an accessing client can communicate data by penetrating a VPN through a P2P intranet. The requesting client sends an access request to a P2P negotiation server to establish a communication relationship with the accessing client. The access request includes identification data of the requesting client, wherein the identification data is unique identification information of the client identity. The P2P negotiation server negotiates to establish a communication relationship between the requesting client and the accessing client based on the identification data of the requesting client and the identification data of the accessing client, generates a corresponding Internet Protocol (IP) port combination and feeds it back to the requesting client and the accessing client. The requesting client and the accessing client respectively start their own VPN programs based on their respective received IP port combinations to establish a communication channel for data exchange, so as to achieve the restriction that at least one party has a public IP when the two places communicate through the VPN technology.
[0033] The above method does not involve the scenario of massive access clients. If a large number of IoT devices are used as access clients, and the channel usage rate is not monitored after the connection channel is established between the requesting client and the access client, if there is no data communication between the clients for a long time, it will cause a large amount of public network port resources of the negotiation server to be wasted and a large number of useless connections to be maintained, affecting the system performance of the P2P negotiation server. In addition, the above method does not consider the dynamic update mechanism of the access client identity authentication key when establishing a remote access channel. In the IoT scenario, if the device authentication key of the access client is hijacked or cracked by an attacker, it is easy for illegal counterfeit devices to access the communication system, and it will also lead to the leakage and illegal tampering of communication data.
[0034] In order to solve the problems in the related art, the embodiments of the present application provide an information transmission method, device, equipment, storage medium and computer program product, which specially introduces a management system and a communication system, and abandons the negotiation server in the original solution, so that after the access client device is started, it first connects to the management system to establish a management channel; when the client is requested to remotely access the local service of the client device through the management system, the management system sends remote access connection information, dynamic keys and other parameters to the device through the management channel, and then establishes a secure remote access channel between the device, the communication system and the management system, and after the channel is established, the management system actively monitors the use of the remote access channel, and actively disconnects if the channel has not been used for a long time, so as to ensure the rational use of ports and communication resources and ensure the stable operation of the system. In this way, the performance problem of the above-mentioned communication resource utilization can be solved, and the risk of data security caused by the leakage of static keys can be reduced.
[0035] Based on this, the following Figures 1 to 6 , the information transmission method provided in the embodiment of the present application is described in detail through specific embodiments and their application scenarios.
[0036] First, combine Figure 1 An information transmission system provided in an embodiment of the present application is described in detail.
[0037] Figure 1 A schematic diagram of the structure of an information transmission system provided in an embodiment of the present application.
[0038] like Figure 1 As shown, the information transmission system provided in the embodiment of the present application may include a communication system and a management system. Based on this, the information transmission system in the embodiment of the present application is described in detail below in combination with the aforementioned two systems, the first client (which can be understood as a requesting client) and the second client (which can be understood as an accessing client).
[0039] Among them, the information transmission system, the first client and the second client in the embodiment of the present application may include the following information.
[0040] 1) IP address of the communication system: IP_tra
[0041] 2) The session port of the communication system is the first session port: Port_tra_tun
[0042] 3) Through the system's bridge port: Port_tra_bri_0
[0043] 4) IP address of the second client's device: IP_dev
[0044] 5) The session port of the second client device, i.e., the second session port: Port_dev_tun_0
[0045] 6) The port of the remote service A of the second client is the service port: Port_dev_srv_A
[0046] Based on this, the information transmission system and the first client and the second client can perform the following process, which is specifically shown below.
[0047] The first client may initiate a request to the management system to remotely access the remote service A of the second client.
[0048] The management system randomly generates a first session identifier (Identity document, ID), a first session identity authentication key Ka, and a session encryption communication key Ke for this remote access session connection.
[0049] The management system sends the session ID and session identity authentication key Ka to the communication system through the HTTPS interface of the communication system.
[0050] The management system sends an instruction to establish a remote access connection to the device of the second client through the Message Queuing Telemetry Transport (MQTTS) management channel. The instruction carries information such as the first session ID, the first session identity authentication key Ka, the session encryption communication key Ke, the communication system session port address IP_tra:Port_tra_tun, and the service port Port_dev_srv_A.
[0051] After receiving the instruction, the device of the second client generates a random string P and calculates its hash value H, and encrypts the random string with the session identity authentication key Ka to obtain its ciphertext C.
[0052] The second client initiates a second session connection request to the communication system session port address IP_tra:Port_tra_tun through the second session port address IP_dev:Port_dev_tun_0. The second session connection request carries second session connection information. The second session connection information carries the second session ID, the second hash value H of the second random string, and the random string ciphertext C.
[0053] The communication system receives a second session connection request from the device, extracts the second session ID and finds the session identity authentication key Ka associated with it locally, decrypts the random string ciphertext C to obtain the plaintext P' and calculates its hash value H', verifies whether the hash value H' is equal to the received random string hash value H to verify the legitimacy of the identity of the device initiating the session. If it is not legitimate, it will be disconnected directly.
[0054] After the legitimacy verification is passed, the communication system maps the device-side session port address IP_dev:Port_dev_tun_0 to a bridge port Port_tra_bri_0 of the communication system, establishes the first forwarding channel of the communication system, and returns a connection success response and the bridge port Port_tra_bri_0 to the device of the second client.
[0055] After receiving the connection success return information, the device of the second client maps the service port Port_dev_srv_A to the second session port Port_dev_tun_0 on the device side, establishes a device forwarding channel, and then returns the bridge port Port_tra_bri_0 to the management system through the MQTTS management channel.
[0056] After receiving the bridge port Port_tra_bri_0 returned by the device of the second client, the management system initiates a request data to the communication system bridge port address IP_tra:Port_tra_bri_0, accesses the remote local service A of the device of the second client, and encrypts the request data using the session encryption communication key Ke.
[0057] After receiving the request data from the management system, the communication system forwards the data to the device side session port address IP_dev:Port_dev_tun_0 according to the port mapping relationship.
[0058] After receiving the request data forwarded from the communication system, the device uses the session encryption communication key Ke to decrypt the request data and forwards the data to the port Port_dev_srv_A of the local service A according to the port mapping relationship.
[0059] The device uses the session encryption communication key Ke to encrypt and return the response data of local service A to the communication system.
[0060] After receiving the response data, the communication system forwards it to the management system.
[0061] After receiving the response data, the management system uses the session encryption communication key Ke to decrypt the response data and returns it to the first session port.
[0062] At this point, the establishment of the local second forwarding channel of the device and the entire process of a data request / response are completed.
[0063] Therefore, in the communication process provided by the embodiment of the present application, the device, communication system, and management system all hold the dynamically generated identity authentication key Ka bound to the connection channel of this remote access session. The device and management system also hold the dynamically generated data communication encryption and decryption key Ke, which can ensure the legitimacy of the device and local service identity participating in this remote access session, while ensuring the security of communication, preventing middlemen from eavesdropping or tampering with the content of communication data, and reducing the risk of key theft from the time dimension.
[0064] Also, after the local second forwarding channel connection of the device is established, the management system monitors the data packet sending and receiving volume in the remote access session connection channel in real time, identifies the volume of abnormal data packets, and comprehensively analyzes and determines the resource utilization and robustness of the session connection channel. If the channel has not been used for a long time, or the frequency of abnormal data packets is high, the management system will send a command to end the communication and enter the local second forwarding channel recycling process of the device. In addition, by implanting a unified secure communication agent program to shield the differences between different types and models of devices, the agent program can use the same set of processes to communicate with different devices that have completed the adaptation after completing the device adaptation.
[0065] It should be noted that the information transmission method provided in the embodiment of the present application can be applied to the management system controlling the device to establish a remote access channel by connecting to the communication system, so as to realize the ability of the local service of the device to be remotely accessible, which can be extended to application scenarios such as access to files in the device, configuration modification, and external system transfer of the device. In addition, the embodiment of the present application can manage a variety of different types of devices in a one-stop manner based on the on-demand connection and secure communication method of the platform's devices, provide data acquisition and remote access to local services, effectively transcend the differences in device types and platforms, and fully support various functions of the device. Secondly, combined with Figure 2 An information transmission method provided in an embodiment of the present application is described in detail.
[0066] Figure 2 A flowchart of an information transmission method provided in an embodiment of the present application.
[0067] like Figure 2 As shown, the information transmission method provided in the embodiment of the present application can be applied to Figure 1 The information transmission system shown in the figure may include a management system and a communication system. Based on this, the information transmission method may include the following steps:
[0068] Step 210, receiving a first remote access request sent by a first client, the first remote access request is used to request access to a remote service in a second client; Step 220, in the case where it is determined that the information transmission system is connected to the second client through a management channel between the management system and the second client, based on the first remote access request, establishing a first forwarding channel between a first session port and a bridge port, the first session port is a session port between the communication system and the second client in the information transmission system, and the bridge port is a port for communication between the communication system and the management system in the information transmission system; Step 230, sending a first instruction to the second client through the first session port, the first instruction carries channel information of the first forwarding channel, the first instruction is used to instruct the second client to establish a second forwarding channel between the second session port and the service port of the remote service based on the channel information, the second session port is a session port between the communication system and the second client in the second client, and the first forwarding channel and the second forwarding channel are disconnectable channels; Step 240, in the case where response information corresponding to the remote service sent by the second client is received through the first session port, sending a remote connection instruction to the first client, the response information is obtained by the second client through the second forwarding channel, the remote connection instruction carries information related to the response information, and the remote connection instruction is used to instruct the first client to display information related to the response information.
[0069] In this way, a management system and a communication system are introduced, and the P2P negotiation server in the existing solution is abandoned. After the second client is started, a management channel can be established between the management system and the second client. In this way, when the first remote access request sent by the first client is received and it is determined that the information transmission system is connected to the second client, a first forwarding channel is established in the information transmission system and a second forwarding channel is established on the second client. Then, a remote access channel is established between the first client, the second client, the management system and the communication system through the first forwarding channel and the second forwarding channel. Since the first forwarding channel and the second forwarding channel are disconnectable channels, the two forwarding channels can be controlled to actively disconnect according to the actual communication situation of the two clients. While ensuring information communication between the first client and the second client, the rational use of ports and communication resources is guaranteed, the performance of the transmission system is improved, and the stable operation of the information transmission system is ensured.
[0070] In the embodiment of the present application, an agent program can be installed on the device of the first client, the device of the second client, and the client for secure communication with the management system and the communication system, and agent program versions compatible with the software and hardware of different IoT devices can be adapted and implanted into the devices, aiming to solve the problem of resource waste in the communication process and reduce the risks of counterfeit devices accessing the communication system, communication data leakage, and illegal tampering.
[0071] Based on this, the present application is an application embodiment including three steps of establishing a device management channel, establishing a device remote access channel, and recovering a device remote access channel, as shown below.
[0072] The above steps are described in detail below, as shown below.
[0073] First, involving step 220, in some embodiments of the present application, before establishing a first forwarding channel between the first session port and the bridge port based on the first remote access request, a process of establishing a management channel may also be included. Based on this, before step 220, the information transmission method provided in the embodiment of the present application may also include steps 2501 to 2503.
[0074] Step 2501: Generate first service access device authentication information according to first identity information of a registered client.
[0075] Step 2502, when receiving a connection request sent by the second client, where the connection request carries authentication information of the second service access device, the second service access device authentication information is verified according to the first service access device authentication information to obtain an information verification result, and the second service access device authentication information is determined by the second identity information of the second client.
[0076] Step 2503: When the information verification result indicates that the authentication information of the second service access device has been verified successfully, a management channel is established between the management system and the second client.
[0077] For example, Figure 3 As shown, after the second client device is turned on, the agent program is started, and the program automatically connects to the management system using the MQTTS protocol to complete (access) the establishment of the management channel between the device and the management system. Among them, the specific implementation process of establishing the management channel is as follows: register the device ID (MAC address) in the management system, generate the MQTTS service access device authentication information according to a specific encryption algorithm, and submit it to the MQTTS service inside the management system; the device starts the agent program, generates the MQTTS service access device authentication information according to the same method as above, and initiates authentication and connection requests to the MQTTS service; the MQTTS service performs authentication comparison through the device ID and the MQTTS service access device authentication information. If the authentication information is inconsistent, the relevant error information is returned and the connection is rejected. Otherwise, the MQTTS service accepts the device connection and establishes a management channel, and pushes the device online message to the device management service inside the management system. At this point, the device management channel is established, and the management command issuance and response channels between the device and the management system are opened.
[0078] Therefore, the device connection protocol based on the MQTTS protocol is simple, easy to implement and more stable, and the connection status of the device can be viewed in real time.
[0079] In some embodiments of the present application, the following steps can be used to determine whether the information transmission system is connected to the second client. Based on this, before step 120, the information transmission method provided in the application embodiment can also include steps 2601 to 2604.
[0080] Step 2601: Generate first session connection information based on a first remote access request, where the first session connection information includes a first session identifier and a first session identity authentication key.
[0081] Step 2602: Send an authentication instruction to the second client through the management channel. The authentication instruction carries the first session connection information and the first port information of the first session port. The authentication instruction is used to instruct the second client to generate the second session connection information based on the first session connection information and the first port information.
[0082] Step 2603: When receiving the second session connection information sent by the first client based on the first port information through the first session port, authenticate the identity of the second client according to the second session connection information and generate an identity authentication result.
[0083] Step 2604: When the identity authentication result indicates that the identity authentication of the second client is passed, determine that the information transmission system is connected to the second client.
[0084] Specifically, the second session connection information in the embodiment of the present application includes a second session identifier, a first hash value and a random string ciphertext, the first hash value is a hash value corresponding to a first random string generated by the second client based on a remote access connection instruction, and the random string ciphertext is the first random string encrypted with a first session identity authentication key. Based on this, the above step 2603 can specifically include steps 26031 to 26034.
[0085] Step 26031: Based on the second session identifier, obtain a second session identity authentication key corresponding to the second session identifier.
[0086] Step 26032: Decrypt the random string ciphertext using the second session identity authentication key to obtain a second random string.
[0087] Step 26033: Based on the second random string, calculate a second hash value corresponding to the second random string.
[0088] Step 26034, generating an identity authentication result based on the matching result of the first hash value and the second hash value.
[0089] Further, the identity authentication result in the embodiment of the present application includes a first identity authentication result or a second identity authentication result, the first identity authentication result indicates that the second client passes the identity authentication, and the second identity authentication result indicates that the second client fails the identity authentication. Based on this, step 26034 may specifically include:
[0090] In the event that the first hash value and the second hash value match, a first identity authentication result is generated.
[0091] For example, Figure 4 As shown, if it is the first identity authentication result, the step of determining that the information transmission system is connected to the second client can be executed.
[0092] In the event that the first hash value and the second hash value do not match, a second identity authentication result is generated.
[0093] For example, Figure 5 As shown, after the second identity authentication result is generated, the failure reason, that is, identity authentication failure, can be sent to the device of the first client to prompt the user to request again.
[0094] Based on this, step 220 may specifically include step 2201 and step 2202 .
[0095] Step 2201: Based on the first remote access request, obtain third port information of a second session port corresponding to the first session port in the second client.
[0096] Step 2202: Map the third port information to the bridge port to establish a first forwarding channel.
[0097] Therefore, equipment connections are established on demand, and the communication system and management system are equipped with channel monitoring and analysis and judgment programs. If it is not used for a long time, the system will send a disconnect command to the device to disconnect the relevant connections and recycle resources in time, thereby improving the effective utilization rate of system resources.
[0098] Furthermore, involving step 230, in some embodiments of the present application, a local second forwarding channel of the device is established, that is, a second forwarding channel is established. After the device of the first client initiates a request for remote access to the device of the second client through the management system, the management system sends instructions and related parameters for connecting to the communication system to the device through the management channel. After receiving the instruction, the device of the second client parses the instruction content and establishes a remote access connection channel with the corresponding communication system. After the connection is established, the communication system returns access information to the device, and the device reports the access information to the management system through the management channel. The management system opens a remote access link that indirectly accesses the local service of the device through the communication system based on the access information, thereby realizing the user's remote access to the local service of the device.
[0099] Then, referring to step 240, in some embodiments of the present application, the channel information of the first forwarding channel includes the fourth port information of the bridge port; the first session connection information includes the session encryption communication key. Based on this, before step 240, the information transmission method may also include steps 2701 to 2704.
[0100] Step 2701: receiving feedback information corresponding to the first instruction sent by the second client through the management channel, the feedback information including the fourth port information of the bridge port, and the feedback information is used to indicate that the second client has established a second forwarding channel.
[0101] Step 2702: Generate access request information for accessing the remote service based on the feedback information.
[0102] Step 2703, encrypt the access request information using the session encryption communication key to obtain encrypted request information.
[0103] Step 2704: According to the first forwarding channel, a second remote access request is sent to the second session interface of the second client. The second remote access request carries encrypted request information. The second remote access request is used to request the second client to obtain original response information corresponding to the remote service from the service port based on the second forwarding channel, and encrypt the original response information through the session encryption communication key to obtain response information.
[0104] Therefore, the communication channel uses dynamic keys to achieve communication identity authentication and communication data encryption and decryption, reducing the security risks caused by key leakage.
[0105] Based on this, the information related to the response information includes the original response information. The step 240 may specifically include steps 2401 to 2403.
[0106] Step 2401: when response information corresponding to a remote service sent by a second client is received through a first session port, the response information is decrypted using a session encryption communication key to obtain original response information.
[0107] Step 2402, generating a remote connection instruction based on the original response information.
[0108] Step 2403: Send a remote connection instruction to the first client.
[0109] The local second forwarding channel of the recycling device is divided into two situations: the user actively controls the recycling and the management system automatically controls the recycling, which are explained below respectively.
[0110] In some embodiments provided in the present application, the information transmission method in the embodiments of the present application may further include step 2801.
[0111] Step 2801: disconnect the first forwarding channel through the management channel and send a disconnection instruction to the second client, where the disconnection instruction is used to instruct the second client to disconnect the second forwarding channel.
[0112] For example, Figure 6 As shown, the user actively reclaims the remote access connection channel. When the user completes the device access, the user can initiate the active end of the communication process and release the access connection channel and related resources through the management system operation (disconnect / close the browser, etc.). The management system sends a command to disconnect the local service remote access session connection channel to the device through the management channel. The device executes the command to disconnect the session connection with the communication system, releases the mapping relationship between the session port and the local service, and the dynamic key bound to the session, and returns the command response result to the management system through the management channel. The management system sends a command to disconnect the device local service remote access connection channel to the communication system. The communication system executes the command, releases the internal port mapping relationship and the dynamic key bound to the connection channel, reclaims the port resources, cleans up the buffered data, and returns the command response result to the management system after completion. After the management system completes the above two processing results, it releases the relevant resources and dynamic keys for maintaining the device local service remote access connection channel.
[0113] In some other embodiments provided in the present application, further, before step 2801, the information transmission method may also include step 2802 and step 2803.
[0114] Step 2802: Acquire transmission data of the management channel between the management system and the second client, where the transmission data includes at least one of the following: connection duration of the management channel and frequency of abnormal data packets.
[0115] Step 2803: When the transmission data meets the preset conditions, the first forwarding channel is disconnected through the management channel and a connection disconnection instruction is sent to the second client.
[0116] For example, Figure 6 As shown, the management system automatically reclaims the remote access connection channel. When the management system analyzes and identifies that the remote access connection channel has not been used for a long time or the frequency of abnormal data packets is high, it actively initiates a request to disconnect the remote access connection channel to the device and communication system. Its processing process is consistent with the process of initiating the active termination of the communication process and releasing the access connection channel and related resources when the user actively reclaims the remote access connection channel.
[0117] Therefore, the device connection and secure access method described can achieve unified connection and unified access of all connected devices after device adaptation and system compatibility processing, and has its own device identity authentication and secure communication capabilities to ensure that the device communication data is legal and valid.
[0118] In this way, the embodiment of the present application can provide a method for device communication and external access to local services, introduce a lightweight, easy-to-implement, simple and open MQTTS communication protocol for device connection, and provide a solution for timely resource recovery on demand, aiming to maximize the use of limited resources to provide high-quality services and ensure communication security. A terminal device local service remote access connection establishment and secure communication method: after the device receives the local service remote access connection instruction, it establishes a secure connection with the corresponding communication system according to the instruction parameters. After the connection is successful, the acquired connection information is reported to the management system. The management system automatically opens the corresponding connection information to realize the remote access of the device local service. During the communication process, the dynamic key bound to the connection session is used to realize communication identity authentication and communication data encryption and decryption; a low-energy consumption and high-stability device connection method: during the idle period of the device local service business, there is no need to establish a persistent business long connection with the access side, and the lightweight MQTTS protocol is used to keep the device online and maintain the communication channel; a method of using communication monitoring and efficient use of IT resources: the device remote access channel is only connected when the user needs to use it. After the connection is established, the communication system continuously monitors and reports, and the management system continuously analyzes the communication situation. When there is no communication service for a long time or the communication abnormality rate is too high, recycle resources in time.
[0119] It should be noted that the example described in the embodiments of the present application is only one application scenario in the present application, not all examples. Based on the examples in the present application, all other examples obtained by technical personnel in this field without making any creative work are within the scope of protection of the present application.
[0120] The information transmission method provided in the embodiment of the present application can be executed by an information transmission device. In the embodiment of the present application, the information transmission device executing information transmission is taken as an example to illustrate the device of the information transmission method provided in the embodiment of the present application.
[0121] Based on the same inventive concept, the present application also provides an information transmission device. Figure 7 Provide detailed explanation.
[0122] Figure 7 A schematic diagram of the structure of an information transmission device provided in an embodiment of the present application.
[0123] like Figure 7 As shown, the information transmission device 70 can be applied to an information transmission system, the information transmission system includes a management system and a communication system, and the information transmission device 70 can specifically include:
[0124] A receiving module 701 is used to receive a first remote access request sent by a first client, where the first remote access request is used to request access to a remote service in a second client;
[0125] Establishing module 702, used for establishing a first forwarding channel between a first session port and a bridge port based on a first remote access request when it is determined that the information transmission system is connected to the second client through a management channel between the management system and the second client, the first session port being a session port between the communication system in the information transmission system and the second client, and the bridge port being a port for communication between the communication system and the management system in the information transmission system;
[0126] The transceiver module 703 is used to send a first instruction to the second client through the first session port, where the first instruction carries channel information of the first forwarding channel, and the first instruction is used to instruct the second client to establish a second forwarding channel between the second session port and the service port of the remote service based on the channel information, where the second session port is a session port between the communication system in the second client and the second client, and the first forwarding channel and the second forwarding channel are disconnectable channels;
[0127] The transceiver module 703 is also used to send a remote connection instruction to the first client when response information corresponding to the remote service is received from the second client through the first session port. The response information is obtained by the second client through the second forwarding channel. The remote connection instruction carries information related to the response information. The remote connection instruction is used to instruct the first client to display information related to the response information.
[0128] The information transmission device 70 in the embodiment of the present application is described in detail below, as shown below.
[0129] In some embodiments of the present application, the information transmission device 70 may further include a generation module and a verification module; wherein,
[0130] A generating module, configured to generate first service access device authentication information according to first identity information of a registered client;
[0131] a verification module, configured to verify the second service access device authentication information according to the first service access device authentication information when receiving a connection request sent by the second client, where the connection request carries the second service access device authentication information, and obtain an information verification result, where the second service access device authentication information is determined by the second identity information of the second client;
[0132] The establishing module 702 may also be used to establish a management channel between the management system and the second client when the information verification result indicates that the authentication information of the second service access device has been verified successfully.
[0133] In some embodiments of the present application, the information transmission device 70 may further include a generation module and a determination module; wherein,
[0134] A generating module, configured to generate first session connection information based on the first remote access request, wherein the first session connection information includes a first session identifier and a first session identity authentication key;
[0135] The transceiver module 703 may also be used to send an authentication instruction to the second client through the management channel, where the authentication instruction carries the first session connection information and the first port information of the first session port, and the authentication instruction is used to instruct the second client to generate the second session connection information based on the first session connection information and the first port information;
[0136] The transceiver module 703 may also be configured to, when receiving second session connection information sent by the first client based on the first port information through the first session port, authenticate the identity of the second client according to the second session connection information and generate an identity authentication result;
[0137] The determination module is used to determine that the information transmission system is connected to the second client when the identity authentication result indicates that the identity authentication of the second client is passed.
[0138] In some embodiments of the present application, the information transmission device 70 may further include an acquisition module, a decryption module, a calculation module and a generation module; wherein,
[0139] An acquisition module, configured to acquire, based on the second session identifier, a second session identity authentication key corresponding to the second session identifier, when the second session connection information includes a second session identifier, a first hash value, and a random string ciphertext, the first hash value being a hash value corresponding to a first random string generated by the second client based on a remote access connection instruction, and the random string ciphertext being the first random string encrypted with a first session identity authentication key;
[0140] A decryption module, used to decrypt the random character string ciphertext by using the second session identity authentication key to obtain a second random character string;
[0141] A calculation module, configured to calculate a second Hash value corresponding to the second random string based on the second random string;
[0142] The generating module is used to generate an identity authentication result based on the matching result of the first hash value and the second hash value.
[0143] In some embodiments of the present application, the generation module can be specifically used to, when the identity authentication result includes a first identity authentication result or a second identity authentication result, the first identity authentication result indicates that the second client has passed the identity authentication, and the second identity authentication result indicates that the second client has not passed the identity authentication, and when the first hash value and the second hash value match, generate the first identity authentication result; when the first hash value and the second hash value do not match, generate the second identity authentication result.
[0144] In some embodiments of the present application, the information transmission device 70 may further include an acquisition module for acquiring, based on the first remote access request, third port information of a second session port corresponding to the first session port in the second client;
[0145] The establishing module 702 may also be used to map the third port information to the bridge port to establish a first forwarding channel.
[0146] In some embodiments of the present application, the information transmission device 70 may further include a generation module and an encryption module; wherein,
[0147] The receiving module 701 may also be used to, when the channel information of the first forwarding channel includes the fourth port information of the bridge port; and the first session connection information includes the session encryption communication key, receive feedback information corresponding to the first instruction sent by the second client through the management channel, the feedback information includes the fourth port information of the bridge port, and the feedback information is used to indicate that the second client has established the second forwarding channel;
[0148] A generation module, used for generating access request information for accessing a remote service based on the feedback information;
[0149] An encryption module, used for encrypting the access request information by using a session encryption communication key to obtain encrypted request information;
[0150] The transceiver module 703 can also be used to send a second remote access request to the second session interface of the second client according to the first forwarding channel, the second remote access request carries encrypted request information, and the second remote access request is used to request the second client to obtain the original response information corresponding to the remote service from the service port based on the second forwarding channel, and encrypt the original response information through the session encryption communication key to obtain the response information.
[0151] In some embodiments of the present application, the information transmission device 70 may further include a decryption module and a generation module; wherein,
[0152] a decryption module, configured to, when the information related to the response information includes the original response information, decrypt the response information by using the session encryption communication key to obtain the original response information when the response information corresponding to the remote service sent by the second client is received through the first session port;
[0153] A generation module, used for generating a remote connection instruction based on the original response information;
[0154] The transceiver module 703 may also be used to send a remote connection instruction to the first client.
[0155] In some embodiments of the present application, the information transmission device 70 may further include a disconnection module, which is used to disconnect the first forwarding channel through a management channel and send a connection disconnection instruction to the second client, wherein the connection disconnection instruction is used to instruct the second client to disconnect the second forwarding channel.
[0156] In some embodiments of the present application, the information transmission device 70 may further include an acquisition module and a disconnection module; wherein,
[0157] An acquisition module, used to acquire transmission data of a management channel between the management system and the second client, the transmission data including at least one of the following: connection duration of the management channel and frequency of abnormal data packets;
[0158] The disconnection module is used to disconnect the first forwarding channel and send a connection disconnection instruction to the second client through the management channel when the transmission data meets the preset conditions.
[0159] The information transmission device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0160] The information transmission device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0161] The device coordination device provided in the embodiment of the present application can achieve Figures 1 to 6 The various processes implemented in the information transmission method embodiment shown achieve the same technical effect, and to avoid repetition, they will not be described here.
[0162] Based on this, the information transmission device provided in the embodiment of the present application can be used to receive a first remote access request sent by a first client, where the first remote access request is used to request access to a remote service in a second client; when the information transmission system is determined to be connected to the second client through a management channel between the management system and the second client, a first forwarding channel between a first session port and a bridge port is established based on the first remote access request, where the first session port is a session port between a communication system and the second client in the information transmission system, and the bridge port is a port for communication between the communication system and the management system in the information transmission system; then, a first instruction is sent to the second client through the first session port, where the first instruction carries channel information of the first forwarding channel, and the first instruction is used to instruct the second client to establish a second forwarding channel between the second session port and the service port of the remote service based on the channel information, and the second session port is a session port between the communication system in the second client and the second client; when response information corresponding to the remote service is received from the second client through the first session port, a remote connection instruction is sent to the first client, where the response information is obtained by the second client through the second forwarding channel, the remote connection instruction carries information related to the response information, and the remote connection instruction is used to instruct the first client to display information related to the response information. In this way, a management system and a communication system are introduced, and the P2P negotiation server in the existing solution is abandoned. After the second client is started, a management channel can be established between the management system and the second client. In this way, when the first remote access request sent by the first client is received and it is determined that the information transmission system is connected to the second client, a first forwarding channel is established in the information transmission system and a second forwarding channel is established on the second client. Then, a remote access channel is established between the first client, the second client, the management system and the communication system through the first forwarding channel and the second forwarding channel. Since the first forwarding channel and the second forwarding channel are disconnectable channels, the two forwarding channels can be controlled to actively disconnect according to the actual communication situation of the two clients. While ensuring information communication between the first client and the second client, the rational use of ports and communication resources is guaranteed, the performance of the transmission system is improved, and the stable operation of the information transmission system is ensured.
[0163] Optional, such as Figure 8 As shown, an embodiment of the present application also provides an electronic device 80, including a processor 801 and a memory 802, wherein the memory 802 stores programs or instructions that can be executed on the processor 801, and when the program or instructions are executed by the processor 801, the various steps of the above-mentioned information transmission method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.
[0164] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices. Among them, the electronic devices can be the above-mentioned rescuer equipment, the equipment of the person in distress and the equipment where the information transmission system is located.
[0165] Fig. 9 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
[0166] The electronic device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a processor 910 and other components.
[0167] Those skilled in the art will appreciate that the electronic device 900 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 910 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0168] It should be understood that the input unit 904 may include a graphics processing unit (GPU) 9041 and a microphone 9042, and the graphics processor 9041 processes the image data of the static image or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 906 may include a display panel, and the display panel may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and at least one of other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch display. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as a volume display button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0169] The memory 909 can be used to store software programs and various data. The memory 909 can mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area can store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 909 can include a volatile memory or a non-volatile memory, or the memory 909 can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 909 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0170] The processor 910 may include one or more processing units; optionally, the processor 910 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless display signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 910.
[0171] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned information transmission method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0172] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0173] In addition, an embodiment of the present application further provides a chip, which includes a processor and a display interface, the display interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned information transmission method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0174] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0175] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned information transmission method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0176] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0177] In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
[0178] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a distress device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0179] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An information transmission method, characterized in that: Applied to an information transmission system, the information transmission system includes a management system and a communication system, including: Receiving a first remote access request sent by a first client, where the first remote access request is used to request access to a remote service in a second client; In the case where it is determined that the information transmission system is connected to the second client through the management channel between the management system and the second client, a first forwarding channel between a first session port and a bridge port is established based on the first remote access request, the first session port being a session port between the communication system in the information transmission system and the second client, and the bridge port being a port for communication between the communication system in the information transmission system and the management system; Sending a first instruction to the second client through the first session port, the first instruction carrying channel information of the first forwarding channel, the first instruction being used to instruct the second client to establish a second forwarding channel between the second session port and the service port of the remote service based on the channel information, the second session port being a session port between the communication system in the second client and the second client, and the first forwarding channel and the second forwarding channel being disconnectable channels; In a case where response information corresponding to the remote service is received from the second client through the first session port, a remote connection instruction is sent to the first client, the response information is obtained by the second client through the second forwarding channel, the remote connection instruction carries information related to the response information, and the remote connection instruction is used to instruct the first client to display information related to the response information.
2. The method according to claim 1, characterized in that Before establishing a first forwarding channel between the first session port and the bridge port based on the first remote access request, the method further includes: Generate first service access device authentication information according to the first identity information of the registered client; When receiving a connection request sent by the second client, where the connection request carries authentication information of a second service access device, verifying the authentication information of the second service access device according to the authentication information of the first service access device to obtain an information verification result, where the authentication information of the second service access device is determined by the second identity information of the second client; When the information verification result indicates that the authentication information of the second service access device has been verified successfully, a management channel is established between the management system and the second client.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: Based on the first remote access request, generate first session connection information, the first session connection information including a first session identifier and a first session identity authentication key; sending an authentication instruction to the second client through the management channel, the authentication instruction carrying the first session connection information and the first port information of the first session port, the authentication instruction being used to instruct the second client to generate second session connection information based on the first session connection information and the first port information; In a case where second session connection information sent by the first client based on the first port information is received through the first session port, identity verification of the second client according to the second session connection information to generate an identity verification result; When the identity authentication result indicates that the identity authentication of the second client is passed, it is determined that the information transmission system is connected to the second client.
4. The method according to claim 3, characterized in that The second session connection information includes a second session identifier, a first Hash value, and a random string ciphertext, wherein the first Hash value is a Hash value corresponding to a first random string generated by the second client based on the remote access connection instruction, and the random string ciphertext is the first random string encrypted by the first session identity authentication key; The step of authenticating the second client according to the second session connection information and generating an authentication result includes: Based on the second session identifier, obtaining a second session identity authentication key corresponding to the second session identifier; Decrypting the random character string ciphertext using the second session identity authentication key to obtain a second random character string; Based on the second random string, calculating a second hash value corresponding to the second random string; Based on the matching result of the first hash value and the second hash value, an identity authentication result is generated.
5. The method according to claim 4, characterized in that The identity authentication result includes a first identity authentication result or a second identity authentication result, the first identity authentication result indicates that the second client passes the identity authentication, and the second identity authentication result indicates that the second client fails the identity authentication; The generating an identity authentication result based on the matching result of the first Hash value and the second Hash value includes: When the first Hash value and the second Hash value match, obtaining the first identity authentication result; In the event that the first Hash value and the second Hash value do not match, the second identity authentication result is obtained.
6. The method according to claim 1, characterized in that The establishing a first forwarding channel between the first session port and the bridge port based on the first remote access request includes: Based on the first remote access request, obtaining third port information of a second session port corresponding to the first session port in the second client; The third port information is mapped to the bridge port to establish the first forwarding channel.
7. The method according to claim 3, characterized in that The channel information of the first forwarding channel includes the fourth port information of the bridge port; the first session connection information includes a session encryption communication key; In the case where the response information corresponding to the remote service sent by the second client is received through the first session port, before sending the remote connection instruction to the first client, the method further includes: receiving, through the management channel, feedback information corresponding to the first instruction and sent by the second client, the feedback information including fourth port information of the bridge port, and the feedback information being used to indicate that the second client has established the second forwarding channel; Based on the feedback information, generating access request information for accessing the remote service; Encrypting the access request information by using the session encryption communication key to obtain encrypted request information; A second remote access request is sent to a second session interface of the second client according to the first forwarding channel, where the second remote access request carries the encrypted request information, and the second remote access request is used to request the second client to obtain original response information corresponding to the remote service from the service port based on the second forwarding channel, and to encrypt the original response information by using the session encryption communication key to obtain the response information.
8. The method according to claim 7, characterized in that The information related to the response information includes the original response information; The step of sending a remote connection instruction to the first client upon receiving response information corresponding to the remote service sent by the second client through the first session port comprises: In the case of receiving response information corresponding to the remote service sent by the second client through the first session port, decrypting the response information by using the session encryption communication key to obtain the original response information; Based on the original response information, generate the remote connection instruction; Send a remote connection instruction to the first client.
9. The method according to claim 1, characterized in that: The method further comprises: Through the management channel, the first forwarding channel is disconnected and a connection disconnection instruction is sent to the second client, where the connection disconnection instruction is used to instruct the second client to disconnect the second forwarding channel.
10. The method according to claim 9, characterized in that Before disconnecting the first forwarding channel through the management channel and sending a disconnection instruction to the second client, the method further includes: Acquire transmission data of a management channel between the management system and the second client, the transmission data comprising at least one of the following: connection duration and abnormal data packet frequency of the management channel; When the transmission data meets a preset condition, the first forwarding channel is disconnected through the management channel and a connection disconnection instruction is sent to the second client.
11. An information transmission device, characterized in that: Applied to an information transmission system, the information transmission system includes a management system and a communication system, including: A receiving module, configured to receive a first remote access request sent by a first client, wherein the first remote access request is used to request access to a remote service in a second client; an establishing module, configured to establish a first forwarding channel between a first session port and a bridge port based on the first remote access request, when it is determined that the information transmission system is connected to the second client through a management channel between the management system and the second client, wherein the first session port is a session port between the communication system in the information transmission system and the second client, and the bridge port is a port for communication between the communication system in the information transmission system and the management system; a transceiver module, configured to send a first instruction to the second client through the first session port, wherein the first instruction carries channel information of the first forwarding channel, and the first instruction is used to instruct the second client to establish a second forwarding channel between the second session port and the service port of the remote service based on the channel information, wherein the second session port is a session port between the communication system in the second client and the second client, and the first forwarding channel and the second forwarding channel are disconnectable channels; The transceiver module is also used to send a remote connection instruction to the first client when response information corresponding to the remote service is received from the second client through the first session port, the response information is obtained by the second client through the second forwarding channel, the remote connection instruction carries information related to the response information, and the remote connection instruction is used to instruct the first client to display information related to the response information.
12. A computer device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the information transmission method according to any one of claims 1 to 10 is implemented.
13. A computer program product, characterized in that The program product is stored in a non-transitory storage medium, and the program product is executed by at least one processor to implement the steps of the information transmission method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Device management client and server, and device management methods
CN106411580A
method for realizing automatic access and roll-out of EOS node by accessing TCD cluster
CN109600263A
Sharing resources between client devices in virtual workspace environment
CN114342341A
Method and system for end user initiated access server authenticity check
CN114726621A
Multi-mode wireless communication devices and systems for prepaid communication services
US20080076385A1
