Routing security detection method, device, equipment and storage medium
By sending security detection instructions to the target routing transmission node and decrypting the feedback data, and comparing the verification information to determine anomalies, the problem of low routing security detection accuracy in the existing technology is solved, and detection accuracy and security status analysis capabilities are improved.
Patent Information
- Application Number
- CN202410735185.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-07
AI Technical Summary
The existing technology has low detection accuracy in routing security detection and cannot adapt to complex network environments, resulting in false positives and false negatives, which affects the accuracy of network routing security detection.
By sending security detection instructions to the target routing transmission node, monitoring and decrypting the feedback data, comparing the verification information with the standard data, determining the abnormal data, and determining the fault node according to the abnormal type, the detection accuracy is improved.
It implements active security detection of routing nodes, improves detection accuracy, and can analyze security status from router feedback data to reduce false positives and false negatives.
Smart Images

Figure CN118316785B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of routing security detection, and in particular to a routing security detection method, device, equipment and storage medium. Background Art
[0002] With the rapid development of Internet technology, the network has penetrated into every aspect of life. When using the Internet for data transmission, the data will be forwarded in the routing of the network. Therefore, when the routing equipment in the network fails, it will have a serious impact on the entire network. In order to protect network security, static configurations and rules are often used when detecting routing security. They are often unable to adapt to the current network environment and cannot actively detect some complex security threats. This results in a large number of false positives and missed positives when performing routing security detection, which seriously affects the accuracy of network routing security detection.
[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present application is to provide a routing security detection method, device, equipment and storage medium, aiming to solve the technical problem of low detection accuracy in routing detection in the prior art.
[0005] To achieve the above purpose, the present application proposes a routing security detection method, which includes:
[0006] Sending a security detection instruction to a target routing transmission node, and monitoring feedback data generated by the target routing transmission node based on the security detection instruction;
[0007] Decrypting the feedback data to obtain verification information in the feedback data;
[0008] Comparing the verification information with standard data to determine abnormal data in the verification information;
[0009] The abnormality type is determined according to the abnormal data, and the target routing transmission node is regarded as a fault node based on the abnormality type.
[0010] In one embodiment, before the step of sending a security detection instruction to a target routing transmission node and monitoring feedback data generated by the target routing transmission node based on the security detection instruction, the step further includes:
[0011] Determine the communication address of the target routing transmission node, and insert the communication address into the response address of the security detection instruction;
[0012] Randomly generate first verification information, and insert the first verification information into a first data area of the security detection instruction;
[0013] Generate a first verification code according to the first verification information, and insert the first verification code into a first verification code area of the security detection instruction;
[0014] Inserting the detection command and the second verification information into the command area and the second data area of the security detection instruction respectively;
[0015] Generate a second verification code according to the first verification information, the communication address, the first verification code, the detection instruction and the second verification information, and insert the second verification code into a second verification code area;
[0016] Combine the first data area, the first verification code area, the command area, the second data area and the second verification code area to obtain an initial security detection instruction;
[0017] The initial security detection instruction is encrypted to obtain an encrypted initial security detection instruction, and the response address is combined with the encrypted initial security detection instruction to obtain a security detection instruction.
[0018] In one embodiment, the steps of encrypting the initial security detection instruction to obtain an encrypted initial security detection instruction, and combining the response address with the encrypted initial security detection instruction to obtain a security detection instruction include:
[0019] Determining current time information, and generating a symmetric key based on the time information;
[0020] Encrypting the initial security detection instruction according to the symmetric key to obtain an encrypted initial security detection instruction;
[0021] Asymmetrically encrypting the symmetric key to obtain an encrypted symmetric key;
[0022] The encrypted initial security detection instruction, the encrypted symmetric key and the response address are combined to obtain a security detection instruction.
[0023] In one embodiment, the step of sending a security detection instruction to a target routing transmission node and monitoring feedback data generated by the target routing transmission node based on the security detection instruction includes:
[0024] Determine a transmission path according to a communication address of a target routing transmission node, and send a security detection instruction to the target routing transmission node based on the transmission path;
[0025] Monitoring the communication information in the current network and determining the response address in the communication information;
[0026] The response address of the communication information is detected, and when the response address of the communication address is the communication address of the target routing transmission node, the communication information is used as feedback data generated by the target routing transmission node based on the security detection instruction.
[0027] In one embodiment, the step of comparing the verification information with standard data to determine abnormal data in the verification information includes:
[0028] Determine the timestamp of the verification information, and determine the message delay according to the timestamp and the current time;
[0029] When the message delay is greater than the standard message delay in the standard data, determining the physical address of the target routing transmission according to the communication address in the verification information;
[0030] The physical address is searched in the local address table, and when the search result is empty, the verification information is used as abnormal data.
[0031] In one embodiment, the step of comparing the verification information with standard data to determine abnormal data in the verification information further includes:
[0032] Determine routing configuration information of the verification information;
[0033] Determine the CPU utilization, memory usage data and throughput of the target routing transmission node according to the routing configuration information;
[0034] Determine a routing score of the target routing transmission node according to the CPU utilization, the memory usage data and the throughput;
[0035] When the routing score is less than a preset routing score, the verification information is determined as abnormal data, and the standard data includes the preset routing score.
[0036] In one embodiment, the routing security detection method further includes:
[0037] Obtain routing announcement information in the network;
[0038] Determine a routing announcement node according to the routing announcement information;
[0039] Analyze the traffic of the routing announcement node to determine the traffic data of the routing announcement node;
[0040] The traffic data is analyzed, and when the traffic data is abnormal, the routing announcement node is marked as a faulty node.
[0041] In addition, to achieve the above purpose, the present application also proposes a routing security detection device, the routing security detection device comprising:
[0042] A data monitoring module, used to send a security detection instruction to a target routing transmission node, and monitor feedback data generated by the target routing transmission node based on the security detection instruction;
[0043] A data processing module, used to decrypt the feedback data to obtain verification information in the feedback data;
[0044] A safety verification module, used to compare the verification information with standard data and determine abnormal data in the verification information;
[0045] The routing detection module is used to determine the abnormality type according to the abnormal data, and to regard the target routing transmission node as a faulty node based on the abnormality type.
[0046] In addition, to achieve the above-mentioned purpose, the present application also proposes a routing security detection device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the routing security detection method described above.
[0047] In addition, to achieve the above purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and stores a computer program on the storage medium. When the computer program is executed by a processor, the steps of the routing security detection method described above are implemented.
[0048] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the routing security detection method described above are implemented.
[0049] One or more technical solutions proposed in the present application have at least the following technical effects: sending a security detection instruction to a target routing transmission node, and monitoring feedback data generated by the target routing transmission node based on the security detection instruction, decrypting the feedback data to obtain verification information in the feedback data, comparing the verification information with standard data, determining abnormal data in the verification information, determining the abnormal type according to the abnormal data, and treating the target routing transmission node as a faulty node based on the abnormal type, being able to actively send security detection instructions to routing nodes, and analyzing the security status of the routing from the feedback data of the router, determining the security status of the currently detected routing, and improving the accuracy of security detection of routing nodes. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0051] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0052] Figure 1 A schematic diagram of a process flow provided for the first embodiment of the routing security detection method of the present application;
[0053] Figure 2 A schematic diagram of bilateral network data transmission provided for an embodiment of a routing security detection method of the present application;
[0054] Figure 3 A schematic diagram of a security detection instruction generation process provided for an embodiment of a routing security detection method of the present application;
[0055] Figure 4 A schematic diagram of a routing node whose data has been tampered with provided in an embodiment of a routing security detection method of the present application;
[0056] Figure 5 This is a schematic diagram of the module structure of the routing safety detection device according to an embodiment of the present application;
[0057] Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the routing security detection method in the embodiment of the present application.
[0058] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0059] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0060] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0061] The main solution of the embodiment of the present application is: sending a security detection instruction to the target routing transmission node, so that the target routing transmission node feeds back corresponding feedback data according to the received security detection instruction, and sends the feedback data in the network, at which time the data in the network can be monitored, and at this time the feedback data generated by the target transmission node based on the security detection instruction can be monitored from the network, and the feedback data can be decrypted to obtain the verification information in the feedback data, and the verification information is compared with the standard data, and the verification data fed back by the target transmission node is compared with the standard information corresponding to the verification information, and the abnormal data in the verification information is determined, and then the cause of the abnormality is determined according to the abnormal data, and the abnormality type is determined, and then the corresponding target routing transmission node of the abnormal type is output as a faulty node to achieve security detection of the route.
[0062] In this embodiment, for the convenience of description, the following description is made by taking the identification of the routing security detection device as the execution subject.
[0063] In order to protect network security, existing technologies often use static configurations and rules when detecting routing security, which are often unable to adapt to the current network environment and cannot actively detect some complex security threats. As a result, a large number of false positives and missed positives will occur when performing routing security detection, seriously affecting the accuracy of network routing security detection.
[0064] The present application provides a solution, which includes sending a security detection instruction to a target routing transmission node, monitoring feedback data generated by the target routing transmission node based on the security detection instruction, decrypting the feedback data, obtaining verification information in the feedback data, comparing the verification information with standard data, determining abnormal data in the verification information, determining the abnormal type according to the abnormal data, and treating the target routing transmission node as a faulty node based on the abnormal type. The solution can actively send a security detection instruction to a routing node, analyze the security status of the routing from the feedback data of the router, determine the security status of the currently detected routing, and improve the accuracy of security detection of the routing node.
[0065] It can be seen from the above embodiments that the present application sends a security detection instruction to the target routing transmission node, monitors the feedback data generated by the target routing transmission node based on the security detection instruction, decrypts the feedback data, obtains the verification information in the feedback data, compares the verification information with the standard data, determines the abnormal data in the verification information, determines the abnormal type according to the abnormal data, and regards the target routing transmission node as a fault node based on the abnormal type. It can actively send a security detection instruction to the routing node, analyze the security status of the route from the feedback data of the router, determine the security status of the currently detected route, and improve the accuracy of security detection of the routing node.
[0066] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a routing security detection device, etc. The following takes the routing security detection device as an example to illustrate this embodiment and the following embodiments.
[0067] Based on this, the present application embodiment provides a routing security detection method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the routing security detection method of the present application.
[0068] In this embodiment, the routing security detection method includes steps S10 to S40:
[0069] Step S10: Send a security detection instruction to a target routing transmission node, and monitor feedback data generated by the target routing transmission node based on the security detection instruction.
[0070] It should be noted that the target routing transmission node is a routing transmission node that receives data in the network. In a bilateral network, any routing transmission node is both a data sending node and a data receiving node. Therefore, the target routing transmission node is any routing transmission node in the network environment.
[0071] It can be understood that the security detection instruction refers to a data packet that has been processed and sent to the target routing transmission node when performing routing security detection. The target address of the data packet is the communication address of the target routing transmission node, and it carries an information instruction for the target routing transmission node to generate a receipt.
[0072] In the specific implementation, when performing routing security detection, the target routing transmission node can send a security detection instruction, refer to Figure 2 , Figure 2Schematic diagram of bilateral network data transmission. In a bilateral network, any routing transmission node is both a data transmitter and a data receiver. That is to say, in a bilateral network, a routing transmission node can generate and send security detection instructions, and can also generate feedback data based on the security detection instructions. For example, routing transmission node 1 is a security detection instruction transmitter, and routing transmission node 2 is a security detection instruction receiver. When routing transmission node 1 transmits a security detection instruction to routing transmission node 2, the instruction is sent to the network. Since the security detection instruction includes the communication address of the target routing transmission node, the security detection instruction needs to be forwarded by other routing transmission nodes when it is transmitted. There are a large number of routing transmission nodes in the network. Only when the communication address of the target routing transmission node is directly or indirectly included, this type of routing transmission node can be used as a forwarding routing transmission node to transmit the security detection instruction, so as to send the security detection instruction to the target routing transmission node. After sending the security detection instruction, the network data in the network is monitored at the same time, and the feedback data generated by the target routing transmission node based on the security detection instruction is monitored. When the feedback data generated based on the security detection instruction is monitored, the feedback data generated based on the security detection instruction is saved in the local cache for subsequent processing.
[0073] Exemplarily, the step of sending a security detection instruction to a target routing transmission node and monitoring feedback data generated by the target routing transmission node based on the security detection instruction includes:
[0074] Determine a transmission path according to a communication address of a target routing transmission node, and send a security detection instruction to the target routing transmission node based on the transmission path;
[0075] Monitoring the communication information in the current network and determining the response address in the communication information;
[0076] The response address of the communication information is detected, and when the response address of the communication address is the communication address of the target routing transmission node, the communication information is used as feedback data generated by the target routing transmission node based on the security detection instruction.
[0077] In a specific implementation, when sending a security instruction to a target routing transmission node, the transmission path of the security detection instruction can be determined according to the communication address of the target routing transmission node, specifically, the routing transmission node that can communicate in the routing transmission table is determined according to its own routing forwarding table, and the transmission path is determined to the routing forwarding address in the routing transmission table. Specifically, the routing transmission node can be traversed to obtain the routing transmission path, and the security detection instruction is sent to the target routing transmission node based on the routing transmission path. After sending the security detection instruction to the target routing transmission node, the communication information in the network can be monitored, that is, when the communication information in the network is obtained, the response address in the communication information is read, and the response address in the communication information is detected. When the communication address is the communication address of the target routing transmission node, the communication information is determined as the feedback data generated by the target routing transmission node based on the security detection instruction.
[0078] In a feasible implementation manner, before step S10, steps S101 to S107 may also be included. Figure 3 , Figure 3 Generate a flow chart for security detection instructions:
[0079] S101: Determine the communication address of the target routing transmission node, and insert the communication address into the response address of the security detection instruction.
[0080] S102: Randomly generate first verification information, and insert the first verification information into a first data area of a security detection instruction.
[0081] S103: Generate a first verification code according to the first verification information, and insert the first verification code into a first verification code area of the security detection instruction.
[0082] S104: inserting the detection command and the second verification information into the command area and the second data area of the security detection instruction respectively.
[0083] S105: Generate a second verification code according to the first verification information, the communication address, the first verification code, the detection instruction and the second verification information, and insert the second verification code into a second verification code area.
[0084] S106: Combine the first data area, the first verification code area, the command area, the second data area and the second verification code area to obtain an initial security detection instruction.
[0085] S107: Encrypt the initial security detection instruction to obtain an encrypted initial security detection instruction, and combine the response address with the encrypted initial security detection instruction to obtain a security detection instruction.
[0086] In a specific implementation, before sending a security detection instruction to a target routing transmission node, a security detection instruction needs to be generated first, wherein the security detection instruction includes a response address, a first verification information, a first check code, a detection command, and a second check code, wherein the response address corresponds to the communication address of the target routing transmission node, and the communication address is inserted into the response address of the security detection instruction. In order to improve the security of the security detection instruction, it can be generated by a random information generator such as a random number generator, and the random information is determined as the first check information, which is used for comparison detection after the first check information in the received feedback information. In the security detection instruction, the first check information is inserted into the first data area. Based on the first check information, a fixed-length hash value is generated from the first check data according to SHA-256, and the hash value is stored in the first check code area. According to the specific content of the required security detection, the detection command can be determined and the detection command can be inserted into the command area. At the same time, a hash value can be generated according to SHA-256 according to the first check information, the first check code, the detection command, and the second check information, to obtain the second check code, and insert it into the second check code area. The first data area, the first verification code area, the command area, the second data area and the second verification code area are combined to obtain an initial security detection instruction, and then the initial security detection instruction can be encrypted to obtain an encrypted initial security detection instruction, and then the response address and the encrypted initial security detection instruction are combined to obtain a security detection instruction.
[0087] Exemplarily, the steps of encrypting the initial security detection instruction to obtain an encrypted initial security detection instruction, and combining the response address with the encrypted initial security detection instruction to obtain a security detection instruction include:
[0088] Determining current time information, and generating a symmetric key based on the time information;
[0089] Encrypting the initial security detection instruction according to the symmetric key to obtain an encrypted initial security detection instruction;
[0090] Asymmetrically encrypting the symmetric key to obtain an encrypted symmetric key;
[0091] The encrypted initial security detection instruction, the encrypted symmetric key and the response address are combined to obtain a security detection instruction.
[0092] In a specific implementation, when the initial security detection instruction is encrypted, the current time information can be obtained, and the current time information is used to generate a random seed, and a symmetric key is generated based on the current time information. Specifically, according to a pre-agreed shared secret value, this shared secret value is randomly generated, and according to the current time interval, through TOTP (Time-basedOne-TimePassword: key derivation function), after the key is generated, a timestamp is generated according to the current time, and the shared secret value and the timestamp are used as inputs to calculate TOTP through a hash function. This process can be repeated multiple times according to the specific situation to increase the complexity of the key. After reaching a preset number of calculations, the calculation result of TOTP can be used as the key, and the initial security detection instruction is encrypted based on the current key based on the AES encryption algorithm to obtain an encrypted initial security detection instruction, and then the symmetric key is asymmetrically encrypted to obtain a public key and a private key, wherein the public key is used for encryption and the private key is used for decryption, and then the encrypted initial security detection instruction, the encrypted symmetric key and the response address are combined together to form a security detection instruction to obtain a security detection instruction.
[0093] Step S20: decrypt the feedback data to obtain verification information in the feedback data.
[0094] In a specific implementation, the feedback data is decrypted based on a private key corresponding to the target routing transmission node to obtain the encrypted feedback information and the encryption key in the feedback data, and the encryption key is decrypted to determine the decryption key for decrypting the encrypted feedback information, and then the encrypted feedback information is decrypted according to the decryption key to obtain the feedback data, and then the feedback data is analyzed to determine the verification information in the feedback data.
[0095] Step S30: Compare the verification information with standard data to determine abnormal data in the verification information.
[0096] In a specific implementation, the inspection information is compared with the standard data. During the comparison process, the first check code, the second check code, timestamp information and other data in the verification information can be compared with the standard data. The standard data is the first check code and the second check code and other information in the security verification data. At this time, the data in the feedback information and the corresponding data in the security detection information can be used to determine abnormal data. When the first check code or the second check code in the feedback data cannot be successfully matched with the first check code and the second check code in the standard data, the current feedback information is determined as abnormal data.
[0097] Exemplarily, the step of comparing the verification information with standard data to determine abnormal data in the verification information includes:
[0098] Determine the timestamp of the verification information, and determine the message delay according to the timestamp and the current time;
[0099] When the message delay is greater than the standard message delay in the standard data, determining the physical address of the target routing transmission according to the communication address in the verification information;
[0100] The physical address is searched in the local address table, and when the search result is empty, the verification information is used as abnormal data.
[0101] In a specific implementation, when comparing the verification information with the standard data, the timestamp in the verification information can be determined. The timestamp at this time indicates the time when the target routing transmission node processes the routing security detection instruction. When the timestamp in the feedback information is received, the sending delay and the receiving delay can be determined respectively with the generation time of the routing security detection instruction and the timestamp, and the timestamp and the receiving time. Under normal circumstances, the sending delay and the receiving delay are basically the same, and are also at a predictable time. First, the sending delay and the receiving delay are compared with the standard delay. When any delay is greater than the standard delay, it means that the current message delay is abnormal and there is a risk of data tampering. Secondly, the sending delay can also be compared with the receiving delay. If the delay difference between the sending delay and the receiving delay is greater than the set threshold, the current feedback data is used as abnormal data. When the message delay is greater than the standard message delay in the standard data, the physical address of the target routing transmission is determined according to the communication address in the verification information, and the physical address is searched in the local address table. When the search result is empty, it means that the current feedback data source is not the target routing transmission node, and the verification information is used as abnormal data.
[0102] Exemplarily, the step of comparing the verification information with standard data to determine abnormal data in the verification information further includes:
[0103] Determine routing configuration information of the verification information;
[0104] Determine the CPU utilization, memory usage data and throughput of the target routing transmission node according to the routing configuration information;
[0105] Determine a routing score of the target routing transmission node according to the CPU utilization, the memory usage data and the throughput;
[0106] When the routing score is less than a preset routing score, the verification information is determined as abnormal data, and the standard data includes the preset routing score.
[0107] In a specific implementation, the routing configuration information in the verification information is determined based on the verification information, including the CPU utilization, memory usage data, throughput and other data of the target transmission node, and the routing score of the target routing transmission node is determined based on the CPU utilization, the memory usage data and the throughput. When the routing score is less than the preset routing score, the verification information is determined as abnormal data, and the standard data includes the preset routing score. At this time, it means that the routing configuration information of the current target routing transmission node cannot meet the data transmission and there are unstable factors. At this time, the current target routing transmission node can be used as the target fault node.
[0108] Step S40: determining the abnormality type according to the abnormal data, and taking the target routing transmission node as a faulty node based on the abnormality type.
[0109] In the specific implementation, the abnormal type of the abnormal data is determined. When the abnormal type is the check code matching failure, it can be determined that the current feedback information has been tampered with, so it can be determined that the target transmission node is not safe. At this time, there are two situations. One is that during the data transmission process, other routing transmission nodes hijack the data and tamper with the data. The second is that the data encryption method is leaked. At this time, the encryption method can be changed and the routing security detection can be performed again to determine the abnormal type. Refer to Figure 4 , Figure 4 The figure is a schematic diagram of a routing node with tampered data. The data is tampered because it is hijacked by other target routing transmission nodes during the data transmission process, and the hijacked data is tampered with and retransmitted according to the original target address, which will cause the message transmission time to be extended. The corresponding exception type is data hijacking, and the target routing transmission node is a hijacked fault node.
[0110] Exemplarily, the routing security detection method further includes:
[0111] Obtain routing announcement information in the network;
[0112] Determine a routing announcement node according to the routing announcement information;
[0113] Analyze the traffic of the routing announcement node to determine the traffic data of the routing announcement node;
[0114] The traffic data is analyzed, and when the traffic data is abnormal, the routing announcement node is marked as a faulty node.
[0115] In a specific implementation, the routing announcement information in the network is monitored to determine the routing announcement information in the network. When a routing transmission node initiates a routing announcement in the network, it will broadcast its own communication address in the network. When there is a need to transmit data to the communication address in the current network, the data will be sent to the routing announcement node. At the same time, the traffic data of the routing announcement node is analyzed to determine the data traffic of the routing announcement node, and the traffic data is analyzed to determine whether there is a traffic anomaly. When the traffic data is abnormal, the routing announcement node is marked as a faulty node, and the communication address of the routing announcement node is marked.
[0116] The present embodiment provides a routing security detection method, which sends a security detection instruction to a target routing transmission node, monitors feedback data generated by the target routing transmission node based on the security detection instruction, decrypts the feedback data to obtain verification information in the feedback data, compares the verification information with standard data, determines abnormal data in the verification information, determines the abnormal type according to the abnormal data, and regards the target routing transmission node as a fault node based on the abnormal type. The method can actively send a security detection instruction to a routing node, analyze the security status of the route from the feedback data of the router, determine the security status of the currently detected route, and improve the accuracy of security detection of the routing node.
[0117] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the routing security detection method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0118] This application also provides a routing security detection device, please refer to Figure 5 , the routing security detection device comprises:
[0119] The data monitoring module 10 is used to send a security detection instruction to a target routing transmission node and monitor feedback data generated by the target routing transmission node based on the security detection instruction;
[0120] The data processing module 20 is used to decrypt the feedback data to obtain verification information in the feedback data;
[0121] A safety verification module 30, used to compare the verification information with standard data and determine abnormal data in the verification information;
[0122] The routing detection module 40 is used to determine the abnormality type according to the abnormal data, and to regard the target routing transmission node as a faulty node based on the abnormality type.
[0123] The routing security detection device provided by the present application adopts the routing security detection method in the above embodiment, which can solve the technical problem of low detection accuracy in routing detection in the prior art. Compared with the prior art, the beneficial effects of the routing security detection device provided by the present application are the same as the beneficial effects of the routing security detection method provided by the above embodiment, and other technical features in the routing security detection device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0124] The present application provides a routing security detection device, which includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the routing security detection method in the above-mentioned embodiment 1.
[0125] Reference below Figure 6 , which shows a schematic diagram of the structure of a routing security detection device suitable for implementing the embodiment of the present application. The routing security detection device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The routing security detection device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0126] like Figure 6As shown, the routing security detection device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the routing security detection device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the routing security detection device to communicate with other devices wirelessly or wired to exchange data. Although the figure shows a routing security detection device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.
[0127] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0128] The routing security detection device provided by the present application adopts the routing security detection method in the above embodiment, which can solve the technical problem of low detection accuracy in the prior art when detecting routing. Compared with the prior art, the beneficial effects of the routing security detection device provided by the present application are the same as the beneficial effects of the routing security detection method provided by the above embodiment, and other technical features in the routing security detection device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0129] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0130] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0131] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the routing security detection method in the above-mentioned embodiment.
[0132] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0133] The computer-readable storage medium may be included in the routing security detection device; or may exist independently without being assembled into the routing security detection device.
[0134] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the routing security detection device, the routing security detection device:
[0135] Sending a security detection instruction to a target routing transmission node, and monitoring feedback data generated by the target routing transmission node based on the security detection instruction;
[0136] Decrypting the feedback data to obtain verification information in the feedback data;
[0137] Comparing the verification information with standard data to determine abnormal data in the verification information;
[0138] The abnormality type is determined according to the abnormal data, and the target routing transmission node is regarded as a fault node based on the abnormality type.
[0139] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0140] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0141] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0142] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned route security detection method, and can solve the technical problem of low detection accuracy in route detection in the prior art. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the route security detection method provided in the above-mentioned embodiment, and will not be repeated here.
[0143] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned routing security detection method when executed by a processor.
[0144] The computer program product provided by the present application can solve the technical problem of low detection accuracy in the prior art when detecting routes. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the route security detection method provided by the above embodiment, which will not be repeated here.
[0145] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A routing security detection method, characterized in that: The routing security detection method comprises: Sending a security detection instruction to a target routing transmission node, and monitoring feedback data generated by the target routing transmission node based on the security detection instruction; Decrypting the feedback data to obtain verification information in the feedback data; Comparing the verification information with standard data to determine abnormal data in the verification information; Determine the abnormality type according to the abnormal data, and regard the target routing transmission node as a fault node based on the abnormality type; Wherein, before the step of sending a security detection instruction to the target routing transmission node and monitoring the feedback data generated by the target routing transmission node based on the security detection instruction, the step further includes: Determine the communication address of the target routing transmission node, and insert the communication address into the response address of the security detection instruction; Randomly generate first verification information, and insert the first verification information into a first data area of the security detection instruction; Generate a first verification code according to the first verification information, and insert the first verification code into a first verification code area of the security detection instruction; Inserting the detection command and the second verification information into the command area and the second data area of the security detection instruction respectively; Generate a second verification code according to the first verification information, the communication address, the first verification code, the detection command and the second verification information, and insert the second verification code into a second verification code area; Combine the first data area, the first verification code area, the command area, the second data area and the second verification code area to obtain an initial security detection instruction; The initial security detection instruction is encrypted to obtain an encrypted initial security detection instruction, and the response address is combined with the encrypted initial security detection instruction to obtain a security detection instruction.
2. The method according to claim 1, characterized in that The steps of encrypting the initial security detection instruction to obtain an encrypted initial security detection instruction, and combining the response address with the encrypted initial security detection instruction to obtain a security detection instruction include: Determining current time information, and generating a symmetric key based on the time information; Encrypting the initial security detection instruction according to the symmetric key to obtain an encrypted initial security detection instruction; Asymmetrically encrypting the symmetric key to obtain an encrypted symmetric key; The encrypted initial security detection instruction, the encrypted symmetric key and the response address are combined to obtain a security detection instruction.
3. The method according to claim 1, characterized in that The step of sending a security detection instruction to a target routing transmission node and monitoring feedback data generated by the target routing transmission node based on the security detection instruction includes: Determine a transmission path according to a communication address of a target routing transmission node, and send a security detection instruction to the target routing transmission node based on the transmission path; Monitoring the communication information in the current network and determining the response address in the communication information; The response address of the communication information is detected, and when the response address of the communication address is the communication address of the target routing transmission node, the communication information is used as feedback data generated by the target routing transmission node based on the security detection instruction.
4. The method according to claim 1, characterized in that The step of comparing the verification information with standard data to determine abnormal data in the verification information includes: Determine the timestamp of the verification information, and determine the message delay according to the timestamp and the current time; When the message delay is greater than the standard message delay in the standard data, determining the physical address of the target routing transmission node according to the communication address in the verification information; The physical address is searched in the local address table, and when the search result is empty, the verification information is used as abnormal data.
5. The method according to claim 1, characterized in that The step of comparing the verification information with standard data to determine abnormal data in the verification information further includes: Determine routing configuration information of the verification information; Determine the CPU utilization, memory usage data and throughput of the target routing transmission node according to the routing configuration information; Determine a routing score of the target routing transmission node according to the CPU utilization, the memory usage data and the throughput; When the routing score is less than a preset routing score, the verification information is determined as abnormal data, and the standard data includes the preset routing score.
6. The method according to claim 1, characterized in that The routing security detection method also includes: Obtain routing announcement information in the network; Determine a routing announcement node according to the routing announcement information; Analyze the traffic of the routing announcement node to determine the traffic data of the routing announcement node; The traffic data is analyzed, and when the traffic data is abnormal, the routing announcement node is marked as a faulty node.
7. A routing security detection device, characterized in that: The device comprises: A data monitoring module, used to send a security detection instruction to a target routing transmission node, and monitor feedback data generated by the target routing transmission node based on the security detection instruction; A data processing module, used to decrypt the feedback data to obtain verification information in the feedback data; A safety verification module, used to compare the verification information with standard data and determine abnormal data in the verification information; A routing detection module, configured to determine an abnormality type according to the abnormal data, and to treat the target routing transmission node as a faulty node based on the abnormality type; Wherein, before sending the security detection instruction to the target routing transmission node and monitoring the feedback data generated by the target routing transmission node based on the security detection instruction, the method further includes: Determine the communication address of the target routing transmission node, and insert the communication address into the response address of the security detection instruction; Randomly generate first verification information, and insert the first verification information into a first data area of the security detection instruction; Generate a first verification code according to the first verification information, and insert the first verification code into a first verification code area of the security detection instruction; Inserting the detection command and the second verification information into the command area and the second data area of the security detection instruction respectively; Generate a second verification code according to the first verification information, the communication address, the first verification code, the detection command and the second verification information, and insert the second verification code into a second verification code area; Combine the first data area, the first verification code area, the command area, the second data area and the second verification code area to obtain an initial security detection instruction; The initial security detection instruction is encrypted to obtain an encrypted initial security detection instruction, and the response address is combined with the encrypted initial security detection instruction to obtain a security detection instruction.
8. A routing security detection device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the routing security detection method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the routing security detection method according to any one of claims 1 to 6 are implemented.
