A path verification method, system and storage medium supporting path hiding
Generating and verifying path verification evidence through the StealthPath algorithm solves the problem of insufficient path verification privacy in the existing technology, achieves path privacy protection and efficient data packet forwarding, and enhances network security.
Patent Information
- Application Number
- CN202211213468.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-30
- Publication Date
- 2024-09-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing path verification schemes have privacy issues and are vulnerable to attacks, affecting network reliability, privacy and service quality. The lack of methods to protect path privacy will expose node sensitive information, leading to security threats and data leaks.
Using the StealthPath algorithm, the controller generates system parameters, terminal nodes and routing nodes register public and private keys, the source node generates path verification evidence, and the routing node verifies and updates the evidence to ensure that data packets are forwarded according to the pre-designed path, protecting path privacy and improving verification. efficiency.
It achieves the protection of path privacy, reduces computing and communication costs, prevents attacks from malicious nodes, and ensures the correct forwarding and security of data packets.
Smart Images

Figure CN115720147B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data privacy protection, and in particular relates to a path verification method and system supporting path hiding. Background Art
[0002] With the rapid development of the Internet, a large number of data packets are delivered to different applications to support different purposes. In the current Internet, the forwarding path of data packets is completely determined by the network itself and is beyond the control of the end host. That is, there is no way for the nodes and end hosts on the path to verify the actual path that the data packet has taken on the current Internet. Therefore, when data is not allowed to leave a specific jurisdiction, the lack of path control over data packet delivery may lead to potential data leakage. In addition, it may also suffer from other security threats that waste Internet resources and expose sensitive information, such as source spoofing attacks, packet detour attacks (causing a significant increase in latency), rerouting attacks launched to obtain illegal certificates, and traffic hijacking attacks (taking advantage of user de-anonymization). Therefore, the lack of control over data packet transmission will further endanger the security of online Internet services (such as finance, medical care, and military, etc.) and jeopardize network security. As advocated by the Internet Research Task Force (IRTF) and the Path-Aware Networking Research Group (PANRG) under the Internet Engineering Task Force (IETF), more path control over the delivery of data packets is needed to build a robust, fast, and secure next-generation Internet system.
[0003] Path verification is an important method to implement path compliance verification by forwarding data packets through a pre-specified network path. In the current path verification scheme, the source node first selects a suitable path to transmit the data packet. In order to enable all downstream nodes on the path to check the compliance of the path, each node on the path embeds evidence in the packet header during the packet forwarding process. Then, the data packet is forwarded through a pre-specified path, and each node on the path can check the path compliance of all upstream nodes, that is, whether the data packet is delivered according to the specified path. It is worth noting that path verification requires upgrading the current Internet architecture and changing the routing logic of data packets, which is crucial for the next generation Internet architecture.
[0004] However, current path verification suffers from privacy issues, which makes the path verification scheme vulnerable to various attacks, affecting network reliability, privacy, availability, and service quality. Specifically, path verification that lacks path privacy protection may expose sensitive information (such as physical location) of nodes on the path, thereby compromising the security of nodes on the path. If the path information of the forwarding path is not protected, some key nodes will be identified and destroyed, which may cause large-scale downtime. In addition, if the privacy of the node index on the path is not protected, the intermediate nodes can easily identify the source node and the destination node, thereby compromising the anonymity of the source node and the destination node. In addition, even if the path information is hidden, but the node index information is not protected, a malicious node only needs to control a part of the nodes on the path to obtain the entire forwarding path effortlessly. Therefore, when both the path information and the path index are protected, the nodes on the path can only identify their neighbors of the previous hop and the next hop, and cannot discover their index information on the forwarding path. Therefore, path privacy protection, including path information privacy and path index privacy, is necessary for path verification.
[0005] Since the proof needs to occupy the space of the data packet, the larger the space available for data transmission, the smaller the proof must be. In addition, in the privacy-preserving path verification method, the faster the data packets are sent, the less time the intermediate nodes have to spend processing a data packet (i.e., verifying path compliance and identifying the next hop). Therefore, it is a challenge to build a path verification scheme that preserves path privacy, has a constant proof size, and is efficient. Summary of the invention
[0006] In order to solve the deficiencies in the prior art, the present invention provides a path protection and verification method in a path-aware network data plane.
[0007] At the same time, a path protection and verification system in a path-aware network data plane that can implement the above method is also provided.
[0008] The technical solution adopted by the present invention is:
[0009] A path verification method supporting path hiding comprises the following steps:
[0010] S1) Establishing a path verification system and generating necessary system parameters;
[0011] Controller sets safety parameters 1 λ , use the Setup algorithm to establish the path verification system and generate system parameters SP = {p, β, H1, H2, T x (·)}; where: p is a large prime number set by the system, β is a random number, H1 and H2 are collision-resistant hash functions, T x (·) is Chebyshev mapping;
[0012] S2) The terminal node and the routing node register at the controller and obtain a pair of public and private keys;
[0013] S3) The source node initiates a forwarding path acquisition request from the controller, receives a forwarding path for data transmission, and then generates a path verification evidence PVP based on the forwarding path;
[0014] S4) The source node packages the communication data sent to the destination node and the path verification evidence PVP generated based on the forwarding path to form a data packet, and forwards the data packet to the next routing node according to the forwarding path;
[0015] S5) The routing node receives the data packet, verifies the path verification evidence and parses the next routing node. After the verification is passed, the data packet is forwarded to the next routing node, and the data packet is verified and parsed in sequence until it is sent to the destination node.
[0016] Further preferably, the step S1) is specifically:
[0017] (1.1) Controller sets safety parameters 1 λ , select a large prime number p, and select two collision-resistant hash functions H1: and H2:{0,1} * →{0,1} l To calculate the necessary metadata, where represents the set {0,1,…,p-1};
[0018] (1.2) Determine a symmetric encryption scheme {Enc,Dec} for encrypting messages and calculating MAC evidence; where Enc represents the encryption algorithm for the encryption scheme, and Dec represents the decryption algorithm for the symmetric encryption scheme;
[0019] (1.3) Select a random number and the Chebyshev map T x (·), x represents a random variable;
[0020] (1.4) Generate system parameters SP = {p, β, H1, H2, T x (·)}.
[0021] Further preferably, in step S2), the controller executes the KeyGen algorithm to generate a key for the node, specifically:
[0022] (2.1) The source node, destination node and routing node are registered at the controller respectively;
[0023] (2.2) The controller executes the KeyGen algorithm for the source node N0 and the transmission node N i(i=1, 2, ..., n) calculate the corresponding private key sk i =H1(N i ||α i ) and the public key The random number The transmission node includes the routing node N i (i=1, 2, ..., n-1) and destination node N n .
[0024] Further preferably, in step S3), the source node executes the PathGen algorithm to generate the path verification evidence PVP, specifically:
[0025] (3.1) The source routing node initiates a path acquisition request to the controller and receives the path information sent by the controller. n );
[0026] (3.2) The source node selects a random number And calculate the i The session key r i =T s (pk i )(i=1,…,n), and then calculate the first parameter a of the path hidden one by one i =H2(N i ||r i )(i=1,2,…,n), where {a1,a2,…,a n} are n numbers that are mutually prime, and then the session public key T is calculated s (β);
[0027] (3.3) The source node uses the session key r n Encrypt path information to get path encryption information And calculate the session identifier id = H2 (path e ||Time||T s (β)), where Time is the current timestamp, T s (β) represents the session public key;
[0028] (3.4) The source node calculates the short summary σ = H2(id||Time||T s (β)||payload), and use the short summary σ to calculate the node evidence δ0=Enc of the source node N0 s (σ||N0), where payload is the data unit of the data packet, and finally the transmission routing node N is calculated one by one i Corresponding node evidence δ i-1 Represents routing node N i-1Node evidence;
[0029] (3.5) The source node uses the short summary σ and node evidence δ obtained in step (3.4) i-1 Generate MAC evidence MAC i =H2(σ||N i ||N i-1 ||δ i-1 ), and using MAC evidence calculate where b i is the second parameter hidden by the path and satisfies b i <a i (i=1,2,…,n), N i-1 N i The previous jump, N i+1 N i The next hop is defined as N n The next hop is itself N n , then the source node uses (a i ,b i ) The following set of equations (1) constructed by Calculate the path compliance evidence P to achieve path hiding;
[0030]
[0031] (3.5) The source node sets the path verification evidence PVP = id || Time || T s (β)||path e ||P||δ0 is encapsulated into data packet D p In the StealthPathHeader;
[0032] (3.6) The source node sends the data packet D p Forwarded to the next hop node N1.
[0033] Further preferably, in step S5), the routing node receives the data packet, verifies the path verification evidence using the PathVerify algorithm and parses the next routing node, and after the verification is passed, updates the node evidence using the ProofUpdate algorithm and forwards the data packet to the next routing node. The specific method of sequentially verifying and parsing the data packet is as follows:
[0034] (5.1) Routing node N i From routing node N i-1 Data packet D is received at (i=1,2,…n-1) p When routing node N i Parse the path verification evidence to obtain PVP = id | | Time | | T s (β)||path e ||P||δi-1 , and check the correctness of the session identifier through equation (2);
[0035]
[0036] (5.2) Routing node N i According to the same principle as step (3.4), the short summary σ = H2(id||Time||T s (β)||payload), session key and the first parameter a of the path is hidden i =H2(N i ||r i );
[0037] (5.3) Routing node N i Using the first parameter a hidden by the path i and the path compliance evidence P to calculate the path hidden second parameter b i =P mod a i , where mod is the modulus operation, and the second parameter b that hides the path i Parsed as N i+1 ||MAC i ;
[0038] (5.4) Routing node N i Use the following equation (3) to check the correctness of the MAC proof;
[0039]
[0040] If any correctness verification fails, the PathVerify algorithm outputs 0, and then the routing node N i The data packet is discarded; otherwise, the PathVerify algorithm outputs 1 and the routing node N i Execute ProofUpdate to update node evidence;
[0041] (5.5) Judge, if N i and N i-1 If both parties perform steps (5.1)-(5.4) honestly and correctly, the MAC evidence verification is successful; otherwise, the packet D p If the packet is not forwarded via the pre-specified path, it is discarded.
[0042] Further preferably, in step 5.4), the routing node N i Execute ProofUpdate to update the node evidence, specifically: routing node N i calculate And use δ i Replace node evidence δ in PVP evidencei-1 , then routing node N i Forward the packet to its next hop N i+1 , next hop address N i+1 is calculated from the path compliance evidence P.
[0043] Further preferably, in step S5), the destination node receives the last routing node N n-1 When forwarding a data packet, it is processed according to the following steps, specifically:
[0044] (5.6) When the destination node receives the data from the last routing node N n-1 Data packet D p When, the routing node parses the path verification evidence PVP;
[0045] (5.7) The routing node executes the PathVerify algorithm to verify the correctness of the path verification evidence PVP. When parsing the next hop address and MAC evidence from the path compliance evidence P, the destination node N n The next hop address is found to be N n , indicating N n is the destination node, destination node N n Using the session key r n Decryption path encrypted information path e Get path information path=(N0,N1,…,N n ), and can check whether its previous hop node is N n-1 ; If the previous hop node is not N n-1 , destination node N n The data packet will be discarded, otherwise, the data packet will be stored;
[0046] (5.8) Destination node N n Send confirmation information to source node N0 That is, the path verification of the hidden path is completed.
[0047] The present application also provides a path verification system supporting path hiding, which is used to implement the above-mentioned path verification method supporting path hiding; the system includes:
[0048] The controller is used to construct the path verification system and generate the necessary system parameters SP = {p, β, H1, H2, T x (·)};
[0049] The source node is used to initiate a path request from the controller and obtain a forwarding path, and then generate a shared session key with the nodes on the path. Then, the source node generates a path verification proof PVP. The source node establishes a session and transmits data packets to the routing node according to the pre-designed path;
[0050] Routing nodes are used to receive data packets transmitted by source nodes and verify the path verification evidence PVP carried by the data packets to check whether the data packets are delivered according to the pre-designed path. If the verification passes, the node evidence is updated and the data packets are forwarded.
[0051] The destination node is used to receive the data packet transmitted by the routing node and verify the evidence PVP carried by the data packet. If the verification is successful, it sends a confirmation message to the source node, otherwise, the data packet is discarded.
[0052] Further preferably, the routing node is at least one;
[0053] If there are multiple routing nodes, when the routing node N i-1 Data packet D is received at (i=1,2,…n-1) p When routing node N i Execute the PathVerify algorithm to verify the path verification evidence PVP. If any routing node N i If the correctness verification fails, the PathVerify algorithm outputs 0 and discards the data packet; otherwise, the PathVerify algorithm outputs 1, executes ProofUpdate to update the node evidence, and continues to forward the data packet to the next hop.
[0054] A path verification storage medium supporting path hiding is also provided, which is used to store a software program, wherein the software program includes the above-mentioned path verification method supporting path hiding.
[0055] Compared with the prior art, the path verification method, system and storage medium supporting path hiding of the present invention have the following beneficial effects:
[0056] 1) The method of the present application utilizes the StealthPath algorithm to ensure that data packets can be forwarded along a pre-designed path, protect path privacy during path verification, and improve verification efficiency. Moreover, in StealthPath, evidence is generated in a chain manner using lightweight symmetric cryptography, ensuring that nodes on the path can confirm the path compliance of all upstream nodes, ensuring that data packets of all nodes can be forwarded correctly, and reducing computing and communication costs.
[0057] 2) This application proposes a method of evidence aggregation that can not only reduce the evidence size to a constant proof size, but also protect the path privacy of nodes on the path. By using the Chinese remainder theorem, the evidence of path compliance is aggregated into a single evidence, reducing the evidence size from a linear size to a constant size. In addition, without knowing the node path index information and compromising the path privacy of other nodes, an intermediate path node can extract its path compliance evidence and next hop address from the aggregated evidence, achieving path privacy.
[0058] 3) This application demonstrates through security analysis that StealthPath can achieve the expected security goals. In addition, experimental results show that compared with the most advanced schemes, StealthPath is efficient and feasible in terms of data packets and computing overhead, and can effectively prevent malicious nodes from cheating in the data forwarding stage, especially preventing path leakage attacks, session link attacks, packet modification attacks and replay attacks. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 This is a working principle diagram of path protection and verification in the data plane of a path-aware network;
[0060] Figure 2 A flowchart of a path verification method supporting path hiding;
[0061] Figure 3 for Figure 2 The specific processing flow chart of the data packet delivery phase;
[0062] Figure 4 This is a schematic diagram of the data packet header structure of StealthPath;
[0063] Figure 5 The comparison chart of packet header sizes of ICING, 2PNPV and StealthPath;
[0064] Figure 6 The comparison chart of bandwidth increment of ICING, 2PNPV and StealthPath is shown in the figure;
[0065] Figure 7 Comparison chart of packet generation time for ICING, 2PNPV, and StealthPath;
[0066] Figure 8 The experimental time for 20 packets and generation for the StealthPath solution;
[0067] Fig. 9 Comparison chart of path evidence verification time of ICING, 2PNPV and StealthPath;
[0068] Fig.10 Comparison of path evidence update time of ICING, 2PNPV and StealthPath. DETAILED DESCRIPTION
[0069] The technical solution of the present application is now further described in conjunction with the accompanying drawings and embodiments, but the present application is not limited to the following implementation methods.
[0070] In order to ensure the security of the method proposed in this embodiment, the following assumptions are required:
[0071] 1) The adversary cannot destroy the terminal host, that is, the source node and the destination node are honest.
[0072] 2) The public keys of all nodes in the network are known and available. In StealthPath, the controller can obtain the public key during the key generation phase.
[0073] The path verification method supporting path hiding in this embodiment is implemented based on a path verification scheme (ie, StealthPath) in a path-aware network, which focuses on protecting path privacy and improving verification efficiency.
[0074] 1) StealthPath uses lightweight symmetric cryptography to generate nested proofs and ensure that all nodes on the path effectively check the compliance of the forwarding path.
[0075] 2) StealthPath proposes evidence aggregation to reduce the evidence size to a constant size, thereby reducing bandwidth consumption.
[0076] 3) StealthPath allows nodes on the path to extract their proofs and next-hop addresses from the aggregated proof without leaking the path index and path length, further protecting the path privacy.
[0077] 4) StealthPath ensures path privacy and is secure against various attacks.
[0078] The network of this embodiment is composed of a control plane and a data plane, and consists of four entities: a controller located in the control plane, a source node, a destination node, and 1 to n-1 routing nodes located in the data plane.
[0079] The controller is used to construct the path verification system and generate the necessary system parameters SP = {p, β, H1, H2, T x (·)}; Located in the control plane and secure, the routing nodes located in the data plane can obtain public and private keys and path information from the controller through a secure channel.
[0080] The source node hopes that the data packet can be sent to the target node according to the pre-designed network path. In addition, the network path should be verifiable and prevent the leakage of path privacy, mainly including path information and path index privacy. The specific source node is used to initiate a path acquisition request from the controller and obtain the path information, and then generate a shared session key with each node on the path. Then, the source node generates a path verification evidence PVP. The source node establishes a session hidden path and transmits data packets to the routing node according to the pre-designed path.
[0081] Routing nodes are used to receive data packets transmitted by source nodes and verify the evidence PVP carried by the data packets to check whether the data packets are delivered according to the pre-designed path. If the verification is successful, the node evidence is updated and the data packets are forwarded.
[0082] The destination node is used to receive the data packet transmitted by the routing node and verify the evidence PVP carried by the data packet. If the verification is successful, it sends a confirmation message to the source node, otherwise, the data packet is discarded.
[0083] In order to protect the compliance of the path and the privacy of the forwarding path during the data packet transmission, the path verification method supporting path hiding of the present application can be implemented by the path verification system supporting path hiding, combined with Figure 1 and Figure 2 , Figure 3 As shown, it can be completed by the following steps:
[0084] S1) Establishing a path verification system and generating necessary system parameters;
[0085] Controller sets safety parameters 1 λ , run the Setup algorithm to establish the path verification system and generate system parameters SP = {p, β, H1, H2, T x (·)}; where: p is a large prime number, β is a random number, H1 and H2 are collision-resistant hash functions, T x (·) is a Chebyshev mapping; specifically,
[0086] (1.1) Controller sets safety parameters 1 λ , select a large prime number p, and select two collision-resistant hash functions H1: and H2:{0,1} * →{0,1} l To calculate the necessary metadata, where represents the set {0,1,…,p-1};
[0087] (1.2) Determine a symmetric encryption scheme {Enc,Dec} for encrypting messages and calculating MAC evidence; where Enc represents the encryption algorithm for the encryption scheme, and Dec represents the decryption algorithm for the symmetric encryption scheme;
[0088] (1.3) Select a random number and the Chebyshev map T x (·), x represents a random variable;
[0089] (1.4) Generate system parameters SP = {p, β, H1, H2, T x (·)}.
[0090] S2) The terminal node and the routing node register at the controller and obtain a pair of public and private keys;
[0091] The source node, destination node and routing node are registered at the controller respectively, and then the controller calculates the public and private key pairs corresponding to the source node N0 and the transmission node by executing the KeyGen algorithm. Specifically, the transmission node includes the routing node N i (i=1, 2, ..., n-1) and destination node N n , the source node N0 and routing node N calculated by the controller i (i=1, 2, ..., n-1) and destination node N n The corresponding private key sk i =H1(N i ||α i ), the corresponding public key The random number
[0092] S3) The source node initiates a forwarding path acquisition request from the controller, receives a forwarding path for data transmission, and then generates a path verification evidence PVP based on the forwarding path;
[0093] (3.2) The source node selects a random number And calculate the i The session key r i =T s (pk i )(i=1,…,n), and then calculate the first parameter a of the path hidden one by one i =H2(N i ||r i )(i=1,2,…,n), where {a1,a2,…,a n} are n numbers that are mutually prime, and then the session public key T is calculated s (β);
[0094] (3.3) The source node uses the session key r nEncrypt path information to get path encryption information And calculate the session identifier id = H2 (path e ||Time||T s (β)),
[0095] Where Time is the current timestamp, T s (β) represents the session public key;
[0096] (3.4) The source node calculates the short summary σ = H2(id||Time||T s (β)||payload), and use the short summary σ to calculate the node evidence δ0=Enc of the source node N0 s (σ||N0), where payload is the data unit of the data packet, and finally the transmission routing node N is calculated one by one i Corresponding node evidence δ i-1 Represents routing node N i-1 Node evidence;
[0097] (3.5) The source node uses the short summary σ and node evidence δ obtained in step (3.4) i-1 Generate MAC evidence MAC i =H2(σ||N i ||N i-1 ||δ i-1 ), and using MAC evidence calculate where b i is the second parameter hidden by the path and satisfies b i <a i (i=1,2,…,n), N i-1 N i The previous jump, N i+1 N i The next hop is defined as N n The next hop is itself N n , then the source node uses (a i ,b i ) The following set of equations (1) constructed by Calculate the path compliance evidence P to achieve path hiding;
[0098]
[0099] (3.5) The source node sets the path verification evidence PVP = id || Time || T s (β)||path e ||P||δ0 is encapsulated into data packet D p In the StealthPathHeader;
[0100] (3.6) The source node sends the data packet D p Forwarded to the next hop node N1.
[0101] S4) The source node packages the communication data sent to the destination node and the path verification evidence PVP generated based on the forwarding path to form a data packet, and forwards the data packet to the routing node according to the forwarding path, and the routing node forwards it one by one;
[0102] S5) The routing node receives the data packet, verifies the path verification evidence and parses the next routing node. After the verification is passed, the data packet is forwarded to the next routing node, and the data packet is verified and parsed in sequence until it is sent to the destination node.
[0103] (5.1) Routing node N i From routing node N i-1 Data packet D is received at (i=1,2,…n-1) p When routing node N i Parse the path verification evidence to obtain PVP = id | | Time | | T s (β)||path e ||P||δ i-1 , and check the correctness of the session identifier through equation (2);
[0104]
[0105] (5.2) Routing node N i According to the same principle as step (3.4), the short summary σ = H2(id||Time||T s (β)||payload), session key and the first parameter a of the path is hidden i =H2(N i ||r i );
[0106] (5.3) Routing node N i Using the first parameter a hidden by the path i and the path compliance evidence P to calculate the path hidden second parameter b i =Pmod a i , where mod is the modulus operation, and the second parameter b that hides the path i Parsed as N i+1 ||MAC i ;
[0107] (5.4) Routing node N i Use the following equation (3) to check the correctness of the MAC proof;
[0108]
[0109] If any correctness verification fails, the PathVerify algorithm outputs 0, and then N i The data packet is discarded; otherwise, the PathVerify algorithm outputs 1 and the routing node N i Execute ProofUpdate to update the node evidence, that is, routing node N i calculate And use δ i Replace node evidence δ in PVP evidence i-1 , then routing node N i Forward the packet to its next hop N i+1 , next hop address N i+1 is calculated from the path compliance evidence P (see the operation in step 5.3).
[0110] (5.5) Judge, if N i and N i-1 If both parties perform steps (5.1)-(5.4) honestly and correctly, the MAC evidence verification is successful; otherwise, the packet D p If the packet is not forwarded via the pre-specified path, it is discarded.
[0111] (5.6) When the destination node receives the data from the last routing node N n-1 Data packet D p When, the routing node parses the path verification evidence PVP;
[0112] (5.7) The routing node executes the PathVerify algorithm to verify the correctness of the path verification evidence PVP. When parsing the next hop address and MAC evidence from the path compliance evidence P, the destination node N n The next hop address is found to be N n , indicating N n is the destination node, destination node N n Using the session key r n Decryption path encrypted information path e Get path information path=(N0,N1,…,N n ), and can check whether its previous hop node is N n-1 ; If the previous hop node is not N n-1 , destination node N n The data packet will be discarded, otherwise, the data packet will be stored;
[0113] (5.8) Destination node N n Send confirmation information to source node N0 That is, the path verification of the hidden path is completed.
[0114] The path verification method supporting path hiding of the present invention can be implemented by software, and the corresponding software program can be stored in a readable storage medium, such as a CD, a hard disk, a floppy disk, etc.
[0115] In order to verify the performance of the present method, the inventors compared the performance of the commonly used methods ICING, 2PNPV and the StealthPath solution of the present application. For these three solutions, the packet overhead and computational overhead were first evaluated, and then experiments were conducted to test their performance.
[0116] The experiment was conducted 20 times, and the average result was obtained as the experimental result. The experimental environment was a 1.10GHz Intel Core i7-10710U CPU and 4GB memory, and the operating system was Ubuntu 18.04LTS. The experimental parameters SP were selected as follows: p was a 160-bit prime number, β was a 60-bit random number, H1 and H2 were hash functions using SHA256 for hash function calculation, and T x (·) is a Chebyshev map, and the cipher block chaining mode (CBC mode) of the Advanced Data Encryption Standard (AES) algorithm is used for the symmetric encryption scheme {Enc,Dec}. The experiment selects a path length of 10, that is, n=10, and implements the above steps S1)-S5).
[0117] 1) Path Verification Scheme
[0118] Table 1 Comparison of path verification schemes
[0119]
[0120] Note: $n$ represents the length of the forwarding path; “√” represents support; “×” represents not support; “*” represents protecting the path privacy but leaking the length of the forwarding path.
[0121] From the comparison in Table 1 above, it can be seen that ICING focuses on path verification without protecting path privacy, while 2PNPV also focuses on path verification that protects privacy but leaks the length of the forwarding path, which will generate a lot of computational burden and bandwidth overhead during data packet transmission.
[0122] 2) Packet overhead
[0123] Compared to traditional IP-based data transmission, StealthPath requires a larger packet header (e.g. Figure 4 The Stealth Header in the packet is used to implement privacy-preserving path verification. In the following, we will roughly quantify the overhead of the packet. The Stealth header includes the session identifier id, the timestamp Time, and the session public key T s(β), encrypted path e , node evidence σ and path compliance evidence P, where id is 16 bytes, Time is 4 bytes, T s (β) is 48 bytes (160-bit security level), path e and σ are both 64 bytes, and the size of the node proof P depends on the path length (which increases slowly). Figure 5 As shown in the figure, the size of the packet header for different path lengths is evaluated. In the three schemes, the size of the packet header increases with the path length. When the forwarding path length of a packet is 5, the packet header sizes of ICING, 2PNPV and StealthPath are 205 bytes, 456 bytes and 288 bytes respectively. Compared with 2PNPV, StealthPath saves nearly 55% of the packet header size. Among all three schemes, 2PNPV has the largest overhead, and when the path length is greater than 8, the packet header size of ICING is larger than StealthPath.
[0124] In order to measure the network bandwidth overhead, a dataset of real Internet traffic is used. The total number of packets observed in 15 minutes is 122,541,860, with a total size of 59,376MB. The bandwidth overhead is as follows: Figure 6 As shown in the figure, compared with IP, when the path length is 5, StealthPath increases by 288-20=268 bytes. Therefore, the total increased bandwidth is The total bandwidth increased by ICING and 2PNPV are and Compared with 2PNPV, StealthPath will save nearly 34% of bandwidth. When the path length exceeds 8, the bandwidth increment of StealthPath is the lowest among the three solutions.
[0125] 3) Cost calculation
[0126] The computational performance of the StealthPath of the present application is compared with that of 2PNPV and ICING. Some symbols used in the comparison are defined in Table 2.
[0127] Table 2 Symbols and their meanings
[0128]
[0129]
[0130] The computational cost of StealthPath is compared with ICING and 2PNPV, and the results are summarized in Table 3.
[0131] Table 3 Comparison of computational overhead
[0132]
[0133] For the key generation phase, 2PNPV requires 2T Exp +T H +T Add +T Mul The computational cost of generating keys for each node is higher than that of ICING and StealthPath. The StealthPath solution only needs T H +T T , which is the lowest among the three schemes. In the simulation experiment, the average time for ICING, 2PNPV and StealthPath to generate a key for a node is 1.11ms, 3.39ms and 1.06ms respectively.
[0134] In the packet creation phase, all three schemes generate packet evidence for path verification. As can be seen from Table 3, the computational costs of the three schemes are in the same order of magnitude and increase linearly with the path length. Figure 7 As shown in Figure 2, ICING has the lowest computation time because ICING does not guarantee path privacy. For 2PNPV and StealthPath that support path privacy protection, when the path length exceeds 6, StealthPath takes more computation time. Figure 7 In the figure, 20 simulation experiments of StealthPath on packets with different path lengths are shown. Since StealthPath needs to find an appropriate random value s to satisfy is a number of n mutually prime numbers, so the time to generate evidence under the same path length fluctuates. The average packet creation time for a path length of 5 is 16.59ms, as shown in Figure 8 Ideally, most of the path validation work should be done by the source node during the packet creation phase, and path validation and update should have constant size / complexity, independent of the path length.
[0135] During the packet delivery phase, each node on the path verifies the compliance of the path and updates the node evidence. In ICING, each node verifies the evidence of the upstream node and updates the evidence of the downstream node. Therefore, the time for evidence verification increases as the path index increases, while the time for evidence update decreases as the path index decreases. As shown in Table 3, Fig. 9 and Fig.10 As shown, the total computational cost of evidence verification and update is (n+2)T PRF +nT H +(n-1)(T Exp +T XOR), when the path length is 10, the average total time for each node to verify and update the evidence is 10.40ms. In 2PNPV, each node must find its own path compliance evidence from all path compliance evidences one by one, and the computational cost is In the simulation experiment, the average time for verifying and updating evidence is 2.65ms and 0.09ms respectively. For the StealthPath scheme, the computational cost of evidence verification and update is constant, which is 4T H +T Enc +T T Specifically, the average time for proof verification is 1.18ms, and the average time for updating proof is 0.084ms. Fig. 9 and Fig.10 Therefore, among the three schemes, only our StealthPath has a constant overhead in the packet delivery phase, which shows that our StealthPath is efficient and practical.
[0136] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A path verification method supporting path hiding, characterized in that: The following steps are involved: S1) establishing a path verification system and generating necessary system parameters; Controller setting safety parameters 1 λ , use the Setup algorithm to establish the path verification system and generate system parameters SP = {p, β, H1, H2, T x (·)}; Where: p is a large prime number set by the system, β is a random number, H1 and H2 are collision-resistant hash functions, T x (·) is Chebyshev mapping; S2) The terminal node and routing node register with the controller and obtain a pair of public and private keys; S3) The source node initiates a forwarding path acquisition request from the controller, receives the forwarding path for data transmission, and then generates a path verification proof PVP based on the forwarding path; specifically: (3.1) The source node and the routing node respectively initiate a path acquisition request to the controller and receive the path information sent by the controller. n ); (3.2) The source node selects a random number And calculate the N i The session key r i =T s (pk i )(i=1,…,n), and then calculate the first parameter a of the path hidden one by one i =H2(N i ||r i )(i=1,2,…,n), where {a1,a2,…,a n } is a set of n mutually prime numbers, and then the session public key T is calculated s (β); (3.3) The source node uses the session key r n Encrypt path information to obtain path encryption information And calculate the session identifier id = H2 (path e ||Time||T s (β)), where Time is the current timestamp, T s (β) represents the session public key; (3.4) The source node calculates the short summary σ = H2(id||Time||T s (β)||payload), and use the short summary σ to calculate the node evidence δ0=Enc of the source node N0 s (σ||N0), where payload is the data unit of the data packet, and finally the transmission routing node N is calculated one by one i Corresponding node evidence δ i-1 Indicates routing node N i-1 Node evidence; (3.5) The source node uses the short summary σ and node evidence δ obtained in step (3.4) i-1 Generate MAC evidence MAC i =H2(σ||N i ||N i-1 ||δ i-1 ), and use MAC evidence MAC i Calculate b i =N i+1 ||MAC i , where b i The second parameter hidden in the path and satisfying b i <a i (i=1,2,…,n), N i-1 N i The previous jump, N i+1 N i The next hop is defined as N n The next hop is itself N n , then the source node uses (a i ,b i ) The following equations (1) are constructed to calculate the path compliance evidence P to achieve path hiding; (3.5) The source node verifies the path proof PVP = id || Time || T s (β)||path e ||P||δ0 is encapsulated into data packet D p In the StealthPathHeader; (3.6) The source node sends the data packet D p Forward to the next hop node N1; S4) The source node packages the communication data to be sent to the destination node and the path verification evidence (PVP) generated based on the forwarding path into a data packet, and forwards the data packet to the routing node along the forwarding path, and the routing node forwards the data packet one by one; S5) The routing node receives the data packet, verifies the path verification evidence and resolves it to the next routing node. After verification, the data packet is forwarded to the next routing node, and the data packet is verified and resolved in sequence until it is sent to the destination node.
2. The path verification method supporting path hiding according to claim 1, characterized in that: The step S1) is specifically as follows: (1.1) Controller setting safety parameters 1 λ , choose a large prime number p, and choose two collision-resistant hash functions and H2:{0,1} * →{0,1} l To calculate the necessary metadata, where represents the set {0,1,…,p-1}; (1.2) Determine the symmetric encryption scheme {Enc, Dec} used to encrypt the message and calculate the MAC evidence; where Enc represents the encryption algorithm of the encryption scheme and Dec represents the decryption algorithm of the symmetric encryption scheme; (1.3) Select a random number and Chebyshev map T x (·), x represents a random variable; (1.4) Generate system parameters SP = {p, β, H1, H2, T x (·)}.
3. The path verification method supporting path hiding according to claim 1, characterized in that: In step S2), the controller executes the KeyGen algorithm to generate a key for the node, specifically: (2.1) The source node, destination node, and routing node are registered at the controller respectively; (2.2) The controller calculates the corresponding private key sk for the source node N0 and the transmitting node by executing the KeyGen algorithm i =H1(N i ||α i ) and public key The random number The transmission node includes the routing node N i (i=1, 2, ..., n-1) and destination node N n .
4. The path verification method supporting path hiding according to claim 1, characterized in that: In step S5), the routing node receives the data packet, verifies the path verification evidence using the PathVerify algorithm and resolves the next routing node. After the verification is passed, the node evidence is updated using the ProofUpdate algorithm and the data packet is forwarded to the next routing node. The specific method of sequentially verifying and resolving the data packet is as follows: (5.1) Routing node N i From routing node N i-1 Data packet D is received at (i=1,2,…n-1) p When routing node N i Parse the path verification evidence to obtain PVP=id||Time||T s (β)||path e ||P||δ i-1 , and check the correctness of the session identifier through equation (2); (5.2) Routing node N i The short summary σ=H2(id||Time||T s (β)||payload), session key and the first parameter a hidden in the path i =H2(N i ||r i ); (5.3) Routing node N i Use the first parameter a hidden by the path i and path compliance evidence P to calculate the second parameter b of the path hidden i =Pmod a i , where mod is the modulo operation, and the second parameter b of the path is hidden i Parsed as N i+1 ||MAC i ; ( 5.4) Routing Node N i Use the following equation (3) to check the correctness of the MAC evidence; If any correctness verification fails, the PathVerify algorithm outputs 0, and then the routing node N i Discard the data packet; otherwise, the PathVerify algorithm outputs 1, and the routing node N i Execute ProofUpdate to update node evidence; (5.5) Judge, if N i and N i-1 If both perform steps (5.1)-(5.4) honestly and correctly, the MAC evidence verification is successful; otherwise, the data packet D p If the packet is not forwarded via the pre-specified path, it is discarded.
5. The path verification method supporting path hiding according to claim 4, characterized in that: In step 5.4), routing node N i Execute ProofUpdate to update the node evidence, specifically: routing node N i calculate And use δ i Replace node evidence δ in PVP evidence i-1 , then routing node N i Forward the packet to its next hop N i+1 , next hop address N i+1 is calculated from the path compliance evidence P.
6. The path verification method supporting path hiding according to claim 4, characterized in that: In step S5), the destination node receives the last routing node N n-1 When forwarding data packets, it is processed according to the following steps: (5.6) When the destination node receives the data from the last routing node N n-1 Data packet D p When, the routing node parses the path verification evidence PVP; (5.7) The routing node executes the PathVerify algorithm to verify the correctness of the path verification evidence PVP. When parsing the next hop address and MAC evidence from the path compliance evidence P, the destination node N n Found that the next hop address is N n , indicating N n is the destination node, destination node N n Using the session key r n Decryption path encrypted information path e Get path information path=(N0,N1,…,N n ), and check whether its previous hop node is N n-1 ; If the previous hop node is not N n-1 , destination node N n The data packet will be discarded, otherwise, the data packet will be stored; (5.8) Destination node N n Send confirmation information to source node N0 That is, the path verification of the hidden path is completed.
7. A path verification system supporting path hiding, characterized in that: Used to implement the path verification method supporting path hiding as described in any one of claims 1 to 6; These include: Controller, used to build the path verification system and generate the necessary system parameters SP = {p, β, H1, H2, T x (·)}; The source node initiates a path request from the controller and obtains a forwarding path. It then generates a shared session key with the nodes on the path. The source node then generates a path verification proof (PVP), establishes a session, and transmits data packets to the routing node along the pre-designed path. Routing nodes are used to receive data packets transmitted by source nodes and verify the path verification proof (PVP) carried by the data packets to check whether the data packets are delivered according to the pre-designed path. If the verification passes, the node evidence is updated and the data packets are forwarded. The destination node is used to receive the data packet transmitted by the routing node and verify the evidence PVP carried in the data packet. If the verification is successful, it sends a confirmation message to the source node; otherwise, it discards the data packet.
8. The path verification system supporting path hiding according to claim 7, characterized in that: The routing node is at least one; If there are multiple routing nodes, when the routing node N i-1 Data packet D is received at (i=1,2,…n-1) p When routing node N i Execute the PathVerify algorithm to verify the path verification evidence PVP. If any routing node N i If the correctness verification fails, the PathVerify algorithm outputs 0 and discards the data packet; otherwise, the PathVerify algorithm outputs 1, executes ProofUpdate to update the node evidence, and continues to forward the data packet to the next hop.
9. A path verification storage medium supporting path hiding, characterized in that: Used to store a software program, wherein the software program includes the path verification method supporting path hiding according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method for determining bidirectional trustworthy routing in mobile Ad Hoc network
CN105471741A
Efficient path verification method under multi-path routing background
CN110213242A
Network path verification method and system based on SRv6
CN111585890A
Source and path verification mechanism based on dynamic label
CN114499920A
Identity verification of wireless beacons based on chain-of-trust
US20180176021A1
