CN116032827B - AODV-based PCN optimal path routing method - Google Patents

AODV-based PCN optimal path routing method Download PDF

Info

Publication number
CN116032827B
CN116032827B CN202310024582.6A CN202310024582A CN116032827B CN 116032827 B CN116032827 B CN 116032827B CN 202310024582 A CN202310024582 A CN 202310024582A CN 116032827 B CN116032827 B CN 116032827B
Authority
CN
China
Prior art keywords
path
node
route
transaction
payment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310024582.6A
Other languages
Chinese (zh)
Other versions
CN116032827A (en
Inventor
范玉婷
吴永东
陈静静
苏国海
林德嘉
卢娇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jinan University
Original Assignee
Jinan University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jinan University filed Critical Jinan University
Priority to CN202310024582.6A priority Critical patent/CN116032827B/en
Publication of CN116032827A publication Critical patent/CN116032827A/en
Application granted granted Critical
Publication of CN116032827B publication Critical patent/CN116032827B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an AODV-based PCN optimal path routing method, which comprises the following steps: s1, defining a lightning network model, abstracting a lightning network into an undirected graph, and defining attributes of a payment channel; s2, improving an AODV protocol, and establishing a transaction request by an initiator to perform route discovery; s3, constructing a candidate model, and adding a payment channel meeting the requirements to the candidate model after the routing process is completed; s4, selecting an optimal path, and selecting a path with maximum benefit according to the commission, the route hops and the maximum transactable amount. The method improves the message formats of the route request RREQ and the route response RREP, selects the path with the maximum profit for each node based on the rights and interests of each node, and improves the enthusiasm of the nodes to participate in forwarding, thereby improving the payment success rate.

Description

AODV-based PCN optimal path routing method
Technical Field
The invention belongs to the technical field of AODV routing and expansion under a block chain, and particularly relates to an AODV-based PCN optimal path routing method.
Background
To address this difficulty faced by blockchains, blockchain researchers have proposed a number of solutions, one of which is the off-chain transaction payment channel. The core idea of the under-chain solution is to put cumbersome and less important transaction processes in the under-chain payment channel, avoiding frequent inefficient and high commission transactions on the blockchain. To further increase scalability, multiple channels may be connected to form a Payment Channel Network (PCN), a widely used example of which is a lightning network.
In the payment channel network, an active routing protocol is adopted, so that each node needs to search for the next-hop node (the neighbor node directly connected with the channel) in a broadcast mode in order to search for the destination node, thus the node is required to have complete knowledge of the network topology, and a great amount of information needs to be sent in the process of searching for the payment path, so that unnecessary overhead is generated. In addition, the blockchain network can continuously have new nodes added and old nodes withdrawn, channel fund distribution changes and the like, and the topology structure can be changed. In summary, the cost overhead required to establish and maintain routes using active routing protocols is significant, and therefore it becomes critical to use protocols that can accommodate network changes as needed.
In addition, the Payment Channel Network (PCN) is divided into two forms of in-channel payment and cross-channel payment, wherein in-channel payment refers to when two parties of a transaction have a direct channel, and cross-channel payment refers to a payment channel which is not directly connected between the two parties of the transaction, then route searching is needed at this time, a payment path formed by linking a plurality of payment channels is formed through one or more intermediary nodes, and the intermediary nodes assist in completing the transaction and obtain a commission. The main challenge in achieving cross-channel payment is how to find the optimal path to both parties to the transaction through routing. However, in the existing research of payment channel networks, there are few route-related and most of the factors concerned are relatively single, and some important limitations such as channel capacity, timeliness, success rate, etc. are not considered. In addition, the existing route research does not design an optimal route aiming at different node roles in the payment channel network, and does not comprehensively consider multiple factors to select an optimal path.
Disclosure of Invention
The invention aims to overcome the defects and shortcomings of the prior art and provides an AODV-based PCN optimal path routing method.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
An AODV-based PCN optimal path routing method comprises the following steps:
S1, defining a lightning network model, abstracting a lightning network into an undirected graph, and defining attributes of a payment channel;
s2, improving an AODV protocol, and establishing a transaction request by an initiator to perform route discovery;
S3, constructing a candidate model, and adding a payment channel meeting the requirements to the candidate model after the routing process is completed;
S4, selecting an optimal path, and selecting a path with maximum benefit according to the commission, the route hops and the maximum transactable amount.
Compared with the prior art, the invention has the following advantages and beneficial effects:
1. in the method, the route discovery process adopts an AODV protocol, which is an on-demand route (reactive route) protocol, and only establishes a route when needed, thereby avoiding the overhead of sending redundant messages caused by the adoption of an active route protocol by the traditional lightning network; the improved AODV protocol can be well adapted to a dynamically changing blockchain network.
2. The method selects the path with the maximum profit for each node based on the rights and interests of each node, and improves the enthusiasm of the nodes to participate in forwarding, thereby improving the payment success rate.
3. The method considers the capacity problem of each channel, divides the transaction amount according to the node wish of each path, and selects different guarantees the mobility in the PCN.
Drawings
FIG. 1 is a flow chart of the method of the present invention;
Fig. 2 is a process for route discovery in a PCN using improved AODV.
Detailed Description
The present invention will be described in further detail with reference to examples and drawings, but embodiments of the present invention are not limited thereto.
Examples
As shown in fig. 1, the present invention provides an AODV-based PCN optimal path routing method, which includes the following steps:
S1, defining a lightning network model, abstracting a lightning network into an undirected graph, and defining attributes of a payment channel; the method comprises the following steps:
Abstracting the lightning network into an undirected graph g= (V, E), wherein V is a set of all nodes and E is a set of payment channels between nodes;
for each participating node V /i e V, representing a user with a blockchain account and at least establishing an under-chain payment channel with one participant node;
For each edge e= (v i,vj) ∈e, representing the payment channel established between v i and v j, where v i is the sender and v j is the receiver;
each payment channel e= (v i,vj) has the following 4 attributes:
Transaction amount T i(vi,vj), representing the amount that sender v i wants to pay to receiver v j, the transaction amount for the same payment path should be equal;
a commission f i(Ti(vi,vj)) indicating that the sender v i needs to pay the receiver v j at the time of the transaction of T i(vi,vj), v j and intermediate transaction nodes following the path may obtain the commission by helping to forward the transaction;
Channel balance B i(vi,vj), representing the balance of node v i in channel e= (v i,vj), for guaranteeing the mobility of the channel, for node v i its channel balance B i(vi,vj), transaction amount T i(vi,vj) and the fee f i(Ti(vi,vj) to be paid to node v j) need to satisfy:
Bi(vi,vj)≥Ti(vi,vj)+fi(Ti(vi,vj)) (1)
Otherwise, the construction of the transaction path is not participated, namely the candidate model is not added;
Tolerance time T i(Ti(vi,vj)), meaning that node v i can wait for v j to reveal the longest time of the key when the transaction of T i(vi,vj) is performed, and when the waiting time exceeds the tolerance time, the funds roll back and the transaction fails; for nodes on the same path, the tolerance time is decremented in sequence by the transaction initiator.
S2, improving an AODV protocol, and establishing a transaction request by an initiator to perform route discovery; the improvements of the AODV protocol include improvements to the route request RREQ and route response RREP, specifically:
The improved RREQ message format is specifically as follows:
RREQ=<ID,Sad,Dad,Psn,Ssn,Dsn,drreq,droute,a>
Wherein, the ID is a unique identification RREQ together with S ad; s ad,Ssn, the address of the transaction initiator node and the corresponding serial number; p sn, forwarding the sequence number of the last hop node of the RREQ message, and setting P sn as the current node after each node; d ad,Dsn, the address and the latest sequence number of the target receiver node; d rreq, the effective time of the RREQ message exceeds the effective time, no feedback signal is received, and the last hop node retransmits; d route, the effective time of the reverse route, and the update of each node to d route is gradually decreased; a is the transaction demand amount.
The improved RREP message format is specifically as follows:
RREP=<ID,Sad,Ssn,Psn,Dad,Dsn,drrep,droute,fee,Tmax,hop>
Wherein, the ID is a common unique identification RREP with S ad; s ad,Ssn, corresponding to the address and the serial number of the target receiving node; p sn, forwarding the sequence number of the last hop node of the RREP message, and setting P sn as the current node after each node; d ad,Dsn, corresponding to the address and serial number of the transaction initiator node; d rrep, the effective time of the RREP message exceeds the effective time, no feedback signal is received, and the last hop node retransmits; d route, the effective time of forward route, the update of d route by each node is gradually increased; fee is taken as an intermediate node, and the transaction initiating node is charged with the commission fee, so that a commission fee collection fee is formed; t max is the maximum amount willing to be forwarded in the path, namely the willing amount, which is determined by the node according to the demand amount a and the balance of the node in the path, and T max is set as the minimum value in the willing amount sequence of the passing node, namely the willing amount T max needs to be updated to be T max=min(Tmax_new,Tmax _old when passing through one node; and for each node v i its willingness amount T max and the commission f i(Ti(vi,vj to be paid to v j) should not exceed the channel balance B i(vi,vj), i.e. T max+fi(Ti(vi,vj))≤Bi(vi,vj); hop, starting from the target node, is increased by one every time a node passes.
As shown in fig. 2, in step S2, performing route discovery specifically includes:
S21, determining a transaction demand amount a and a transaction receiver v d by a transaction initiator v s, and creating a payment request R= (v s,vd, a, t), wherein t is the maximum route discovery tolerance time, namely the maximum time consumption of a routing process acceptable by the transaction initiator v s;
S22, when the initiator determines v s transaction demand amount a and a receiver v d, and creates an immediate payment request R= (v s,vd, a, t), and then checks the routing table to find that no route entry to v d exists, broadcasting a routing request RREQ, and searching a routing path capable of reaching a destination node;
the improved AODV protocol does not work if there is an active route between the initiator v s and the recipient v d to each other;
S23, judging whether the RREQ is received by the intermediate node or not according to the ID and S ad, if yes, discarding the RREQ message, and if no, performing the following operations:
s24, judging whether the destination node is self, if so, directly sending a route response RREP, and if not, carrying out the following operations:
S25, checking whether a valid route to a destination node exists and whether a channel has a sufficient balance; if the route table records the effective route to the destination node and the funds are sufficient, the following steps are performed:
S26, comparing S sn in the RREQ with the serial number of the table item of which the destination node address is S ad in the routing table, and updating the routing table to the maximum value of the two;
s27, establishing a reverse route;
S28, sending a route response RREP;
s29, updating the RREQ, and forwarding the RREQ to continuously search for the destination node;
S210, judging whether the RREP is received by the intermediate node or not according to the ID and S ad, if yes, discarding the RREP message, and if not, performing the following operations:
S211, judging whether the destination node is self, if so, selecting a demand path according to the T max, the commission and the route hop count; if not, continuing the following operations:
S212, checking whether an effective route to a destination node exists and whether a channel has enough balance, if the effective route exists in a routing table and the channel funds are sufficient, directly sending an RREP to a transaction initiator node, and if the route is terminated, otherwise, continuing the following operations:
S213, establishing a forward route;
S214, updating the RREP, and forwarding the RREP to continuously search for the transaction initiator node.
In step S214, the node has the option to autonomously decide whether to continue forwarding the RREP and participate in route establishment.
S3, constructing a candidate model, and adding a payment channel meeting the requirements to the candidate model after the routing process is completed; the method comprises the following steps:
After the routing process in step S2 is completed, a payment channel network composed of N paths, p1, p2, and pN are formed, and it is verified whether the payment channel involved in each path satisfies formula (1), and if the path does not satisfy formula (1), the path does not participate in the construction of the candidate model, and the path satisfying formula (1) is added into the candidate model.
For example, for node v i, if its balance B i(vi,vj on the path (v i,vj) is less than the sum of the maximum willingness amount T max and the commission f i(Ti(vi,vj) of the path, i.e., B i(vi,vj)<Tmax+fi(Ti(vi,vj), then the path on which it is located (v i,vj) and all payment paths after the path to which it belongs are not added to the candidate model.
The step S3 specifically comprises the following steps:
S31, of the N paths routed from v s to v d, one path sequence p1 associated with the payment request R is expressed as:
v0→v1→v2→...→vn-1→vn
Wherein v 0 is the payment initiator v s,vn is the target receiver v d, and the corresponding payment channel obtained by the path sequence is:
(v0,v1),(v1,v2),...,(vn-1,vn)
s32, regarding the paths selected into the candidate model, consider the network equalization problem:
assuming that the kth path transaction amount is T pk(vs,vd), the channel needs to satisfy the transaction demand amount a in order to ensure balance of the payment channel network:
s33, the total amount P actually required to be paid by a payment initiator is required to satisfy the following conditions:
S34, in the path p1 in the candidate model, there is v 1,v2,...,vn-1 at the node that needs to collect the commission, so the commission that the payment initiator v s needs to pay additionally in the path p1 is:
S35, obtaining the total transaction fee F P(vs,vd) required to be paid by the transaction initiator v s corresponding to the transaction request R according to the transaction fee required to be paid by the path p 1:
S4, selecting an optimal path, and selecting a path with maximum benefit according to the commission, the route hops and the maximum transactable amount; the method comprises the following steps:
S41, the initiating node corresponding to each transaction receives N RREP from different candidate route paths, and performs optimal multipath selection according to fee, hop and T max in the RREP;
S42, summing the handling fee sets fee required by each candidate path to obtain F p1,Fp2,...,FpN respectively, wherein the handling fee required by each path is represented; the corresponding route hop count and the maximum amount of tradable money of each candidate path are H p1,Hp2,...,HpN and T p1,Tp2,...,TpN respectively;
S43, on the basis of S42, defining an attribute tuple P1 to represent the maximum transactable amount corresponding to each path, the commission and the route hop count:
P1=(Tp1,Fp1,Hp1),P2=(Tp2,Fp2,Hp2),...,PN=(TpN,FpN,HpN)
S44, starting from the maximum tradable amount, selecting path combinations which accord with the following linear inequality from all candidate paths:
∑Tpi≥a (2)
The solution of the linear inequality is noted as:
S={i∈N+|Ci=Ci1p1+Ci2p2+...+CiNpN}
Wherein, C ij = 0 or 1, j= {1,2,., N }, when C ij = 1 indicates that the candidate path conforms to formula (2), jointly forming a solution of formula (2), and participating in the construction of the target model; when C ij =0 indicates that the candidate path is not selected for the construction of the target model, there is a proper subset of the solution S of the linear inequality between the automatic filtering combinations, for example, if:
Ci=Pa+Pb+Pc
Cj=Pa+Pb+Pc+Pd=Ci+Pd
At this point, C j has the proper subset C i, then C j is automatically culled, and so on.
That is, if C m,Cn ε S is present, the formula is satisfied:
Cm=∑pi+Cn
Then, C m is put into set S, as will be apparent Finally, the solution of equation (2) should be/>
S45, assuming that n combinations of the n combinations satisfying the requirement of S44 are found, that is, after the final solution of the linear inequality (2) is calculated, these combinations are denoted as C1, C2, cn, that is:
P11,P12,...,P1k
P21,P22,...,P2l
......
Pn1,Pn2,...,Pnm
S46, calculating the total commission Ci.F and the maximum route hop count Ci.H of each combination, wherein the total commission Ci.F and the maximum route hop count Ci.H are respectively as follows:
C1.F,C2.F,...,Cn.F;
C1.H,C2.H,...,Cn.H
Two weight coefficients w 1,w2 are adopted to assist in evaluating the total commission and the maximum route hop count of each path combination, and then the corresponding cost of each path combination is:
cost=w1*Ci.F+w2*Ci.H (3)
wherein the relationship between w 1,w2 satisfies w 1+w2 =1.
In this embodiment, assuming that the nodes participating in the candidate model construction are honest, do not easily regret about the participating transactions, and assuming that the transaction time intervals of the neighboring payment channels are fixed, then:
after collecting and calculating forwarding willingness and handling fees of each intermediate node of each path, the initiator selects a path combination with the minimum cost according to a path cost result formula (3) and own requirements:
The path combination with the least required procedure cost, namely the path combination with the least cost corresponding to w 1=1,w2 = 0, can be selected; or the shortest path combination with the least route hops, namely the corresponding minimum cost path combination when w 1=0,w2 =1;
Or both, selecting a path with a compromise between the commission and the routing length, namely, a corresponding minimum cost path combination when w 1=0.5,w2 =0.5;
similarly, the weight distribution coefficient can be adjusted according to the self demand, and the path combination cost is calculated, so that the optimal payment path combination with the greatest benefit is selected.
It should also be noted that in this specification, terms such as "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (3)

1. An AODV-based PCN optimal path routing method is characterized by comprising the following steps:
S1, defining a lightning network model, abstracting a lightning network into an undirected graph, and defining attributes of a payment channel; the step S1 specifically comprises the following steps:
Abstracting the lightning network into an undirected graph g= (V, E), wherein V is a set of all nodes and E is a set of payment channels between nodes;
for each participating node V /i e V, representing a user with a blockchain account and at least establishing an under-chain payment channel with one participant node;
For each edge e= (v i,vj) ∈e, representing the payment channel established between v i and v j, where v i is the sender and v j is the receiver;
each payment channel e= (v i,vj) has the following 4 attributes:
Transaction amount T i(vi,vj), representing the amount that sender v i wants to pay to receiver v j, the transaction amount for the same payment path is equal;
a commission f i(Ti(vi,vj)) indicating that the sender v i needs to pay the receiver v j at the time of the transaction of T i(vi,vj), v j and intermediate transaction nodes following the path may obtain the commission by helping to forward the transaction;
Channel balance B i(vi,vj), representing the balance of node v i in channel e= (v i,vj), for guaranteeing the mobility of the channel, for node v i its channel balance B i(vi,vj), transaction amount T i(vi,vj) and the fee f i(Ti(vi,vj) to be paid to node v j) need to satisfy:
Bi(vi,vj)≥Ti(vi,vj)+fi(Ti(vi,vj)) (1)
Otherwise, the construction of the transaction path is not participated, namely the candidate model is not added;
Tolerance time T i(Ti(vi,vj)), meaning that node v i can wait for v j to reveal the longest time of the key when the transaction of T i(vi,vj) is performed, and when the waiting time exceeds the tolerance time, the funds roll back and the transaction fails; for the nodes on the same path, the tolerance time is gradually decreased from the transaction initiator;
s2, improving an AODV protocol, and establishing a transaction request by an initiator to perform route discovery; the modified AODV protocol includes modifications to the route request RREQ and route response RREP, specifically:
The improved RREQ message format is specifically as follows:
RREQ=<ID,Sad,Dad,Psn,Ssn,Dsn,drreq,droute,a>
Wherein, the ID is a unique identification RREQ together with S ad; s ad,Ssn, the address of the transaction initiator node and the corresponding serial number; p sn, forwarding the sequence number of the last hop node of the RREQ message, and setting P sn as the current node after each node; d ad,Dsn, the address and the latest sequence number of the target receiver node; d rreq, the effective time of the RREQ message exceeds the effective time, no feedback signal is received, and the last hop node retransmits; d route, the effective time of the reverse route, and the update of each node to d route is gradually decreased; a is transaction demand amount;
the improved RREP message format is specifically as follows:
RREP=<ID,Sad,Ssn,Psn,Dad,Dsn,drrep,droute,fee,Tmax,hop>
Wherein, the ID is a common unique identification RREP with S ad; s ad,Ssn, corresponding to the address and the serial number of the target receiving node; p sn, forwarding the sequence number of the last hop node of the RREP message, and setting P sn as the current node after each node; d ad,Dsn, corresponding to the address and serial number of the transaction initiator node; d rrep, the effective time of the RREP message exceeds the effective time, no feedback signal is received, and the last hop node retransmits; d route, the effective time of forward route, the update of d route by each node is gradually increased; fee is taken as an intermediate node, and the transaction initiating node is charged with the commission fee, so that a commission fee collection fee is formed; t max is the maximum amount willing to be forwarded in the path, namely the willing amount, determined by the node according to the demand amount a and the balance of the node in the path, T max is set as the minimum value in the willing amount sequence of the passing node, namely the willing amount T max needs to be updated to be T max=min(Tmax_new,Tmax _old when passing through one node; and for each node v i its willingness amount T max and the commission f i(Ti(vi,vj to be paid to v j) does not exceed the channel balance B i(vi,vj), i.e. T max+fi(Ti(vi,vj))≤Bi(vi,vj); hop, starting from a target node, adding 1 to hop count per node;
in step S2, the route discovery specifically includes:
S21, determining a transaction demand amount a and a transaction receiver v d by a transaction initiator v s, and creating a payment request R= (v s,vd, a, t), wherein t is the maximum route discovery tolerance time, namely the maximum time consumption of a routing process acceptable by the transaction initiator v s;
S22, when the initiator determines v s transaction demand amount a and a receiver v d, and creates an immediate payment request R= (v s,vd, a, t), and then checks the routing table to find that no route entry to v d exists, broadcasting a routing request RREQ, and searching a routing path capable of reaching a destination node;
the improved AODV protocol does not work if there is an active route between the initiator v s and the recipient v d to each other;
S23, judging whether the RREQ is received by the intermediate node or not according to the ID and S ad, if yes, discarding the RREQ message, and if no, performing the following operations:
s24, judging whether the destination node is self, if so, directly sending a route response RREP, and if not, carrying out the following operations:
S25, checking whether a valid route to a destination node exists and whether a channel has a sufficient balance; if the route table records the effective route to the destination node and the funds are sufficient, the following steps are performed:
S26, comparing S sn in the RREQ with the serial number of the table item of which the destination node address is S ad in the routing table, and updating the routing table to the maximum value of the two;
s27, establishing a reverse route;
S28, sending a route response RREP;
s29, updating the RREQ, and forwarding the RREQ to continuously search for the destination node;
S210, judging whether the RREP is received by the intermediate node or not according to the ID and S ad, if yes, discarding the RREP message, and if not, performing the following operations:
S211, judging whether the target node is self, if so, selecting a demand path according to the T max, the commission and the route hop count; if not, continuing the following operations:
S212, checking whether an effective route to a destination node exists and whether a channel has enough balance, if the effective route exists in a routing table and the channel funds are sufficient, directly sending an RREP to a transaction initiator node, and if the route is terminated, otherwise, continuing the following operations:
S213, establishing a forward route;
S214, updating the RREP, and forwarding the RREP to continuously find a transaction initiator node;
S3, constructing a candidate model, and adding a payment channel meeting the requirements to the candidate model after the routing process is completed; after the routing process of step S2 is completed, a payment channel network composed of N paths, p1, p2, and pN are formed, and verifying whether the payment channel involved in each path satisfies the formula (1), and if the path does not satisfy the formula (1), the path does not participate in the construction of the candidate model, and the path satisfying the formula (1) is added into the candidate model;
Step S3 further includes:
S31, of the N paths routed from v s to v d, one path sequence p1 associated with the payment request R is expressed as:
v0→v1→v2→...→vn-1→vn
Wherein v 0 is the payment initiator v s,vn is the target receiver v d, and the corresponding payment channel obtained by the path sequence is:
(v0,v1),(v1,v2),...,(vn-1,vn)
s32, regarding the paths selected into the candidate model, consider the network equalization problem:
assuming that the kth path transaction amount is T pk(vs,vd), the channel needs to satisfy the transaction demand amount a in order to ensure balance of the payment channel network:
s33, the total amount P actually required to be paid by a payment initiator is required to satisfy the following conditions:
S34, in the path p1 in the candidate model, there is v 1,v2,...,vn-1 at the node that needs to collect the commission, so the commission that the payment initiator v s needs to pay additionally in the path p1 is:
S35, obtaining the total transaction fee F P(vs,vd) required to be paid by the transaction initiator v s corresponding to the transaction request R according to the transaction fee required to be paid by the path p 1:
S4, selecting an optimal path, and selecting a path with maximum benefit according to the commission, the route hops and the maximum transactable amount; the step S4 specifically comprises the following steps:
S41, the initiating node corresponding to each transaction receives N RREP from different candidate route paths, and performs optimal multipath selection according to fee, hop and T max in the RREP;
S42, summing the handling fee sets fee required by each candidate path to obtain F p1,Fp2,...,FpN respectively, wherein the handling fee required by each path is represented; the corresponding route hop count and the maximum amount of tradable money of each candidate path are H p1,Hp2,...,HpN and T p1,Tp2,...,TpN respectively;
S43, on the basis of S42, defining an attribute tuple P1 to represent the maximum transactable amount corresponding to each path, the commission and the route hop count:
P1=(Tp1,Fp1,Hp1),P2=(Tp2,Fp2,Hp2),...,PN=(TpN,FpN,HpN)
s44, starting from the maximum transactable amount, selecting path combinations conforming to the formula (2) from all candidate paths:
∑Tpi≥a (2)
The solution of the linear inequality is noted as:
S={i∈N+|Ci=Ci1p1+Ci2p2+...+CiNpN}
Wherein, C ij = 0 or 1, j= {1,2,., N }, when C ij = 1 indicates that the candidate path conforms to formula (2), jointly forming a solution of formula (2), and participating in the construction of the target model; when C ij = 0 indicates that the candidate path is not selected into the construction of the target model, the solution S of the linear inequality automatically filters the situation that there is a proper subset between the combinations; that is, if C m,Cn ε S is present, the formula is satisfied:
Cm=∑pi+Cn
then put C m into the collection In (1)/>, get the collectionFinally, the solution of equation (2) should be/>
S45, assuming that n combinations of the n combinations satisfying the requirement of S44 are found, that is, after the final solution of the linear inequality (2) is calculated, since the number of each combination path is an indefinite term, these combinations are denoted as C 1,C2,...,Cn, that is:
S46, calculating the total commission Ci.F and the maximum route hop count Ci.H of each combination, wherein the total commission Ci.F and the maximum route hop count Ci.H are respectively as follows:
C1.F,C2.F,...,Cn.F;
C1.H,C2.H,...,Cn.H
Two weight coefficients w 1,w2 are adopted to assist in evaluating the total commission and the maximum route hop count of each path combination, and then the corresponding cost of each path combination is:
cost=w1*Ci.F+w2*Ci.H (3)
Wherein w 1,w2 satisfies w 1+w2 =1.
2. The method of claim 1, wherein in step S214, the node has the option to autonomously decide whether to continue forwarding the RREP and participate in route establishment.
3. The method of claim 1, wherein assuming that nodes participating in candidate model construction are honest, do not readily agree to participating transactions, and assuming that transaction time intervals of neighboring payment channels are fixed, there are:
after collecting and calculating forwarding willingness and handling fees of each intermediate node of each path, the initiator selects a path combination with the minimum cost according to a path cost result formula (3) and own requirements:
selecting a path combination with the minimum required procedure cost, namely a corresponding path combination with the minimum cost when w 1=1,w2 = 0; or the shortest path combination with the least route hops, namely the corresponding minimum cost path combination when w 1=0,w2 =1;
Or both, selecting a path with a compromise between the commission and the routing length, namely, a corresponding minimum cost path combination when w 1=0.5,w2 =0.5;
And similarly, adjusting the weight distribution coefficient according to the self demand, and calculating the path combination cost so as to select the optimal payment path combination with maximum benefit.
CN202310024582.6A 2023-01-09 2023-01-09 AODV-based PCN optimal path routing method Active CN116032827B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310024582.6A CN116032827B (en) 2023-01-09 2023-01-09 AODV-based PCN optimal path routing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310024582.6A CN116032827B (en) 2023-01-09 2023-01-09 AODV-based PCN optimal path routing method

Publications (2)

Publication Number Publication Date
CN116032827A CN116032827A (en) 2023-04-28
CN116032827B true CN116032827B (en) 2024-05-10

Family

ID=86070944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310024582.6A Active CN116032827B (en) 2023-01-09 2023-01-09 AODV-based PCN optimal path routing method

Country Status (1)

Country Link
CN (1) CN116032827B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547905A (en) * 2012-01-09 2012-07-04 上海电机学院 Quality of service (QoS) routing realization method supporting Ad Hoc network
CN113507360A (en) * 2021-06-26 2021-10-15 暨南大学 System and method for exchanging and sharing scientific and technological big data based on block chain
CN115361395A (en) * 2022-07-14 2022-11-18 北京理工大学 Internet of things data sharing method based on block chain payment channel network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111429120B (en) * 2020-03-27 2023-04-07 武汉大学 Block chain payment channel network multi-path routing method based on genetic algorithm

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547905A (en) * 2012-01-09 2012-07-04 上海电机学院 Quality of service (QoS) routing realization method supporting Ad Hoc network
CN113507360A (en) * 2021-06-26 2021-10-15 暨南大学 System and method for exchanging and sharing scientific and technological big data based on block chain
CN115361395A (en) * 2022-07-14 2022-11-18 北京理工大学 Internet of things data sharing method based on block chain payment channel network

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
A toolkit for secure outsourced computation on Integers;YongDong Wu et al.;TOIFS;20221031;全文 *
AODV-Based routing for payment channel networks;Philipp Hoenisch et al.;ICBC;20180622;全文 *
Dejia lin et al..Sybil-ressistant trust discovery in crowdsourcing by exploiting the long-tail effect .TrustCom.2022,全文. *
RSNs中一种基于货币的数据转发算法;张丽娜;黄云龙;;测控技术;20150518(05);全文 *
一种改进的AODV路由协议BVAL-AODV;程昆山;黄大君;;电子制作;20121215(12);全文 *

Also Published As

Publication number Publication date
CN116032827A (en) 2023-04-28

Similar Documents

Publication Publication Date Title
Park et al. Blocking expanding ring search algorithm for efficient energy consumption in mobile ad hoc networks
EP1636943B1 (en) Bluetooth personal area network routing protocol optimization using connectivity metric
Kumaran et al. Early congestion detection and adaptive routing in MANET
CN111401868B (en) Minimum-cost block chain down-link transaction routing algorithm
WO2019169874A1 (en) Wireless mesh network opportunistic routing algorithm based on quality of service assurance
WO2003061220A1 (en) Routing method for mobile ad-hoc network
EP2198571B1 (en) Method and apparatus for network routing between a tactical network and a satellite network
CN101854307B (en) Processing method of network node memory congestion in delay-tolerant network
CN108471628B (en) Routing controller with optimized network load
CN106850436A (en) Mine hybrid wireless mesh network routing protocols based on virtual potential energy field
CN114513449B (en) Intra-domain routing optimization method and system
CN116032827B (en) AODV-based PCN optimal path routing method
Yuan et al. SSR: Using the social similarity to improve the data forwarding performance in mobile opportunistic networks
CN110809303B (en) Mobile opportunity network routing method based on node geographic position
CN110121185A (en) A kind of power distribution communication network route optimization method
CN101409905A (en) Routing method for mobile multi-hop grouping wireless network based on random broadcast mode
CN113660710B (en) Mobile self-organizing network routing method based on reinforcement learning
CN101867993A (en) Multi-path routing method based on route correlation degree
Huiyao et al. A cluster-based multipath routing for MANET
EP1564938A1 (en) A cost-based routing using backoff scheme
CN115587812A (en) Internet of things data transaction method based on paid channel network
CN112383947B (en) Wireless ad hoc network mixed routing protocol method based on network environment
Fei et al. Smart forwarding technique for routing with multiple QoS constraints
CN117273713A (en) Low transaction fee priority cross-multi-person channel payment path selection method
Attia et al. A hybrid multi-path ant QoS routing algorithm for MANETs

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant