Remote control method and system based on network communication
Through the combined structure of the client, intermediate and server, and redundant data processing, combined with asymmetric encryption, the problem of low information leakage and transmission efficiency in remote control technology is solved, and an efficient and secure remote control method is realized.
Patent Information
- Application Number
- CN202411284487.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-12-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing remote control technology, the encryption method of control commands is insufficient, which can easily lead to information leakage, and the secondary encryption transmission leads to slow command response speed and low transmission efficiency.
Adopt a combination structure of client, intermediate and server. Through the random generation, random insertion and removal of redundant data, combined with asymmetric encryption, the SSH protocol framework structure is used to realize the encrypted transmission and redundant redundancy of redundant data to ensure data Security and transmission efficiency.
It improves the data security and transmission efficiency of remote control, avoids security problems caused by direct information transmission in single-line, and ensures the speed and accuracy of control response.
Smart Images

Figure CN119135415A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network communication remote control, and in particular to a remote control method and system based on network communication. Background Art
[0002] At present, with the development of networking and intelligence, remote control has become a standard configuration for most devices. The client sends the required control instructions to the server, and the server sends the corresponding control commands to the device according to the control information, thereby realizing remote control. At present, during the remote control process, the control commands are encrypted using AES encryption, but the security level is not high, and data can be easily intercepted, resulting in information leakage.
[0003] In response to the above problems, the patent website application number 202111105880.5 discloses a remote control method, system and storage medium based on network communication. By adding random numbers to the node information and transmitting it through secondary encryption, the security of the node control information is ensured. When performing encrypted transmission, this method needs to perform multiple transmissions between the two ports and encrypt them, which makes the command response speed slow during the control process, and reduces the transmission efficiency. Therefore, the present invention provides a remote control method and system based on network communication to solve the above problems. Summary of the invention
[0004] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.
[0005] To solve the above technical problems, the present invention provides the following technical solutions: a remote control system based on network communication, comprising a client, an intermediate end and a server end, wherein the intermediate end is signal-connected with the client and the server end, and the client and the server end are signal-connected.
[0006] The client includes a control request data sending module, a redundant data removal method receiving module, a first decryption module, a node control information data receiving module, a first decryption module, and a node control information redundant data removal module. The output end of the redundant data removal method receiving module is signal-connected to the first decryption module, the output end of the first decryption module is signal-connected to the node control information data receiving module, and the output end of the node control information data receiving module is signal-connected to the node control information redundant data removal module.
[0007] The intermediate end includes a control request receiving module, a redundant data random generation module, a redundant data random insertion method generation module, a redundant data removal method generation module, an encryption module and a data packet sending module, the output end of the control request receiving module is signal-connected to the redundant data random generation module, the output end of the redundant data random generation module is signal-connected to the redundant data random insertion method generation module and the redundant data removal method generation module, the output ends of the redundant data random insertion method generation module and the redundant data removal method generation module are signal-connected to the encryption module, and the output end of the encryption module is signal-connected to the data packet sending module.
[0008] The service end includes a redundant data random insertion method receiving module, a second decryption module, a redundant data random insertion encryption module and a node control information data packet sending module. The output end of the redundant data random insertion method receiving module is connected to the second decryption module signal, the output end of the second decryption module is connected to the redundant data random insertion encryption module signal, and the output end of the redundant data random insertion encryption module is connected to the node control information data packet sending module signal.
[0009] Preferably, the control request data sending module is used to send control request information to the intermediate end.
[0010] The redundant data removal method receiving module is used to receive redundant data removal method data sent by the intermediate end.
[0011] The first decryption module is used to decrypt the received redundant data removal method data.
[0012] The node control information data receiving module is used to receive a control node information data packet with redundant data added sent by the service end.
[0013] The node control information redundant data removal module is used to remove the redundancy of the received redundant data of the node control information to obtain complete node control information.
[0014] Preferably, the control request receiving module is used to receive control request information sent by the client.
[0015] The redundant data random generation module is used to randomly generate redundant data packets.
[0016] The transformation method is used to generate redundant data, transforming the distribution on the finite interval (a, b) to an arbitrary real number interval (u, v). The corresponding formula is:
[0017]
[0018] And the Box-Muller transformation is adopted, and its transformation formula is:
[0019]
[0020] Among them, X1 and X2 are random variables distributed on the interval (a, b), and the obtained Y1 and Y2 are independent of each other and have an expected value of μ = 0 and a variance of σ 2 =1 is a normally distributed random variable.
[0021] The redundant data random insertion method generation module is used to generate a random insertion encryption method for redundant data packets.
[0022] The redundant data removal method generation module is used to generate a corresponding redundant data removal method corresponding to the redundant data random insertion method generation module.
[0023] The encryption module is used to encrypt redundant data packets, random insertion encryption method and redundant data removal method data packets.
[0024] The data packet sending module is used to send the redundant data packet and the random insertion encryption method data packet to the server, and send the redundant data removal method data packet to the server.
[0025] Preferably, the redundant data random insertion method receiving module is used to receive redundant data packets and random insertion encryption method data packets sent by the intermediate end.
[0026] The second decryption module is used to decrypt the received redundant data packets and randomly inserted encryption method data packets.
[0027] The redundant data is randomly inserted into the encryption module, which is used to randomly insert the redundant data packet data into the node control information to obtain an encrypted node control information data packet.
[0028] The node control information data packet sending module is used to send the node control information data packet inserted with redundant data to the client.
[0029] Preferably, the output end of the control request data sending module is signal-connected to the control request receiving module, the output end of the data packet sending module is signal-connected to the redundant data removal method receiving module and the redundant data random insertion method receiving module, and the output end of the node control information data packet sending module is signal-connected to the node control information data receiving module.
[0030] Preferably, the encryption module adopts an asymmetric encryption method.
[0031] Prepare two very large prime numbers p and q, and convert them into binary. Use string simulation to calculate the product of large prime numbers p and q n = pq. Use the same method to calculate the Euler function m = (p-1)(q-1) of n. Find a number e (1 < e < m) that satisfies gcd (m, e) = 1, that is, e and m are relatively prime. Calculate the inverse element d of e in the modulo m field, that is, satisfy ed mod m = 1. The public key and private key are generated, where (n, e) is the public key and (n, d) is the private key.
[0032] For plaintext x, encrypt x with the public key (n, e) to get the ciphertext y.
[0033] y=x e mod n.
[0035] Preferably, the system adopts an SSH protocol framework structure.
[0036] A remote control method based on network communication comprises the following steps:
[0037] S1. Send control request information to the middle end through the control request data sending module of the client. After the middle end receives the request information through the control request receiving module, a group of random redundant data is generated through the redundant data random generation module, and then a data insertion method is generated for the redundant data through the redundant data random insertion method generation module. At the same time, a corresponding redundant data removal method is generated through the redundant data removal method generation module. Then, the redundant data, the redundant data insertion method and the redundant data removal method are encrypted through the encryption module, and the encrypted redundant data and the redundant data removal method are sent to the client through the data packet sending module, and the redundant data and the redundant data insertion method are sent to the server.
[0038] S2. After the server receives the redundant data and the redundant data insertion method data sent by the intermediate end through the redundant data random insertion method receiving module, it performs decryption operation through the second decryption module, and then inserts the redundant data into the node control information randomly according to the redundant data insertion method through the redundant data random insertion encryption module, generates a group of encrypted node control information groups with redundant data, and sends the encrypted node control information groups with redundant data to the client through the node information data packet sending module.
[0039] S3. The client receives the encrypted redundant data and the redundant data removal method sent by the intermediate end through the redundant data removal method receiving module, and decrypts the data through the first decryption module to obtain the redundant data and the redundant data removal method, receives the encrypted node control information group with redundant data sent by the server end through the node control information data receiving module, and deduplicates the encrypted node control information group with redundant data based on the decrypted redundant data and the redundant data removal method through the node control information redundant data removal module, removes the redundant data in the node control information, and obtains the correct node control information.
[0040] Preferably, in step S1, the redundant data is randomly generated using a classification model random data generation method, firstly establishing a ternary classification model data, and automatically outputting the redundant data according to the number of generated samples, the number of sample features, and the number of redundant features.
[0041] Preferably, in step S1, an asymmetric encryption method is used to encrypt data, and when connecting for the first time, public key transmission is established between the intermediate end and the server end and the client end.
[0042] Beneficial effects of the present invention:
[0043] 1. The remote control method and system based on network communication, through the client, the middle end and the server end, during use, the client sends request information to the middle end, which is then synchronously fed back to the client and the server end through the middle end, so that the server end can directly send control instructions to the client end. If the information is simply intercepted between the client and the server end, no valid data can be obtained, thereby avoiding the security problems caused by the single-line direct information transmission between the client and the server end.
[0044] 2. This remote control method and system based on network communication, through the client, the middle end and the server end, during use, synchronously sends information to the client and the server end through the middle end, so that there is no need to transmit encrypted data multiple times between the client and the server end, which improves the speed at which the server end sends node control information to the client end, thereby improving the transmission efficiency and making the control response faster.
[0045] 3. The remote control method and system based on network communication, through the redundant data random generation module, the redundant data random insertion method generation module and the redundant data removal method module, during use, randomly inserts the randomly generated redundant data into the node control information, making it impossible to brute-force the node control information, thereby improving the security of the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:
[0047] Figure 1 This is a system framework diagram of the present invention;
[0048] Figure 2 This is a schematic diagram of the client framework structure of the present invention;
[0049] Figure 3 This is a schematic diagram of the middle end frame structure of the present invention;
[0050] Figure 4 This is a schematic diagram of the framework structure of the server of the present invention;
[0051] Figure 5 It is a schematic diagram of the process structure of the present invention. DETAILED DESCRIPTION
[0052] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0053] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0054] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0055] Embodiment 1:
[0056] See also Figure 1-4 The present invention provides a technical solution: a remote control system based on network communication, including a client, an intermediate end and a server end, a signal connection between the intermediate end and the client end and the server end, and a signal connection between the client end and the server end.
[0057] The client includes a control request data sending module, a redundant data removal method receiving module, a first decryption module, a node control information data receiving module, a first decryption module, and a node control information redundant data removal module. The output end of the redundant data removal method receiving module is signal-connected to the first decryption module, the output end of the first decryption module is signal-connected to the node control information data receiving module, and the output end of the node control information data receiving module is signal-connected to the node control information redundant data removal module.
[0058] The middle end includes a control request receiving module, a redundant data random generation module, a redundant data random insertion method generation module, a redundant data removal method generation module, an encryption module and a data packet sending module. The output end of the control request receiving module is connected to the redundant data random generation module signal, the output end of the redundant data random generation module is connected to the redundant data random insertion method generation module and the redundant data removal method generation module signal, the output end of the redundant data random insertion method generation module and the redundant data removal method generation module are connected to the encryption module signal, and the output end of the encryption module is connected to the data packet sending module signal.
[0059] The server end includes a redundant data random insertion method receiving module, a second decryption module, a redundant data random insertion encryption module and a node control information data packet sending module. The output end of the redundant data random insertion method receiving module is connected to the second decryption module signal, the output end of the second decryption module is connected to the redundant data random insertion encryption module signal, and the output end of the redundant data random insertion encryption module is connected to the node control information data packet sending module signal.
[0060] Furthermore, the control request data sending module is used to send control request information to the intermediate end.
[0061] The redundant data removal method receiving module is used to receive the redundant data removal method data sent by the intermediate end.
[0062] The first decryption module is used to decrypt the received redundant data removal method data.
[0063] The node control information data receiving module is used to receive a control node information data packet with redundant data added sent by the server.
[0064] The node control information redundant data removal module is used to remove the redundant node control information data received to obtain complete node control information.
[0065] Furthermore, the control request receiving module is used to receive control request information sent by the client.
[0066] The redundant data random generation module is used to randomly generate redundant data packets.
[0067] The transformation method is used to generate redundant data, transforming the distribution on the finite interval (a, b) to an arbitrary real number interval (u, v). The corresponding formula is:
[0068]
[0069] And the Box-Muller transformation is adopted, and its transformation formula is:
[0070]
[0071] Among them, X1 and X2 are random variables distributed on the interval (a, b), and the obtained Y1 and Y2 are independent of each other and have an expected value of μ = 0 and a variance of σ 2 =1 is a normally distributed random variable.
[0072] The redundant data random insertion method generation module is used to generate a random insertion encryption method for redundant data packets.
[0073] The redundant data removal method generation module is used to generate a corresponding redundant data removal method corresponding to the redundant data random insertion method generation module.
[0074] The encryption module is used to encrypt redundant data packets, random insertion encryption method and redundant data removal method data packets.
[0075] The data packet sending module is used to send the redundant data packet and the random insertion encryption method data packet to the server, and send the redundant data removal method data packet to the server.
[0076] Furthermore, the redundant data random insertion method receiving module is used to receive the redundant data packets and the random insertion encryption method data packets sent by the intermediate end.
[0077] The second decryption module is used to decrypt the received redundant data packets and randomly inserted encryption method data packets.
[0078] The redundant data is randomly inserted into the encryption module, which is used to randomly insert the redundant data packet data into the node control information to obtain an encrypted node control information data packet.
[0079] The node control information data packet sending module is used to send the node control information data packet with redundant data inserted to the client.
[0080] Furthermore, the output end of the control request data sending module is signal-connected to the control request receiving module, the output end of the data packet sending module is signal-connected to the redundant data removal method receiving module and the redundant data random insertion method receiving module, and the output end of the node control information data packet sending module is signal-connected to the node control information data receiving module.
[0081] Furthermore, the encryption module adopts an asymmetric encryption method.
[0082] Prepare two very large prime numbers p and q, and convert them into binary. Use string simulation to calculate the product of large prime numbers p and q n = pq. Use the same method to calculate the Euler function m = (p-1)(q-1) of n. Find a number e (1 < e < m) that satisfies gcd (m, e) = 1, that is, e and m are relatively prime. Calculate the inverse element d of e in the modulo m field, that is, satisfy ed mod m = 1. The public key and private key are generated, where (n, e) is the public key and (n, d) is the private key.
[0083] For plaintext x, encrypt x with the public key (n, e) to get the ciphertext y.
[0084] y=x e mod n.
[0086] Furthermore, the system adopts the SSH protocol framework structure.
[0087] Embodiment 2:
[0088] See also Figure 5 , and combined with the first embodiment, further obtained, a remote control method based on network communication, comprising the following steps:
[0089] S1. Send control request information to the middle end through the control request data sending module of the client. After the middle end receives the request information through the control request receiving module, a group of random redundant data is generated through the redundant data random generation module, and then a data insertion method is generated for the redundant data through the redundant data random insertion method generation module. At the same time, a corresponding redundant data removal method is generated through the redundant data removal method generation module. Then, the redundant data, the redundant data insertion method and the redundant data removal method are encrypted through the encryption module, and the encrypted redundant data and the redundant data removal method are sent to the client through the data packet sending module, and the redundant data and the redundant data insertion method are sent to the server.
[0090] S2. After the server receives the redundant data and the redundant data insertion method data sent by the intermediate end through the redundant data random insertion method receiving module, it performs decryption operation through the second decryption module, and then inserts the redundant data into the node control information randomly according to the redundant data insertion method through the redundant data random insertion encryption module, generates a group of encrypted node control information groups with redundant data, and sends the encrypted node control information groups with redundant data to the client through the node information data packet sending module.
[0091] S3. The client receives the encrypted redundant data and the redundant data removal method sent by the intermediate end through the redundant data removal method receiving module, and decrypts the data through the first decryption module to obtain the redundant data and the redundant data removal method, receives the encrypted node control information group with redundant data sent by the server end through the node control information data receiving module, and deduplicates the encrypted node control information group with redundant data based on the decrypted redundant data and the redundant data removal method through the node control information redundant data removal module, removes the redundant data in the node control information, and obtains the correct node control information.
[0092] Furthermore, in step S1, redundant data is randomly generated using a classification model random data generation method, firstly establishing ternary classification model data, and automatically outputting redundant data according to the number of generated samples, the number of sample features, and the number of redundant features.
[0093] Furthermore, in step S1, when encrypting data, an asymmetric encryption method is used, and when connecting for the first time, public key transmission is established between the middle end and the server end and the client end.
[0094] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A remote control system based on network communication, comprising a client, an intermediate end and a server end, characterized in that: The intermediate end is connected by signals with the client end and the server end, and the client end is connected by signals with the server end; The client comprises a control request data sending module, a redundant data removal method receiving module, a first decryption module, a node control information data receiving module, a first decryption module, and a node control information redundant data removal module, wherein the output end of the redundant data removal method receiving module is signal-connected to the first decryption module, the output end of the first decryption module is signal-connected to the node control information data receiving module, and the output end of the node control information data receiving module is signal-connected to the node control information redundant data removal module; The intermediate end includes a control request receiving module, a redundant data random generation module, a redundant data random insertion method generation module, a redundant data removal method generation module, an encryption module and a data packet sending module, wherein the output end of the control request receiving module is signal-connected to the redundant data random generation module, the output end of the redundant data random generation module is signal-connected to the redundant data random insertion method generation module and the redundant data removal method generation module, the output end of the redundant data random insertion method generation module and the redundant data removal method generation module are signal-connected to the encryption module, and the output end of the encryption module is signal-connected to the data packet sending module; The service end includes a redundant data random insertion method receiving module, a second decryption module, a redundant data random insertion encryption module and a node control information data packet sending module. The output end of the redundant data random insertion method receiving module is connected to the second decryption module signal, the output end of the second decryption module is connected to the redundant data random insertion encryption module signal, and the output end of the redundant data random insertion encryption module is connected to the node control information data packet sending module signal.
2. A remote control system based on network communication according to claim 1, characterized in that: The control request data sending module is used to send control request information to the middle end; The redundant data removal method receiving module is used to receive redundant data removal method data sent by the intermediate end; The first decryption module is used to decrypt the received redundant data removal method data; The node control information data receiving module is used to receive a control node information data packet with redundant data added sent by the server; The node control information redundant data removal module is used to remove the redundancy of the received redundant data of the node control information to obtain complete node control information.
3. A remote control system based on network communication according to claim 1, characterized in that: The control request receiving module is used to receive the control request information sent by the client; The redundant data random generation module is used to randomly generate redundant data packets; The transformation method is used to generate redundant data, transforming the distribution on the finite interval (a, b) to an arbitrary real number interval (u, v). The corresponding formula is: And the Box-Muller transformation is adopted, and its transformation formula is: Among them, X1 and X2 are random variables distributed on the interval (a, b), and the obtained Y1 and Y2 are independent of each other and have an expected value of μ = 0 and a variance of σ 2 =1 is a normally distributed random variable; The redundant data random insertion method generation module is used to generate a random insertion encryption method for redundant data packets; The redundant data removal method generation module is used to generate a corresponding redundant data removal method corresponding to the redundant data random insertion method generation module; The encryption module is used to encrypt redundant data packets, random insertion encryption method and redundant data removal method data packets; The data packet sending module is used to send the redundant data packet and the random insertion encryption method data packet to the server, and send the redundant data removal method data packet to the server.
4. A remote control system based on network communication according to claim 1, characterized in that: The redundant data random insertion method receiving module is used to receive the redundant data packet and the random insertion encryption method data packet sent by the intermediate end; The second decryption module is used to decrypt the received redundant data packets and randomly inserted encryption method data packets; The redundant data random insertion encryption module is used to randomly insert the redundant data packet data into the node control information to obtain an encrypted node control information data packet; The node control information data packet sending module is used to send the node control information data packet inserted with redundant data to the client.
5. A remote control system based on network communication according to claim 1, characterized in that: The output end of the control request data sending module is signal-connected to the control request receiving module, the output end of the data packet sending module is signal-connected to the redundant data removal method receiving module and the redundant data random insertion method receiving module, and the output end of the node control information data packet sending module is signal-connected to the node control information data receiving module.
6. A remote control system based on network communication according to claim 1, characterized in that: The encryption module adopts an asymmetric encryption method. Prepare two very large prime numbers p and q, and convert them into binary. Use string simulation to calculate the product of large prime numbers p and q n = pq. Use the same method to calculate the Euler function m = (p-1)(q-1) of n. Find a number e (1 < e < m) that satisfies gcd (m, e) = 1, that is, e and m are relatively prime. Calculate the inverse element d of e in the modulo m field, that is, satisfy ed mod m = 1. The public key and private key are generated, where (n, e) is the public key and (n, d) is the private key. For plaintext x, encrypt x with the public key (n, e) to get the ciphertext y. y=x e mod n。 7. A remote control system based on network communication according to claim 1, characterized in that: The system adopts the SSH protocol framework structure.
8. A remote control method based on network communication, characterized in that: The following steps are involved: S1, sending control request information to the middle end through the control request data sending module of the client, after the middle end receives the request information through the control request receiving module, generating a group of random redundant data through the redundant data random generating module, then generating a data insertion method for the redundant data through the redundant data random insertion method generating module, and generating a corresponding redundant data removal method through the redundant data removal method generating module, then encrypting the redundant data, the redundant data insertion method and the redundant data removal method through the encryption module, sending the encrypted redundant data and the redundant data removal method to the client through the data packet sending module, and sending the redundant data and the redundant data insertion method to the server; S2, after receiving the redundant data and redundant data insertion method data sent by the intermediate end through the redundant data random insertion method receiving module, the server performs a decryption operation through the second decryption module, and then inserts the redundant data into the node control information randomly according to the redundant data insertion method through the redundant data random insertion encryption module, generates a group of encrypted node control information groups with redundant data, and sends the encrypted node control information groups with redundant data to the client through the node information data packet sending module; S3. The client receives the encrypted redundant data and the redundant data removal method sent by the intermediate end through the redundant data removal method receiving module, and decrypts the data through the first decryption module to obtain the redundant data and the redundant data removal method, receives the encrypted node control information group with redundant data sent by the server end through the node control information data receiving module, and deduplicates the encrypted node control information group with redundant data based on the decrypted redundant data and the redundant data removal method through the node control information redundant data removal module, removes the redundant data in the node control information, and obtains the correct node control information.
9. A remote control method based on network communication according to claim 8, characterized in that: In step S1, the redundant data is randomly generated using a classification model random data generation method, firstly establishing a ternary classification model data, and automatically outputting the redundant data according to the number of generated samples, the number of sample features, and the number of redundant features.
10. A remote control method based on network communication according to claim 8, characterized in that: In the step S1, an asymmetric encryption method is used to encrypt data, and when the connection is made for the first time, a public key transmission is established between the middle end and the server end and the client end.
Citation Information
Patent Citations
Method for remotely controlling device and remote control system
CN106878467A
Communication method and device, communication system and storage medium
CN110380868A
Access control system and method supporting cross-domain data sharing and wireless communication system
CN110636500A
Remote control method and system based on network communication and storage medium
CN113783887A
Application remote debugging method and device, equipment and storage medium
CN117215937A
