A smart terminal routing method and system based on multiple encryption

The smart terminal routing method and system enhance security and flexibility by compressing and encrypting data with dual encryption and managing routing rules, reducing packet loss and theft, and adapting to different scenarios.

CN118487997BActive Publication Date: 2024-12-03FUJIAN THINKWIN BIG DATA APPLICATION SERVICE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410951468.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-12-03
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

Existing smart terminal routing systems face issues with data packet loss, theft, and inflexible routing rules that limit usage scenarios, necessitating improved security and flexibility.

Method used

A smart terminal routing method and system that employs multiple encryption techniques, including data compression, dual encryption schemes, and real-time management of routing rules to enhance security and flexibility.

Benefits of technology

Reduces data packet loss, prevents data theft, and ensures flexible routing by compressing and encrypting data, managing routing rules dynamically, and inspecting for abnormalities, thereby improving security and adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118487997B_ABST
    Figure CN118487997B_ABST
Patent Text Reader

Abstract

The present invention provides a smart terminal routing method and system based on multiple encryption in the field of data transmission technology, the method comprising: step S1, the server sends routing rules in batches to corresponding routers; step S2, the smart terminal compresses the running data to obtain compressed data; step S3, encrypts the compressed data to obtain first encrypted data; step S4, binds the first encrypted data to the device ID and sends it to the router; step S5, the router decrypts the first encrypted data to obtain compressed data, and encrypts the compressed data to obtain second encrypted data; step S6, matches the routing rules based on the device ID to route the second encrypted data; step S7, the server inspects the routing rules of each router; step S8, the server manages the addition, deletion, modification and query of the routing rules based on the management instructions, and synchronizes the updated routing rules to the router. The advantages of the present invention are: greatly improving the security and flexibility of smart terminal routing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data transmission, and in particular to a smart terminal routing method and system based on multiple encryption. Background Art

[0002] Routing refers to the process in which a router receives a data packet from one interface, directs it according to the destination address of the data packet, and forwards it to another interface; for example, when one smart terminal wants to send operating data to another smart terminal, the operating data needs to be routed through a router.

[0003] Regarding the routing of operating data of smart terminals, traditionally, smart terminals directly send operating data to routers for routing. Operating data packet loss, theft, and routing failure often occur, and the routing rules preset by the router cannot be adjusted, which limits the usage scenarios.

[0004] Therefore, how to provide a smart terminal routing method and system based on multiple encryption to improve the security and flexibility of smart terminal routing has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a smart terminal routing method and system based on multiple encryption to improve the security and flexibility of smart terminal routing.

[0006] In a first aspect, the present invention provides a smart terminal routing method based on multiple encryption, comprising the following steps:

[0007] Step S1, the server creates several routing rules, and sends each routing rule in batches to the corresponding router, and the router stores the received routing rules to a preset path;

[0008] Step S2: the intelligent terminal compresses the operation data generated by the operation to obtain compressed data;

[0009] Step S3: The intelligent terminal encrypts the compressed data to obtain first encrypted data;

[0010] Step S4: The smart terminal binds the first encrypted data to the device ID and sends it to the pre-associated router;

[0011] Step S5: The router decrypts the received first encrypted data to obtain compressed data, and encrypts the compressed data to obtain second encrypted data;

[0012] Step S6: The router matches the corresponding routing rule based on the device ID, routes the second encrypted data based on the matched routing rule, and records a routing log;

[0013] Step S7: the server inspects the routing rules of each router;

[0014] Step S8: The server manages the routing rules by adding, deleting, modifying and checking them based on the received management instructions, and synchronizes the updated routing rules to the corresponding routers in real time.

[0015] Furthermore, the step S1 is specifically as follows:

[0016] The server creates several routing rules by using a routing rule template that is at least provided with a rule number, routing mode, source IP address, destination IP address, source port, destination port, gateway address, mask, device ID, router ID, routing effective time, and routing validity time, and sends each routing rule in batches to the corresponding router based on the router ID. The router verifies the received routing rules based on the router ID and stores them in real time to the preset path;

[0017] The step S2 is specifically as follows:

[0018] The intelligent terminal stores the operation data in a rolling manner in a preset storage space. Based on a preset upload cycle, the operation data in the upload cycle is preprocessed by deleting spaces and converting character sets, and the preprocessed operation data is compressed in real time through Huffman coding to obtain compressed data.

[0019] Furthermore, the step S3 is specifically as follows:

[0020] The intelligent terminal creates a pair of public keys and private keys, performs hash calculation on the compressed data to obtain a first hash value, encrypts the public key using a DES algorithm to obtain a key, encrypts the compressed data using the private key to obtain compressed encrypted data, and encrypts the compressed encrypted data, the key, and the first hash value into first encrypted data using an IDEA algorithm;

[0021] The step S4 is specifically as follows:

[0022] After the smart terminal binds the first encrypted data to the device ID, it sends it to the pre-associated router in real time through the HTTPS protocol.

[0023] Furthermore, the step S5 is specifically as follows:

[0024] The router decrypts the received first encrypted data by using the IDEA algorithm to obtain compressed encrypted data, a key, and a first hash value, decrypts the key by using the DES algorithm to obtain a public key, decrypts the compressed encrypted data by using the public key to obtain compressed data, and performs integrity check on the compressed data by using the first hash value;

[0025] The router performs a hash calculation on the compressed data to obtain a second hash value, sets a validity period, and encrypts the compressed data, the second hash value, and the validity period into second encrypted data using an AES256 algorithm.

[0026] Furthermore, the step S7 is specifically as follows:

[0027] The server sets a patrol cycle, and sends a patrol instruction to each router based on the patrol cycle. Each router feeds back the routing rules and routing logs stored locally to the server based on the received patrol instruction.

[0028] The server compares the created routing rules based on the router ID to see whether they are consistent with the routing rules uploaded by the router. If not, the routing rule comparison fails, and the corresponding routing rules are sent to the router based on the routing ID. If yes, the routing rule comparison passes, and the routing result is verified based on the routing log. When the routing result is a routing failure, a routing abnormality alarm is displayed through a visual interface;

[0029] The server displays the inspection progress of each router in real time through a visual interface.

[0030] In a second aspect, the present invention provides a smart terminal routing system based on multiple encryption, comprising the following modules:

[0031] A routing rule sending module is used for the server to create a number of routing rules, and send each routing rule in batches to the corresponding router, and the router stores the received routing rules to a preset path;

[0032] An operation data compression module is used for the intelligent terminal to compress the operation data generated by the operation to obtain compressed data;

[0033] A compressed data primary encryption module, used for the intelligent terminal to encrypt the compressed data to obtain first encrypted data;

[0034] A first encrypted data sending module, used for the smart terminal to bind the first encrypted data to a device ID and send it to a pre-associated router;

[0035] A compressed data secondary encryption module, used for the router to decrypt the first encrypted data received to obtain compressed data, and encrypt the compressed data to obtain second encrypted data;

[0036] A routing module, used for the router to match the corresponding routing rule based on the device ID, route the second encrypted data based on the matched routing rule, and record a routing log;

[0037] A patrol module, used for the server to patrol the routing rules of each router;

[0038] The routing rule management module is used for the server to manage the addition, deletion, modification and query of the routing rules based on the received management instructions, and synchronize the updated routing rules to the corresponding router in real time.

[0039] Furthermore, the routing rule issuing module is specifically used for:

[0040] The server creates several routing rules by using a routing rule template that is at least provided with a rule number, routing mode, source IP address, destination IP address, source port, destination port, gateway address, mask, device ID, router ID, routing effective time, and routing validity time, and sends each routing rule in batches to the corresponding router based on the router ID. The router verifies the received routing rules based on the router ID and stores them in real time to the preset path;

[0041] The operation data compression module is specifically used for:

[0042] The intelligent terminal stores the operation data in a rolling manner in a preset storage space. Based on a preset upload cycle, the operation data in the upload cycle is preprocessed by deleting spaces and converting character sets, and the preprocessed operation data is compressed in real time through Huffman coding to obtain compressed data.

[0043] Furthermore, the compressed data one-time encryption module is specifically used for:

[0044] The intelligent terminal creates a pair of public keys and private keys, performs hash calculation on the compressed data to obtain a first hash value, encrypts the public key using a DES algorithm to obtain a key, encrypts the compressed data using the private key to obtain compressed encrypted data, and encrypts the compressed encrypted data, the key, and the first hash value into first encrypted data using an IDEA algorithm;

[0045] The first encrypted data sending module is specifically used for:

[0046] After the smart terminal binds the first encrypted data to the device ID, it sends it to the pre-associated router in real time through the HTTPS protocol.

[0047] Furthermore, the compressed data secondary encryption module is specifically used for:

[0048] The router decrypts the received first encrypted data by using the IDEA algorithm to obtain compressed encrypted data, a key, and a first hash value, decrypts the key by using the DES algorithm to obtain a public key, decrypts the compressed encrypted data by using the public key to obtain compressed data, and performs integrity check on the compressed data by using the first hash value;

[0049] The router performs a hash calculation on the compressed data to obtain a second hash value, sets a validity period, and encrypts the compressed data, the second hash value, and the validity period into second encrypted data using an AES256 algorithm.

[0050] Furthermore, the inspection module is specifically used for:

[0051] The server sets a patrol cycle, and sends a patrol instruction to each router based on the patrol cycle. Each router feeds back the routing rules and routing logs stored locally to the server based on the received patrol instruction.

[0052] The server compares the created routing rules based on the router ID to see whether they are consistent with the routing rules uploaded by the router. If not, the routing rule comparison fails, and the corresponding routing rules are sent to the router based on the routing ID. If yes, the routing rule comparison passes, and the routing result is verified based on the routing log. When the routing result is a routing failure, a routing abnormality alarm is displayed through a visual interface;

[0053] The server displays the inspection progress of each router in real time through a visual interface.

[0054] The advantages of the present invention are:

[0055] 1. Create several routing rules through the server, and send each routing rule to the corresponding router in batches; the intelligent terminal compresses the operation data generated by the operation to obtain compressed data, encrypts the compressed data to obtain first encrypted data, binds the first encrypted data to the device ID and sends it to the pre-associated router; then the router decrypts the first encrypted data to obtain compressed data, encrypts the compressed data to obtain second encrypted data, matches the corresponding routing rule based on the device ID, routes the second encrypted data based on the matched routing rule, and records the routing log; the server inspects the routing rules of each router, manages the addition, deletion, modification and query of the routing rules based on the received management instructions, and synchronizes the updated routing rules to the corresponding router in real time; that is, the operation data sent to the router by the intelligent terminal The data is compressed to reduce the amount of data transmission, thereby reducing the probability of data packet loss; the intelligent terminal encrypts the compressed data to obtain the first encrypted data and sends it to the router. The router decrypts the first encrypted data to obtain the compressed data and performs secondary encryption to obtain the second encrypted data, and then routes the second encrypted data to prevent the compressed data from being stolen during the routing process. Different encryption schemes are adopted in the two links to increase the difficulty of cracking; the routing rules of each router are inspected by the server, and when the routing rules are abnormal, the latest routing rules are sent for update to avoid long-term routing failures due to abnormal routing rules; the routing rules are managed by adding, deleting, modifying and checking management instructions, so that the routing rules can be flexibly matched with different usage scenarios, which ultimately greatly improves the security and flexibility of the intelligent terminal routing.

[0056] 2. Routing rules are created by using a routing rule template that has at least a rule number, routing mode, source IP address, destination IP address, source port, destination port, gateway address, mask, device ID, router ID, routing effective time, and routing validity time, which greatly improves the convenience of creating routing rules.

[0057] 3. The router verifies the received routing rules based on the router ID and stores them in the preset path, preventing the router from performing routing operations based on incorrect routing rules, further improving the security of smart terminal routing.

[0058] 4. The operating data in the upload cycle is preprocessed by deleting spaces and converting character sets through the intelligent terminal to reduce data redundancy. The preprocessed operating data is compressed in real time through Huffman coding to obtain compressed data. Since Huffman coding is a coding method based on the frequency of character occurrence, high-frequency characters are represented by shorter code words, which greatly improves the compression rate of operating data, thereby reducing the amount of data transmission, reducing the probability of packet loss, and greatly improving the security of intelligent terminal routing.

[0059] 5. Create a pair of public and private keys through the smart terminal, perform hash calculation on the compressed data to obtain a first hash value, encrypt the public key through the DES algorithm to obtain a key, encrypt the compressed data through the private key to obtain compressed encrypted data, and encrypt the compressed encrypted data, the key and the first hash value into the first encrypted data through the IDEA algorithm; since the data encrypted by the public key can only be decrypted by the private key, and the data encrypted by the private key can only be decrypted by the public key, the public key is doubly encrypted by the DES algorithm and the IDEA algorithm, and the first hash value can be used to quickly verify whether the compressed data has been tampered with. At least four security measures (public and private keys, hash calculation, DES algorithm, IDEA algorithm) are taken before and after, which greatly improves the security of compressed data transmitted from the smart terminal to the router.

[0060] 6. The router performs hash calculation on the compressed data to obtain a second hash value, sets a validity period, and encrypts the compressed data, the second hash value, and the validity period into the second encrypted data through the AES256 algorithm. The second hash value can be used to quickly verify whether the compressed data has been tampered with. The validity period can be used to verify the timeliness. Combined with the AES256 algorithm, the relevant data can be prevented from being stolen in plain text. At least three security measures (hash calculation, validity period, AES256 algorithm) are taken before and after, which greatly improves the security of compressed data routing.

[0061] 7. The server sends inspection instructions to each router based on the set inspection cycle to obtain the router's routing rules and routing logs; by comparing whether the routing rules are consistent and verifying the routing results based on the routing logs, it can be determined whether there are any abnormalities in the routing rules. If there are any abnormalities, the preset operations are automatically executed, and the inspection progress of each router is displayed in real time through a visual interface, ensuring the reliability of router routing. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.

[0063] Figure 1 The invention discloses a flow chart of a smart terminal routing method based on multiple encryption.

[0064] Figure 2 It is a structural schematic diagram of a multiple encryption-based intelligent terminal routing system of the present invention. DETAILED DESCRIPTION

[0065] The technical solution in the embodiment of the present application has the following overall idea: compressing the operating data sent by the smart terminal to the router to reduce the data transmission volume, thereby reducing the probability of running data packet loss; the smart terminal encrypts the compressed data to obtain first encrypted data and sends it to the router, the router decrypts the first encrypted data to obtain compressed data, performs secondary encryption on the compressed data to obtain second encrypted data, and then routes the second encrypted data to avoid the compressed data being stolen during the routing process, and different encryption schemes are adopted in the two links to increase the difficulty of cracking; the routing rules of each router are inspected by the server, and when the routing rules are abnormal, the latest routing rules are sent for update to avoid long-term routing failures due to abnormal routing rules; the routing rules are managed by adding, deleting, modifying and checking management instructions, so that the routing rules can flexibly match different usage scenarios to improve the security and flexibility of smart terminal routing.

[0066] Please refer to Figure 1 to Figure 2 As shown, a preferred embodiment of the intelligent terminal routing method based on multiple encryption of the present invention comprises the following steps:

[0067] Step S1, the server creates several routing rules, and sends each routing rule in batches to the corresponding router, and the router stores the received routing rules to a preset path;

[0068] Step S2: the intelligent terminal compresses the operation data generated by the operation to obtain compressed data;

[0069] Step S3: The intelligent terminal encrypts the compressed data to obtain first encrypted data;

[0070] Step S4: The smart terminal binds the first encrypted data to the device ID and sends it to the pre-associated router;

[0071] Step S5: The router decrypts the received first encrypted data to obtain compressed data, and encrypts the compressed data to obtain second encrypted data;

[0072] Step S6: the router matches the corresponding routing rule based on the device ID, routes the second encrypted data based on the matched routing rule, and records the routing log; after receiving the second encrypted data, the target terminal decrypts and decompresses the second encrypted data to obtain operation data, and feeds back the routing result to the router; the router records the received routing result in the routing log, and when the routing result is a routing failure, the routing operation is repeated based on a preset number of times threshold;

[0073] Step S7: the server inspects the routing rules of each router;

[0074] Step S8: The server manages the routing rules by adding, deleting, modifying and checking them based on the received management instructions, and synchronizes the updated routing rules to the corresponding routers in real time.

[0075] A number of routing rules are created through the server, and each routing rule is sent to the corresponding router in batches; the intelligent terminal compresses the operation data generated by the operation to obtain compressed data, encrypts the compressed data to obtain first encrypted data, binds the first encrypted data to the device ID and sends it to the pre-associated router; then the router decrypts the first encrypted data to obtain compressed data, encrypts the compressed data to obtain second encrypted data, matches the corresponding routing rule based on the device ID, routes the second encrypted data based on the matched routing rule, and records the routing log; the server inspects the routing rules of each router, manages the addition, deletion, modification and query of the routing rules based on the received management instructions, and synchronizes the updated routing rules to the corresponding router in real time; that is, the operation data sent to the router by the intelligent terminal is The intelligent terminal encrypts the compressed data to obtain the first encrypted data and sends it to the router. The router decrypts the first encrypted data to obtain the compressed data and then encrypts the second encrypted data, which is then routed to avoid the compressed data being stolen during the routing process. Different encryption schemes are adopted in the two links to increase the difficulty of cracking. The routing rules of each router are inspected by the server. When the routing rules are abnormal, the latest routing rules are sent for update to avoid long-term routing failures due to abnormal routing rules. The routing rules are added, deleted, modified and checked through management instructions, so that the routing rules can be flexibly matched with different usage scenarios, which ultimately greatly improves the security and flexibility of intelligent terminal routing.

[0076] The step S1 is specifically as follows:

[0077] The server creates several routing rules by using a routing rule template that is at least provided with a rule number, routing mode, source IP address, destination IP address, source port, destination port, gateway address, mask, device ID, router ID, routing effective time and routing validity time, and sends each routing rule in batches to the corresponding router based on the router ID. The router verifies the received routing rules based on the router ID and stores them in real time to the preset path; the routing mode is forwarding or copying; in specific implementation, the routing rule template is also provided with a router GPS to facilitate the maintenance of the router in the later stage;

[0078] Routing rules are created by using a routing rule template that has at least a rule number, routing mode, source IP address, destination IP address, source port, destination port, gateway address, mask, device ID, router ID, routing effective time, and routing validity time, which greatly improves the convenience of creating routing rules.

[0079] The router verifies the received routing rules based on the router ID and stores them in the preset path, preventing the router from performing routing operations based on incorrect routing rules, further improving the security of smart terminal routing.

[0080] The step S2 is specifically as follows:

[0081] The intelligent terminal stores the operation data in a rolling manner in a preset storage space. Based on a preset upload cycle, the operation data in the upload cycle is preprocessed by deleting spaces and converting character sets, and the preprocessed operation data is compressed in real time through Huffman coding to obtain compressed data.

[0082] The operating data in the upload cycle is preprocessed by deleting spaces and converting character sets through the intelligent terminal to reduce data redundancy. The preprocessed operating data is compressed in real time through Huffman coding to obtain compressed data. Since Huffman coding is a coding method based on the frequency of character occurrence, high-frequency characters are represented by shorter code words, which greatly improves the compression rate of operating data, thereby reducing the amount of data transmission, reducing the probability of packet loss, and greatly improving the security of intelligent terminal routing.

[0083] The step S3 is specifically as follows:

[0084] The intelligent terminal creates a pair of public keys and private keys, performs hash calculation on the compressed data to obtain a first hash value, encrypts the public key using a DES algorithm to obtain a key, encrypts the compressed data using the private key to obtain compressed encrypted data, and encrypts the compressed encrypted data, the key, and the first hash value into first encrypted data using an IDEA algorithm;

[0085] A pair of public and private keys is created through the smart terminal, the compressed data is hashed to obtain a first hash value, the public key is encrypted through the DES algorithm to obtain a key, the compressed data is encrypted through the private key to obtain compressed encrypted data, and the compressed encrypted data, the key and the first hash value are encrypted into first encrypted data through the IDEA algorithm; since the data encrypted by the public key can only be decrypted by the private key, and the data encrypted by the private key can only be decrypted by the public key, the public key is doubly encrypted by the DES algorithm and the IDEA algorithm, and the first hash value can be used to quickly verify whether the compressed data has been tampered with. At least four security measures (public and private keys, hash calculation, DES algorithm, IDEA algorithm) are taken before and after, which greatly improves the security of compressed data transmitted from the smart terminal to the router.

[0086] The step S4 is specifically as follows:

[0087] After the smart terminal binds the first encrypted data to the device ID, it sends it to the pre-associated router in real time through the HTTPS protocol. Since HTTPS is an HTTP channel with security as its goal, it ensures the security of the transmission process through transmission encryption and identity authentication based on HTTP. Sending the first encrypted data through the HTTPS protocol ensures the security of the first encrypted data transmission.

[0088] The step S5 is specifically as follows:

[0089] The router decrypts the received first encrypted data by using the IDEA algorithm to obtain compressed encrypted data, a key, and a first hash value, decrypts the key by using the DES algorithm to obtain a public key, decrypts the compressed encrypted data by using the public key to obtain compressed data, and performs integrity check on the compressed data by using the first hash value;

[0090] The router performs a hash calculation on the compressed data to obtain a second hash value, sets a validity period, and encrypts the compressed data, the second hash value, and the validity period into second encrypted data using an AES256 algorithm.

[0091] The router performs hash calculation on the compressed data to obtain a second hash value, sets a validity period, and encrypts the compressed data, the second hash value, and the validity period into second encrypted data through the AES256 algorithm. The second hash value can be used to quickly verify whether the compressed data has been tampered with, and the validity period can be used to verify the timeliness. The AES256 algorithm is combined to prevent the relevant data from being stolen in plain text. At least three security measures (hash calculation, validity period, AES256 algorithm) are taken before and after, which greatly improves the security of compressed data routing.

[0092] The step S7 is specifically as follows:

[0093] The server sets a patrol cycle, and sends a patrol instruction to each router based on the patrol cycle. Each router feeds back the routing rules and routing logs stored locally to the server based on the received patrol instruction.

[0094] The server compares the created routing rules based on the router ID to see whether they are consistent with the routing rules uploaded by the router. If not, the routing rule comparison fails, and the corresponding routing rules are sent to the router based on the routing ID. If yes, the routing rule comparison passes, and the routing result is verified based on the routing log. When the routing result is a routing failure, a routing abnormality alarm is displayed through a visual interface;

[0095] The server displays the inspection progress of each router in real time through a visual interface.

[0096] The server sends inspection instructions to each router based on the set inspection cycle to obtain the router's routing rules and routing logs; by comparing whether the routing rules are consistent and verifying the routing results based on the routing logs, it can be determined whether there are any exceptions to the routing rules. If there are any exceptions, the preset operations are automatically executed, and the inspection progress of each router is displayed in real time through a visual interface, ensuring the reliability of router routing.

[0097] A preferred embodiment of the intelligent terminal routing system based on multiple encryption of the present invention includes the following modules:

[0098] A routing rule sending module is used for the server to create a number of routing rules, and send each routing rule in batches to the corresponding router, and the router stores the received routing rules to a preset path;

[0099] An operation data compression module is used for the intelligent terminal to compress the operation data generated by the operation to obtain compressed data;

[0100] A compressed data primary encryption module, used for the intelligent terminal to encrypt the compressed data to obtain first encrypted data;

[0101] A first encrypted data sending module, used for the smart terminal to bind the first encrypted data to a device ID and send it to a pre-associated router;

[0102] A compressed data secondary encryption module, used for the router to decrypt the first encrypted data received to obtain compressed data, and encrypt the compressed data to obtain second encrypted data;

[0103] A routing module, used for the router to match the corresponding routing rule based on the device ID, route the second encrypted data based on the matched routing rule, and record the routing log; after receiving the second encrypted data, the target terminal decrypts and decompresses the second encrypted data to obtain operation data, and feeds back the routing result to the router; the router records the received routing result in the routing log, and when the routing result is a routing failure, repeats the routing operation based on a preset number of times threshold;

[0104] A patrol module, used for the server to patrol the routing rules of each router;

[0105] The routing rule management module is used for the server to manage the addition, deletion, modification and query of the routing rules based on the received management instructions, and synchronize the updated routing rules to the corresponding router in real time.

[0106] A number of routing rules are created through the server, and each routing rule is sent to the corresponding router in batches; the intelligent terminal compresses the operation data generated by the operation to obtain compressed data, encrypts the compressed data to obtain first encrypted data, binds the first encrypted data to the device ID and sends it to the pre-associated router; then the router decrypts the first encrypted data to obtain compressed data, encrypts the compressed data to obtain second encrypted data, matches the corresponding routing rule based on the device ID, routes the second encrypted data based on the matched routing rule, and records the routing log; the server inspects the routing rules of each router, manages the addition, deletion, modification and query of the routing rules based on the received management instructions, and synchronizes the updated routing rules to the corresponding router in real time; that is, the operation data sent to the router by the intelligent terminal is The intelligent terminal encrypts the compressed data to obtain the first encrypted data and sends it to the router. The router decrypts the first encrypted data to obtain the compressed data and then encrypts the second encrypted data, which is then routed to avoid the compressed data being stolen during the routing process. Different encryption schemes are adopted in the two links to increase the difficulty of cracking. The routing rules of each router are inspected by the server. When the routing rules are abnormal, the latest routing rules are sent for update to avoid long-term routing failures due to abnormal routing rules. The routing rules are added, deleted, modified and checked through management instructions, so that the routing rules can be flexibly matched with different usage scenarios, which ultimately greatly improves the security and flexibility of intelligent terminal routing.

[0107] The routing rule issuing module is specifically used for:

[0108] The server creates several routing rules by using a routing rule template that is at least provided with a rule number, routing mode, source IP address, destination IP address, source port, destination port, gateway address, mask, device ID, router ID, routing effective time and routing validity time, and sends each routing rule in batches to the corresponding router based on the router ID. The router verifies the received routing rules based on the router ID and stores them in real time to the preset path; the routing mode is forwarding or copying; in specific implementation, the routing rule template is also provided with a router GPS to facilitate the maintenance of the router in the later stage;

[0109] Routing rules are created by using a routing rule template that has at least a rule number, routing mode, source IP address, destination IP address, source port, destination port, gateway address, mask, device ID, router ID, routing effective time, and routing validity time, which greatly improves the convenience of creating routing rules.

[0110] The router verifies the received routing rules based on the router ID and stores them in the preset path, preventing the router from performing routing operations based on incorrect routing rules, further improving the security of smart terminal routing.

[0111] The operation data compression module is specifically used for:

[0112] The intelligent terminal stores the operation data in a rolling manner in a preset storage space. Based on a preset upload cycle, the operation data in the upload cycle is preprocessed by deleting spaces and converting character sets, and the preprocessed operation data is compressed in real time through Huffman coding to obtain compressed data.

[0113] The operating data in the upload cycle is preprocessed by deleting spaces and converting character sets through the intelligent terminal to reduce data redundancy. The preprocessed operating data is compressed in real time through Huffman coding to obtain compressed data. Since Huffman coding is a coding method based on the frequency of character occurrence, high-frequency characters are represented by shorter code words, which greatly improves the compression rate of operating data, thereby reducing the amount of data transmission, reducing the probability of packet loss, and greatly improving the security of intelligent terminal routing.

[0114] The compressed data one-time encryption module is specifically used for:

[0115] The intelligent terminal creates a pair of public keys and private keys, performs hash calculation on the compressed data to obtain a first hash value, encrypts the public key using a DES algorithm to obtain a key, encrypts the compressed data using the private key to obtain compressed encrypted data, and encrypts the compressed encrypted data, the key, and the first hash value into first encrypted data using an IDEA algorithm;

[0116] A pair of public and private keys is created through the smart terminal, the compressed data is hashed to obtain a first hash value, the public key is encrypted through the DES algorithm to obtain a key, the compressed data is encrypted through the private key to obtain compressed encrypted data, and the compressed encrypted data, the key and the first hash value are encrypted into first encrypted data through the IDEA algorithm; since the data encrypted by the public key can only be decrypted by the private key, and the data encrypted by the private key can only be decrypted by the public key, the public key is doubly encrypted by the DES algorithm and the IDEA algorithm, and the first hash value can be used to quickly verify whether the compressed data has been tampered with. At least four security measures (public and private keys, hash calculation, DES algorithm, IDEA algorithm) are taken before and after, which greatly improves the security of compressed data transmitted from the smart terminal to the router.

[0117] The first encrypted data sending module is specifically used for:

[0118] After the smart terminal binds the first encrypted data to the device ID, it sends it to the pre-associated router in real time through the HTTPS protocol. Since HTTPS is an HTTP channel with security as its goal, it ensures the security of the transmission process through transmission encryption and identity authentication based on HTTP. Sending the first encrypted data through the HTTPS protocol ensures the security of the first encrypted data transmission.

[0119] The compressed data secondary encryption module is specifically used for:

[0120] The router decrypts the received first encrypted data by using the IDEA algorithm to obtain compressed encrypted data, a key, and a first hash value, decrypts the key by using the DES algorithm to obtain a public key, decrypts the compressed encrypted data by using the public key to obtain compressed data, and performs integrity check on the compressed data by using the first hash value;

[0121] The router performs a hash calculation on the compressed data to obtain a second hash value, sets a validity period, and encrypts the compressed data, the second hash value, and the validity period into second encrypted data using an AES256 algorithm.

[0122] The router performs hash calculation on the compressed data to obtain a second hash value, sets a validity period, and encrypts the compressed data, the second hash value, and the validity period into second encrypted data through the AES256 algorithm. The second hash value can be used to quickly verify whether the compressed data has been tampered with, and the validity period can be used to verify the timeliness. The AES256 algorithm is combined to prevent the relevant data from being stolen in plain text. At least three security measures (hash calculation, validity period, AES256 algorithm) are taken before and after, which greatly improves the security of compressed data routing.

[0123] The inspection module is specifically used for:

[0124] The server sets a patrol cycle, and sends a patrol instruction to each router based on the patrol cycle. Each router feeds back the routing rules and routing logs stored locally to the server based on the received patrol instruction.

[0125] The server compares the created routing rules based on the router ID to see whether they are consistent with the routing rules uploaded by the router. If not, the routing rule comparison fails, and the corresponding routing rules are sent to the router based on the routing ID. If yes, the routing rule comparison passes, and the routing result is verified based on the routing log. When the routing result is a routing failure, a routing abnormality alarm is displayed through a visual interface;

[0126] The server displays the inspection progress of each router in real time through a visual interface.

[0127] The server sends inspection instructions to each router based on the set inspection cycle to obtain the router's routing rules and routing logs; by comparing whether the routing rules are consistent and verifying the routing results based on the routing logs, it can be determined whether there are any exceptions to the routing rules. If there are any exceptions, the preset operations are automatically executed, and the inspection progress of each router is displayed in real time through a visual interface, ensuring the reliability of router routing.

[0128] In summary, the advantages of the present invention are:

[0129] 1. Create several routing rules through the server, and send each routing rule to the corresponding router in batches; the intelligent terminal compresses the operation data generated by the operation to obtain compressed data, encrypts the compressed data to obtain first encrypted data, binds the first encrypted data to the device ID and sends it to the pre-associated router; then the router decrypts the first encrypted data to obtain compressed data, encrypts the compressed data to obtain second encrypted data, matches the corresponding routing rule based on the device ID, routes the second encrypted data based on the matched routing rule, and records the routing log; the server inspects the routing rules of each router, manages the addition, deletion, modification and query of the routing rules based on the received management instructions, and synchronizes the updated routing rules to the corresponding router in real time; that is, the operation data sent to the router by the intelligent terminal The data is compressed to reduce the amount of data transmission, thereby reducing the probability of data packet loss; the intelligent terminal encrypts the compressed data to obtain the first encrypted data and sends it to the router. The router decrypts the first encrypted data to obtain the compressed data and performs secondary encryption to obtain the second encrypted data, and then routes the second encrypted data to prevent the compressed data from being stolen during the routing process. Different encryption schemes are adopted in the two links to increase the difficulty of cracking; the routing rules of each router are inspected by the server, and when the routing rules are abnormal, the latest routing rules are sent for update to avoid long-term routing failures due to abnormal routing rules; the routing rules are managed by adding, deleting, modifying and checking management instructions, so that the routing rules can be flexibly matched with different usage scenarios, which ultimately greatly improves the security and flexibility of the intelligent terminal routing.

[0130] 2. Routing rules are created by using a routing rule template that has at least a rule number, routing mode, source IP address, destination IP address, source port, destination port, gateway address, mask, device ID, router ID, routing effective time, and routing validity time, which greatly improves the convenience of creating routing rules.

[0131] 3. The router verifies the received routing rules based on the router ID and stores them in the preset path, preventing the router from performing routing operations based on incorrect routing rules, further improving the security of smart terminal routing.

[0132] 4. The operating data in the upload cycle is preprocessed by deleting spaces and converting character sets through the intelligent terminal to reduce data redundancy. The preprocessed operating data is compressed in real time through Huffman coding to obtain compressed data. Since Huffman coding is a coding method based on the frequency of character occurrence, high-frequency characters are represented by shorter code words, which greatly improves the compression rate of operating data, thereby reducing the amount of data transmission, reducing the probability of packet loss, and greatly improving the security of intelligent terminal routing.

[0133] 5. Create a pair of public and private keys through the smart terminal, perform hash calculation on the compressed data to obtain a first hash value, encrypt the public key through the DES algorithm to obtain a key, encrypt the compressed data through the private key to obtain compressed encrypted data, and encrypt the compressed encrypted data, the key and the first hash value into the first encrypted data through the IDEA algorithm; since the data encrypted by the public key can only be decrypted by the private key, and the data encrypted by the private key can only be decrypted by the public key, the public key is doubly encrypted by the DES algorithm and the IDEA algorithm, and the first hash value can be used to quickly verify whether the compressed data has been tampered with. At least four security measures (public and private keys, hash calculation, DES algorithm, IDEA algorithm) are taken before and after, which greatly improves the security of compressed data transmitted from the smart terminal to the router.

[0134] 6. The router performs hash calculation on the compressed data to obtain a second hash value, sets a validity period, and encrypts the compressed data, the second hash value, and the validity period into the second encrypted data through the AES256 algorithm. The second hash value can be used to quickly verify whether the compressed data has been tampered with. The validity period can be used to verify the timeliness. Combined with the AES256 algorithm, the relevant data can be prevented from being stolen in plain text. At least three security measures (hash calculation, validity period, AES256 algorithm) are taken before and after, which greatly improves the security of compressed data routing.

[0135] 7. The server sends inspection instructions to each router based on the set inspection cycle to obtain the router's routing rules and routing logs; by comparing whether the routing rules are consistent and verifying the routing results based on the routing logs, it can be determined whether there are any abnormalities in the routing rules. If there are any abnormalities, the preset operations are automatically executed, and the inspection progress of each router is displayed in real time through a visual interface, ensuring the reliability of router routing.

[0136] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. A smart terminal routing method based on multiple encryption, characterized in that: The steps include: Step S1, the server creates several routing rules through a routing rule template that is at least provided with a rule number, routing mode, source IP address, destination IP address, source port, destination port, gateway address, mask, device ID, router ID, routing effective time and routing validity time, and sends each routing rule to the corresponding router in batches based on the router ID. The router verifies the received routing rules based on the router ID and stores them in real time to the preset path; Step S2: the intelligent terminal compresses the operation data generated by the operation to obtain compressed data; Step S3: the intelligent terminal creates a pair of public keys and private keys, performs hash calculation on the compressed data to obtain a first hash value, encrypts the public key using a DES algorithm to obtain a key, encrypts the compressed data using the private key to obtain compressed encrypted data, and encrypts the compressed encrypted data, the key, and the first hash value into first encrypted data using an IDEA algorithm; Step S4: The smart terminal binds the first encrypted data to the device ID and sends it to the pre-associated router; Step S5: The router decrypts the received first encrypted data to obtain compressed data, and encrypts the compressed data to obtain second encrypted data; Step S6: The router matches the corresponding routing rule based on the device ID, routes the second encrypted data based on the matched routing rule, and records a routing log; Step S7: the server inspects the routing rules of each router; Step S8: The server manages the routing rules by adding, deleting, modifying and checking them based on the received management instructions, and synchronizes the updated routing rules to the corresponding routers in real time; The step S5 is specifically as follows: The router decrypts the received first encrypted data by using the IDEA algorithm to obtain compressed encrypted data, a key, and a first hash value, decrypts the key by using the DES algorithm to obtain a public key, decrypts the compressed encrypted data by using the public key to obtain compressed data, and performs integrity check on the compressed data by using the first hash value; The router performs a hash calculation on the compressed data to obtain a second hash value, sets a validity period, and encrypts the compressed data, the second hash value, and the validity period into second encrypted data using an AES256 algorithm; The step S7 is specifically as follows: The server sets a patrol cycle, and sends a patrol instruction to each router based on the patrol cycle. Each router feeds back the routing rules and routing logs stored locally to the server based on the received patrol instruction. The server compares the created routing rules based on the router ID to see whether they are consistent with the routing rules uploaded by the router. If not, the routing rule comparison fails, and the corresponding routing rules are sent to the router based on the routing ID. If yes, the routing rule comparison passes, and the routing result is verified based on the routing log. When the routing result is a routing failure, a routing abnormality alarm is displayed through a visual interface; The server displays the inspection progress of each router in real time through a visual interface.

2. The intelligent terminal routing method based on multiple encryption as claimed in claim 1, characterized in that: The step S2 is specifically as follows: The intelligent terminal stores the operation data in a rolling manner in a preset storage space. Based on a preset upload cycle, the operation data in the upload cycle is preprocessed by deleting spaces and converting character sets, and the preprocessed operation data is compressed in real time through Huffman coding to obtain compressed data.

3. The intelligent terminal routing method based on multiple encryption as claimed in claim 1, characterized in that: The step S4 is specifically as follows: After the smart terminal binds the first encrypted data to the device ID, it sends it to the pre-associated router in real time via the HTTPS protocol.

4. A smart terminal routing system based on multiple encryption, characterized in that: Includes the following modules: A routing rule sending module is used for the server to create a plurality of routing rules through a routing rule template having at least a rule number, a routing mode, a source IP address, a destination IP address, a source port, a destination port, a gateway address, a mask, a device ID, a router ID, a routing effective time, and a routing validity time, and to send each of the routing rules in batches to a corresponding router based on the router ID. The router verifies the received routing rules based on the router ID and stores them in real time to a preset path; An operation data compression module is used for the intelligent terminal to compress the operation data generated by the operation to obtain compressed data; A compressed data one-time encryption module is used for the intelligent terminal to create a pair of public keys and private keys, perform hash calculation on the compressed data to obtain a first hash value, encrypt the public key by using the DES algorithm to obtain a key, encrypt the compressed data by using the private key to obtain compressed encrypted data, and encrypt the compressed encrypted data, the key and the first hash value into first encrypted data by using the IDEA algorithm; A first encrypted data sending module, used for the smart terminal to bind the first encrypted data to a device ID and send it to a pre-associated router; A compressed data secondary encryption module, used for the router to decrypt the first encrypted data received to obtain compressed data, and encrypt the compressed data to obtain second encrypted data; A routing module, used for the router to match the corresponding routing rule based on the device ID, route the second encrypted data based on the matched routing rule, and record a routing log; A patrol module, used for the server to patrol the routing rules of each router; A routing rule management module, used for the server to manage the addition, deletion, modification and query of the routing rules based on the received management instructions, and synchronize the updated routing rules to the corresponding router in real time; The compressed data secondary encryption module is specifically used for: The router decrypts the received first encrypted data by using the IDEA algorithm to obtain compressed encrypted data, a key, and a first hash value, decrypts the key by using the DES algorithm to obtain a public key, decrypts the compressed encrypted data by using the public key to obtain compressed data, and performs integrity check on the compressed data by using the first hash value; The router performs a hash calculation on the compressed data to obtain a second hash value, sets a validity period, and encrypts the compressed data, the second hash value, and the validity period into second encrypted data using an AES256 algorithm; The inspection module is specifically used for: The server sets a patrol cycle, and sends a patrol instruction to each router based on the patrol cycle. Each router feeds back the routing rules and routing logs stored locally to the server based on the received patrol instruction. The server compares the created routing rules based on the router ID to see whether they are consistent with the routing rules uploaded by the router. If not, the routing rule comparison fails, and the corresponding routing rules are sent to the router based on the routing ID. If yes, the routing rule comparison passes, and the routing result is verified based on the routing log. When the routing result is a routing failure, a routing abnormality alarm is displayed through a visual interface; The server displays the inspection progress of each router in real time through a visual interface.

5. The intelligent terminal routing system based on multiple encryption as claimed in claim 4, characterized in that: The operation data compression module is specifically used for: The intelligent terminal stores the operation data in a rolling manner in a preset storage space. Based on a preset upload cycle, the operation data in the upload cycle is preprocessed by deleting spaces and converting character sets, and the preprocessed operation data is compressed in real time through Huffman coding to obtain compressed data.

6. The intelligent terminal routing system based on multiple encryption as claimed in claim 4, characterized in that: The first encrypted data sending module is specifically used for: After the smart terminal binds the first encrypted data to the device ID, it sends it to the pre-associated router in real time via the HTTPS protocol.

Citation Information

Patent Citations

  • Data encryption method and decryption method and wireless router

    CN107454590A

  • Data transmission method and device, electronic equipment and storage medium

    CN113225352A

  • Execution plan processing method, device and system

    CN113312371A

  • Managing network configuration through network path analysis

    US11245614B1

  • Method, apparatus and system for data encryption and decryption

    US20190074968A1