CN107371211B - An opportunistic network routing method with low overhead and high transaction success rate - Google Patents
An opportunistic network routing method with low overhead and high transaction success rate Download PDFInfo
- Publication number
- CN107371211B CN107371211B CN201710665993.8A CN201710665993A CN107371211B CN 107371211 B CN107371211 B CN 107371211B CN 201710665993 A CN201710665993 A CN 201710665993A CN 107371211 B CN107371211 B CN 107371211B
- Authority
- CN
- China
- Prior art keywords
- node
- message
- data packet
- buy
- data
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 230000007246 mechanism Effects 0.000 claims abstract description 51
- 230000005540 biological transmission Effects 0.000 claims abstract description 30
- 230000003044 adaptive effect Effects 0.000 claims abstract description 16
- 230000008447 perception Effects 0.000 claims abstract description 10
- 230000009467 reduction Effects 0.000 claims description 4
- 238000012546 transfer Methods 0.000 claims description 3
- 230000001737 promoting effect Effects 0.000 claims description 2
- 230000008569 process Effects 0.000 abstract description 21
- 230000006399 behavior Effects 0.000 description 13
- 239000000284 extract Substances 0.000 description 6
- 230000003993 interaction Effects 0.000 description 6
- 230000008901 benefit Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 5
- 238000011160 research Methods 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 4
- 238000013459 approach Methods 0.000 description 3
- 241000283086 Equidae Species 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 235000008694 Humulus lupulus Nutrition 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 208000015181 infectious disease Diseases 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000000116 mitigating effect Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000011273 social behavior Effects 0.000 description 1
- 230000004936 stimulating effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
- H04W40/02—Communication route or path selection, e.g. power-based or shortest path routing
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明提出一种低开销高交易成功率的机会网络路由方法。它由在逻辑上具有先后顺序的节点相遇感知、博弈和数据包传递、交易结算三个阶段中节点的操作组成,包含“自适应精简数据包摘要”、“自适应合并SV‑DP消息和求购消息”、“博弈时综合考虑买卖收益”三种新机制,这些新机制均工作在博弈和数据包传递阶段。通过消除SV‑DP消息中冗余的数据包摘要、自适应合并SV‑DP消息和数据包求购消息、在博弈中综合计算节点买卖操作的收益,新路由方法减少了路由过程中控制信息的传送、提高了节点通过博弈达成交易的成功率、增加了数据包在网络中得到转发的机会,从而能够提高数据传送成功率和网络吞吐量、降低控制开销和数据端到端时延。
The invention proposes an opportunistic network routing method with low overhead and high transaction success rate. It consists of node operations in three stages: node encounter perception, game and data packet delivery, and transaction settlement, which are logically sequenced, including "adaptive reduced packet summaries", "adaptive merging of SV-DP messages and purchase requests". There are three new mechanisms: "message" and "comprehensive consideration of buying and selling income when gaming", all of which work in the gaming and data packet delivery stages. The new routing method reduces the transmission of control information in the routing process by eliminating redundant packet summaries in SV-DP messages, adaptively combining SV-DP messages and packet buy messages, and comprehensively calculating the payoffs of node buying and selling operations in a game. , improve the success rate of nodes reaching transactions through games, and increase the chance of data packets being forwarded in the network, thereby improving the success rate of data transmission and network throughput, reducing control overhead and data end-to-end delay.
Description
技术领域technical field
本发明属于机会网络(Opportunistic Networks)技术领域,尤其涉及在含有自私节点的机会网络中采用了经济学的博弈论方法激励自私节点参与网络数据转发的场合。The invention belongs to the technical field of Opportunistic Networks, and in particular relates to an occasion where an economic game theory method is adopted in an opportunistic network containing selfish nodes to motivate selfish nodes to participate in network data forwarding.
背景技术Background technique
机会网络是一种时延和分裂可容忍的无线自组织网络,其典型特点是不要求在源节点和目的节点之间存在完整的链路,利用节点的移动性带来的相遇机会实现通信。由于在许多应用领域难以建立全连通的网络,导致传统的无线自组织网络协议不能正常使用,而机会网络的这个特点,使得它能够较好的满足这些需求。近年来,机会网络已成为无线自组织网络重要的研究方向之一,得到了较为广泛的应用,例如,芬兰推出的SNC(SamiNomadic Connectivity)网络连通项目,有效解决了偏远地区上网不方便的问题;在野生动植物监测方面,普林斯顿大学基于机会网络提出的野生动物追踪项目ZebraNet,通过在斑马上放置传感器,利用斑马的生活习性来进行数据采集,类似应用还有利用鲸鱼进行海洋数据收集的SWIM(Shared Wireless Infostation Mode)项目等。Opportunistic network is a wireless ad hoc network that can tolerate delay and split. Its typical feature is that it does not require a complete link between the source node and the destination node, and uses the encounter opportunities brought by the mobility of nodes to achieve communication. Because it is difficult to establish a fully connected network in many application fields, the traditional wireless ad hoc network protocol cannot be used normally, and this feature of the opportunistic network enables it to better meet these needs. In recent years, opportunistic networks have become one of the important research directions of wireless ad hoc networks, and have been widely used. For example, the SNC (SamiNomadic Connectivity) network connectivity project launched in Finland has effectively solved the problem of inconvenient Internet access in remote areas; In terms of wildlife monitoring, ZebraNet, a wildlife tracking project proposed by Princeton University based on Opportunity Network, uses zebras’ living habits to collect data by placing sensors on zebras. Similar applications include SWIM (SWIM) ( Shared Wireless Infostation Mode) project, etc.
机会网络是一种无线自组织网络,网络中每个节点的资源都是有限的,比如电池、内存、CPU和网络带宽等等。出于对自身资源的保护,网络中的节点会出现拒绝消耗自身资源替其它节点转发数据的自私行为,这种自私行为将会阻碍网络中数据包的转发。已经有大量的文献通过理论和实验证明了自私节点的存在将严重影响机会网络的性能。An opportunistic network is a wireless self-organizing network in which each node in the network has limited resources, such as battery, memory, CPU, and network bandwidth. In order to protect its own resources, the nodes in the network will refuse to consume their own resources to forward data for other nodes. This selfish behavior will hinder the forwarding of data packets in the network. A large number of literatures have proved through theory and experiment that the existence of selfish nodes will seriously affect the performance of opportunistic networks.
针对节点的自私行为,研究者们提出了多种解决方案,其中一种可行的方案是将经济学中的博弈策略引入机会网络,将网络中的节点模拟成博弈中的博弈者。按照博弈策略,在博弈过程中节点往往会选择最大化自身利益的策略,通过设计惩罚和激励机制,使节点因自私而带来的短期收益低于合作转发的长远收益,迫使自私节点采取协作策略,使得节点的最优收益策略与网络最优性能具有一致性,从而避免宝贵的通信资源因为节点的自私行为而浪费。For the selfish behavior of nodes, researchers have proposed a variety of solutions. One of the feasible solutions is to introduce the game strategy in economics into the chance network, and simulate the nodes in the network as players in the game. According to the game strategy, nodes often choose strategies that maximize their own interests during the game process. By designing punishment and incentive mechanisms, the short-term benefits of nodes due to selfishness are lower than the long-term benefits of cooperative forwarding, forcing selfish nodes to adopt cooperative strategies. , so that the optimal revenue strategy of the node is consistent with the optimal performance of the network, so as to avoid the waste of precious communication resources due to the selfish behavior of the node.
较早对网络中的自私节点问题进行处理的是Marti等人提出的机制——watchdog&pathrater(参见文献[1]:Sergio Marti,T J Giuli,Kiven Lai,MaryBaker.Mitigating routing misbehavior in mobile ad hoc networks[C].The 6thAnnual International Conference on Mobile Computing And Networking(MobiCom2000),2000:255-265)。该机制采用监听的方式对网络中其它节点行为进行检测,当前节点把数据包发送给下一跳节点后,侦听下一跳节点是否转发了该数据包。若在规定的时间内下一跳节点无更改地转发了此数据包,则说明下一跳进行了合作;反之说明下一跳出现了不合作行为。watchdog用于检测自私行为的节点,pathrater则负责在进行下一跳节点选择时避开这些节点。watchdog在节点位置固定的网络中有比较明显的效果,但在机会网络中,由于节点的随机移动及网络中链路状态的不确定性,节点行为往往难以通过监听方式检测到,当前节点往往无法正确判断下一跳节点是否转发了数据包。The mechanism of Marti et al. to deal with the problem of selfish nodes in the network earlier is the watchdog&pathrater (see Reference [1]: Sergio Marti, T J Giuli, Kiven Lai, Mary Baker. Mitigating routing misbehavior in mobile ad hoc networks [C ]. The 6th Annual International Conference on Mobile Computing And Networking (MobiCom 2000), 2000: 255-265). The mechanism uses monitoring to detect the behavior of other nodes in the network. After the current node sends the data packet to the next-hop node, it monitors whether the next-hop node forwards the data packet. If the next hop node forwards the data packet unchanged within the specified time, it means that the next hop has cooperated; otherwise, it means that the next hop has uncooperative behavior. The watchdog is used to detect nodes that behave selfishly, and the pathrater is responsible for avoiding these nodes when making next-hop node selection. The watchdog has a relatively obvious effect in the network where the node position is fixed, but in the opportunistic network, due to the random movement of the node and the uncertainty of the link status in the network, the node behavior is often difficult to detect by monitoring, and the current node is often unable to detect. Correctly determine whether the next hop node forwards the data packet.
在后续研究中,唐作用等人在现有技术的基础上,提出了一种基于信誉值维护的自私节点检测机制——2-ACK(参见文献[2]:唐作用,袁艺嘉,董永强,吴国新.基于信誉值维护的机会网络自私节点检测机制[J].通信学报,2012,33(z2):217-221)。该机制通过两跳ACK应答数据包来判定节点是否存在自私行为,利用监测信息计算节点的信誉值,并将综合信誉值作为判断节点是否自私的依据。网络中的每个节点维持并计算对其他节点的综合信誉值列表,并设定一个信誉值阈值,信誉值高于此阈值的节点被认定为非自私节点,而信誉值低于次阈值的节点被认定为自私节点,综合信誉值的受直接信誉值和间接信誉值的影响。当前节点的下一跳节点在与上一跳节点相遇后,向上一跳节点提供证明当前节点将数据包进行了转发的ACK信息。根据该ACK信息,上一跳节点增加当前节点的信誉值。该方法减少了对下一跳节点的侦听行为,但当前节点的下一跳节点与上一跳节点的相遇概率会严重影响上一跳节点对当前节点自私性的判断。In the follow-up research, on the basis of the existing technology, Tang et al. proposed a selfish node detection mechanism based on reputation value maintenance - 2-ACK (see reference [2]: Tang Xiao, Yuan Yijia, Dong Yongqiang, Wu Guoxin .An Opportunistic Network Selfish Node Detection Mechanism Based on Reputation Value Maintenance [J]. Journal of Communications, 2012, 33(z2): 217-221). The mechanism uses two-hop ACK response data packets to determine whether the node has selfish behavior, uses the monitoring information to calculate the reputation value of the node, and uses the comprehensive reputation value as the basis for judging whether the node is selfish. Each node in the network maintains and calculates a list of comprehensive reputation values for other nodes, and sets a reputation value threshold. Nodes with a reputation value higher than this threshold are identified as non-selfish nodes, while nodes with a reputation value lower than the secondary threshold are identified as non-selfish nodes. It is identified as a selfish node, and the comprehensive reputation value is affected by the direct reputation value and the indirect reputation value. After the next-hop node of the current node encounters the previous-hop node, it provides the previous-hop node with ACK information that proves that the current node has forwarded the data packet. According to the ACK information, the previous hop node increases the reputation value of the current node. This method reduces the listening behavior of the next-hop node, but the encounter probability of the current node's next-hop node and the previous-hop node will seriously affect the previous-hop node's judgment of the selfishness of the current node.
Shuzhen Xu等提出了一种将博弈论引入存在自私节点的机会网络中以刺激自私节点积极参与网络协作的方法---CRGTD(Credit-based Repeated Game model appliedin Transfer Decision,参见文献[3]:Shuzhen Xu,Mingchu Li,Yuanfang Chen,Lei Shu,Xin Gu.A cooperation scheme based on reputation for opportunistic networks[C].2013International Conference on Computing,Management,andTelecommunications(ComManTel2013),2013:289-294)。该方法是一种基于信用和重复博弈的解决方案,通常与感染路由机制结合在一起运行,在节点相遇时进行控制信息和数据包的交换。CRGTD方案引入了信用合作机制,将单次阶段博弈改进为网络运行时间内的重复博弈过程,并通过设置惩罚措施和惩罚周期,对有自私行为的节点进行惩罚,拒绝转发来自或发往这类节点的数据包。这样,理性的自私节点为获得更大的利益不得不减少自私行为,从而有利于网络中数据包传送的成功率提高。CRGTD方案通过设定节点选择交易策略的规则,如果节点按规则选择交易策略,则认为它是非自私节点,否则便判定其存在自私行为,并将因此受到惩罚,受惩罚的节点能够通过惩罚周期中的合作行为使自身从被惩罚状态解除。CRGTD机制可以有效减少节点的自私行为,但由于单次自私行为导致博弈的失败不足以判断节点为自私节点,因此它在自私节点的判定上收敛偏慢。Shuzhen Xu et al. proposed a method to introduce game theory into an opportunistic network with selfish nodes to stimulate selfish nodes to actively participate in network collaboration---CRGTD (Credit-based Repeated Game model applied in Transfer Decision, see Reference [3]: Shuzhen Xu, Mingchu Li, Yuanfang Chen, Lei Shu, Xin Gu. A cooperation scheme based on reputation for opportunistic networks [C]. 2013 International Conference on Computing, Management, and Telecommunications (ComManTel 2013), 2013: 289-294). The approach is a credit and repeated game-based solution that typically operates in conjunction with an infection routing mechanism, exchanging control information and data packets as nodes meet. The CRGTD scheme introduces a credit cooperation mechanism, improves the single-stage game into a repeated game process within the network running time, and punishes nodes with selfish behavior by setting punishment measures and punishment cycles, and refuses to forward from or to such node's packets. In this way, rational selfish nodes have to reduce selfish behavior in order to obtain greater benefits, which is beneficial to the improvement of the success rate of data packet transmission in the network. The CRGTD scheme sets the rules for nodes to select trading strategies. If a node selects a trading strategy according to the rules, it is considered to be a non-selfish node. Otherwise, it is judged to have selfish behavior and will be punished accordingly. The punished node can pass the penalty cycle. 's cooperative behavior releases itself from the punished state. The CRGTD mechanism can effectively reduce the selfish behavior of nodes, but the failure of the game due to a single selfish behavior is not enough to judge a node as a selfish node, so it converges slowly in the judgment of a selfish node.
为了减少网络中的数据包副本数量,Fan Wu等提出了一种基于概率路由的博弈方法——GSCP(A Game-Theoretic Approach to Stimulate Cooperation forProbabilistic Routing in Opportunistic Networks,参见文献[4]:Fan Wu,TingtingChen,Sheng Zhong,Chunming Qiao,Guihai Chen.A game-theoretic approach tostimulate cooperation for probabilistic routing in opportunistic networks[J].IEEE Transactions on Wireless Communications,2013,12(4):1573-1583)。在GSCP中,当两个携带数据包的节点相遇时,要交换彼此的SV(Summary Vector,其主要内容是当前节点所携带的数据包的摘要列表,数据包摘要通常包含数据包的源节点、目的节点、序号、长度等信息)和相遇概率(Delivery Predictability,DP)列表(由预测的当前节点与其它节点的相遇概率组成的表,也可称为DP列表);收到对方节点发来的SV和DP列表后(装在一个SV-DP消息中),当前节点能够通过计算确定自己需要向对方购买的数据包,而且能够计算出报给对方节点的价格,该报价x由下式计算:In order to reduce the number of packet copies in the network, Fan Wu et al. proposed a game method based on probabilistic routing - GSCP (A Game-Theoretic Approach to Stimulate Cooperation for Probabilistic Routing in Opportunistic Networks, see reference [4]: Fan Wu, TingtingChen,Sheng Zhong,Chunming Qiao,Guihai Chen.A game-theoretic approach tostimulate cooperation for probabilistic routing in opportunistic networks[J].IEEE Transactions on Wireless Communications,2013,12(4):1573-1583). In GSCP, when two nodes carrying data packets meet, they will exchange each other's SV (Summary Vector, whose main content is a summary list of data packets carried by the current node. The data packet summary usually includes the source node of the data packet, Destination node, serial number, length and other information) and the delivery probability (Delivery Predictability, DP) list (a table composed of the predicted probability of encountering the current node and other nodes, also known as the DP list); After the SV and DP are listed (installed in an SV-DP message), the current node can determine the data package that it needs to buy from the other party through calculation, and can calculate the price reported to the other party node. The price x is calculated by the following formula:
其中,T(m)和P(m)分别为数据包m的传输和接收开销(与数据包的长度有关,可设为一个全网统一的、较小的常系数×数据包长度),Vi(m)为数据包m对于博弈参与节点i的价值量,由下式定义:Among them, T(m) and P(m) are the transmission and reception overhead of data packet m respectively (related to the length of the data packet, which can be set as a uniform, small constant coefficient × data packet length for the entire network), V i (m) is the value of the data packet m for the game participating node i, which is defined by the following formula:
Vi(m)=ω·Pi,d (2) Vi (m)=ω·P i,d (2)
式中ω为数据包m的源节点为成功转发m到目的节点支付的费用(全网节点用同样的ω值),Pi,d为节点i与数据包m的目的节点d的相遇概率。欲购买数据包m的节点(即买方节点)用下式计算自己通过博弈达成交易后的收益uB:where ω is the fee paid by the source node of the data packet m to successfully forward m to the destination node (the entire network node uses the same ω value), and P i,d is the encounter probability between node i and the destination node d of the data packet m. The node that wants to buy the data package m (that is, the buyer node) uses the following formula to calculate the profit u B after it reaches the transaction through the game:
uB=VB(m)-P(m)-x-CB(γ) (3)u B =V B (m)-P(m)-xC B (γ) (3)
式中x是报价,CB(γ)是每一轮议价博弈中买方节点的开销。买方节点判断,如果uB是否<0,则不向对方节点购买数据包m;如果uB是否>0,则要向对方节点购买数据包m,随后会向对方节点(即卖方节点)发送求购信息。如果一个节点收到相遇节点发来求购消息m的信息,此时它即为卖方节点,它用下式计算自己通过博弈达成交易后的收益uS:where x is the offer price, and C B (γ) is the cost of the buyer node in each round of bargaining game. The buyer node judges that if u B is less than 0, it does not purchase the data package m from the opposite node; if u B is > 0, it needs to purchase the data package m from the opposite node, and then sends the purchase request to the opposite node (ie, the seller node). information. If a node receives the message m from the encounter node, it is the seller node, and it uses the following formula to calculate its own profit u S after reaching the transaction through the game:
uS=x-VS(m)-T(m)-CS(γ) (4)u S =xV S (m)-T(m)-C S (γ) (4)
式中x是报价,CS(γ)是每一轮议价博弈中卖方的开销。卖方节点判断,如果uS是否<0,则不向对方节点出售数据包m;如果uS是否>0,则向对方节点出售数据包m,随后会向对方节点(即买方节点)发送数据包m。对于节点间达成的每次买卖数据包的交易,网络中的交易费用结算机构——交易结算中心CCC要收取卖方节点一笔交易费用X(m,x),其大小跟卖方节点的交易价格有关,计算式如下:where x is the offer price and C S (γ) is the cost of the seller in each round of bargaining game. The seller node judges that if u S is < 0, it will not sell the data packet m to the opposite node; if u S is > 0, it will sell the data packet m to the opposite node, and then send the data packet to the opposite node (that is, the buyer node). m. For each transaction of buying and selling data packets between nodes, the transaction fee settlement agency in the network - the transaction settlement center CCC will charge the seller node a transaction fee X(m,x), the size of which is related to the transaction price of the seller node , the calculation formula is as follows:
其中,γ≤(VB(m)-VS(m)-T(m)-P(m))/2-σ是一个很小的基本交易费用,交易费用因子σ是一个需预设的参数,0≤σ≤(VB(m)-VS(m)-T(m)-P(m))/2;交易费用参数k=2-2γ/(VB(m)-VS(m)-T(m)-P(m)),是在卖方节点交易价格高于最优价格时的交易费用系数。Among them, γ≤(V B (m)-V S (m)-T(m)-P(m))/2-σ is a small basic transaction cost, and the transaction cost factor σ is a preset Parameter, 0≤σ≤(V B (m)-V S (m)-T(m)-P(m))/2; transaction cost parameter k=2-2γ/(V B (m)-V S (m)-T(m)-P(m)) is the transaction cost coefficient when the seller's node transaction price is higher than the optimal price.
GSCP方法将概率路由中节点之间的控制消息和数据包交换过程视为议价博弈,其典型的消息交互和数据包传送过程如说明书附图1所示;博弈达成合作转发后数据包沿着转发概率越来越大的路线传输,这有助于提高数据包传送的成功率;但它定义的节点两两博弈在是建立在买卖双方的转发概率差值高于一定阈值的条件下,这有可能使买卖双方转发概率差值较小时无法达成合作转发的博弈策略,从而有可能浪费数据包转发的机会。The GSCP method regards the exchange of control messages and data packets between nodes in probabilistic routing as a bargaining game, and the typical message interaction and data packet transmission process is shown in Figure 1 of the specification; Route transmission with increasing probability, which helps to improve the success rate of data packet transmission; but the node-to-node game it defines is based on the condition that the difference between the forwarding probability of buyers and sellers is higher than a certain threshold, which has It may make the game strategy of cooperative forwarding unable to be achieved when the difference between the forwarding probability between buyers and sellers is small, which may waste the opportunity of data packet forwarding.
另外,我们针对以GSCP为代表的现有相关路由方法中存在的数据包单向传递影响转发概率提高、依赖虚拟货币进行交易削弱节点购买力以及数据包交易过程有冗余交互的问题,在GSCP基础上设计了一种高效的博弈方法——HLPR-MG(High-throughput and low-overhead probability routing based on multi-player bargaining game)(参见文献:任智,索建伟,刘文朋,雷宏江,陈前斌.基于多方议价博弈的机会网络高吞吐量低开销概率路由算法[J].通信学报,2017,36(6):41-48)。该机制将节点两两博弈扩展为多方博弈以加快数据包转发概率的提升,同时引入“以物易物”方式增强节点购买力,并且改进现有交互机制以减少博弈次数,从而达到提高网络吞吐量的和减小控制开销的效果。In addition, in the existing related routing methods represented by GSCP, the one-way transfer of data packets affects the increase of forwarding probability, the dependence on virtual currency for transactions weakens the purchasing power of nodes, and there are redundant interactions in the data packet transaction process. designed an efficient game method - HLPR-MG (High-throughput and low-overhead probability routing based on multi-player bargaining game) (see references: Ren Zhi, Suo Jianwei, Liu Wenpeng, Lei Hongjiang, Chen Qianbin. High-throughput and low-overhead probabilistic routing algorithm for opportunistic networks based on multi-party bargaining game [J]. Journal of Communications, 2017, 36(6): 41-48). This mechanism expands the two-way game of nodes to a multi-party game to speed up the improvement of the probability of data packet forwarding. At the same time, it introduces a "barter" method to enhance the purchasing power of nodes, and improves the existing interaction mechanism to reduce the number of games, so as to improve the network throughput. and reduce the control overhead.
综上所述,人们对含自私节点的机会网络路由方法、尤其是引入经济学中的博弈论方法已进行了一段时间的深入研究,在刺激自私节点积极参与数据包转发方面取得一些进展,但我们通过深入研究发现,现有基于博弈论的机会网络路由方法存在以下问题:To sum up, people have conducted in-depth research on opportunistic network routing methods with selfish nodes, especially the game theory method introduced into economics, and some progress has been made in stimulating selfish nodes to actively participate in packet forwarding, but Through in-depth research, we found that the existing opportunistic network routing methods based on game theory have the following problems:
1.在现有的基于博弈的概率路由方法(如GSCP)中,单次博弈的收益会影响博弈双方达成交易的可能性,在单次博弈中只有当双方的收益都不小于0时双方才会达成交易并采取合作转发策略;这样的处理方式而没有考虑卖方在数据包买入时可能已经获利,这降低了博弈双方达成交易(即交易成功)以及采取合作转发策略的比率。1. In the existing game-based probabilistic routing methods (such as GSCP), the revenue of a single game will affect the possibility of both parties to the game reaching a transaction. In a single game, only when the revenue of both parties is not less than 0, both parties A transaction will be reached and a cooperative forwarding strategy will be adopted; such a processing method does not consider that the seller may have made a profit when the data packet is bought, which reduces the ratio of the two sides of the game to reach a transaction (ie, the transaction is successful) and adopt a cooperative forwarding strategy.
2.节点在进行数据包转发前,需要先交换SV-DP消息,里面包含汇总矢量SV和相遇概率(Delivery Predictability,DP)列表(由预测的当前节点与其它节点的相遇概率组成的表,也可称为DP列表)。当两个节点相遇,DP列表交互完成后,后收到DP列表的节点能得知双方节点到其它节点的相遇概率;此时,若该节点到SV中某些数据包的目的节点的相遇概率高于相遇节点,则相遇节点就不可能求购这些数据包(因为求购后收益会小于0),因此也就没必要将这些数据包的摘要发给相遇节点,然而现有机制的SV-DP消息交互过程仍然会将该类数据包的摘要加入SV并发给相遇节点,这样便产生了数据包摘要的冗余,带来不必要的控制开销。2. Before the node forwards the data packet, it needs to exchange the SV-DP message, which contains the summary vector SV and the Delivery Predictability (DP) list (a table composed of the predicted encounter probability between the current node and other nodes, also may be called a DP list). When two nodes meet, after the DP list interaction is completed, the node that receives the DP list can know the probability of encountering the two nodes to other nodes; at this time, if the node meets the probability of encountering the destination node of some data packets in the SV higher than the encountering node, the encountering node will not be able to purchase these data packets (because the income after the purchase will be less than 0), so there is no need to send the summary of these data packets to the encountering node. However, the existing mechanism SV-DP message In the interactive process, the summary of such data packets will still be added to the SV and sent to the encountering nodes, thus resulting in redundancy of the data packet summary and unnecessary control overhead.
3.数据包交易的过程中存在冗余的控制消息。在现有相关方法中数据包在两节点之间交易时,请求购买数据包的求购消息需要由买方节点单独发给卖方节点。通过研究发现,求购消息的源、目的节点与SV信息的源、目的节点相同,因此可以将SV-DP消息合并在一起进行发送,而单独发送求购消息会使控制消息出现冗余。3. There are redundant control messages in the process of data packet transactions. In the existing related method, when the data package is traded between two nodes, the purchase message requesting to purchase the data package needs to be sent by the buyer node to the seller node separately. Through research, it is found that the source and destination nodes of the purchase message are the same as the source and destination nodes of the SV information, so the SV-DP messages can be combined and sent together, but sending the purchase message alone will make the control message redundant.
4.机会网络中的每一个数据包都设置有“生命期”的正整数型字段,表示数据包可以被转发的次数;当生命期=0时,数据包不能再继续被转发,会被丢弃;然而,在数据包交互过程中,节点无法通过控制消息(包括hello消息及SV消息)得知数据包的生命期字段值,导致节点有可能购买生命期字段值为1的数据包;在这种情形下,节点购买到的数据包的生命期的值会变为0,于是节点不得不丢弃数据包,从而导致不必要的转发开销和操作。4. Each data packet in the opportunistic network is set with a positive integer field of "lifetime", which indicates the number of times the data packet can be forwarded; when the life time = 0, the data packet can no longer be forwarded and will be discarded ; However, in the process of data packet interaction, the node cannot know the value of the lifetime field of the data packet through the control message (including the hello message and the SV message), so that the node may purchase the data packet with the lifetime field value of 1; here In this case, the lifetime value of the data packet purchased by the node will become 0, so the node has to discard the data packet, resulting in unnecessary forwarding overhead and operations.
上述问题的存在使得含自私节点的机会网络中博弈双方交易成功率偏低,导致数据包传输的机会偏少,数据包传送的成功率会随之下降而传输时延则会上升,同时,冗余的控制开销增加了网络的负载与能耗。为了解决上述问题,提高含自私节点的机会网络的传输性能,有必要提出新的方法对它们加以解决。本发明将针对这些问题提出切实可行的解决方案。The existence of the above problems makes the transaction success rate of both parties in the opportunistic network with selfish nodes low, resulting in fewer opportunities for data packet transmission, the success rate of data packet transmission will decrease and the transmission delay will increase. The extra control overhead increases the load and energy consumption of the network. In order to solve the above problems and improve the transmission performance of opportunistic networks with selfish nodes, it is necessary to propose new methods to solve them. The present invention will propose practical solutions to these problems.
发明内容SUMMARY OF THE INVENTION
为了解决上文所述的SV-DP消息包含冗余的数据包摘要、部分情况下买方节点发送专门的求购消息带来冗余开销、购买生命期为1的数据包后无法转发、单独计算卖出收益导致交易不易成功四个问题,本发明提出一种低开销高交易成功率的机会网络路由方法;该方法采用了“自适应精简数据包摘要”、“自适应合并SV-DP消息和求购消息”、“博弈时综合考虑买卖收益”三种新机制,通过消除SV消息中的冗余摘要、在SV消息中捎带求购信息和在博弈中综合计算节点买卖操作的收益,减少路由过程中控制信息的传送,提高节点通过博弈达成交易的成功率,增加数据包在网络中得到转发的机会,从而能够提高数据传送成功率和网络吞吐量、降低控制开销和数据端到端时延。In order to solve the problem that the above-mentioned SV-DP message contains redundant data packet summaries, in some cases, the buyer node sends a special purchase message to bring redundant overhead, after purchasing a data packet with a lifetime of 1, it cannot be forwarded, and the purchase price is calculated separately. In order to solve the four problems that the transaction is not easy to succeed due to the income, the present invention proposes an opportunistic network routing method with low overhead and high transaction success rate; There are three new mechanisms: "message" and "comprehensive consideration of buying and selling income during gaming". By eliminating redundant summaries in SV messages, piggybacking buying information in SV messages, and comprehensively calculating the returns of node buying and selling operations in the game, it reduces control over the routing process. The transmission of information improves the success rate of nodes reaching transactions through games, and increases the chance of data packets being forwarded in the network, thereby improving the success rate of data transmission and network throughput, and reducing control overhead and data end-to-end delay.
(一)本发明提出的新机制的基本思路和主要操作(1) The basic idea and main operation of the new mechanism proposed by the present invention
以下具体介绍本发明提出的“自适应精简数据包摘要”、“自适应合并SV-DP消息和求购消息”和“博弈时综合考虑买卖收益”三种新机制的基本思路和主要操作。The basic ideas and main operations of the three new mechanisms of "self-adaptive and simplified data packet digest", "self-adaptive merging of SV-DP messages and purchase messages" and "comprehensive consideration of buying and selling income during gaming" proposed by the present invention are described in detail below.
1.自适应精简数据包摘要1. Adaptive Reduced Packet Summary
“自适应精简数据包摘要”新机制解决的是如下两个问题:The new mechanism of "Adaptive Reduced Packet Digest" solves the following two problems:
(1)现有相关机会网络路由方法使用的SV-DP消息包含了SV(其中包含所有数据包的摘要)和DP列表;由于在SV-DP消息交互过程中,后接收到SV-DP消息的节点能得知双方节点到其它节点的相遇概率,此时若该节点到SV中某些数据包的目的地址的相遇概率高于相遇节点,则相遇节点不可能请求购买这些数据包(因为购买后收益会小于0),然而现有相关路由方法仍然会将该类数据包的摘要加入SV,这种操作会带来不必要的控制开销。(1) The SV-DP message used by the existing related opportunistic network routing methods includes the SV (which contains the summaries of all data packets) and the DP list; The node can know the probability of encounter between the nodes of both parties to other nodes. At this time, if the probability of encounter between the node and the destination address of some data packets in the SV is higher than that of the encounter node, the encounter node cannot request to purchase these data packets (because after purchase The benefit will be less than 0), however, the existing related routing methods still add the summary of this type of data packet to the SV, which will bring unnecessary control overhead.
(2)网络中的每一个数据包都设置有生命期字段,记录该数据包能被传送的跳数,每转发一次跳数值减1,当跳数值减为0时,数据包不能再被转发。在SV-DP消息交互过程中,由于节点无法得知数据包的当前跳数值,导致节点有可能对跳数值已经减为1的数据包提出请求,在这种情形下,若当前节点不是数据包的目的节点则会带来不必要的转发开销;因为数据包无法再继续转发,节点收到数据包后只能删除它。(2) Each data packet in the network is set with a lifetime field, which records the number of hops that the data packet can be transmitted. The hop value is reduced by 1 each time it is forwarded. When the hop value is reduced to 0, the data packet can no longer be forwarded. . In the process of SV-DP message exchange, since the node cannot know the current hop value of the data packet, the node may request the data packet whose hop value has been reduced to 1. In this case, if the current node is not a data packet The destination node will bring unnecessary forwarding overhead; because the data packet can no longer be forwarded, the node can only delete the data packet after receiving it.
“自适应精简数据包摘要”新机制的基本思路如下:The basic idea of the new mechanism of "Adaptive Reduced Packet Digest" is as follows:
节点在往SV-DP或DP-SV-BUY消息(本发明提出的一种新的控制消息,包含DP列表、SV、请求购买的数据包的摘要,实质上是将原有的SV-DP消息和求购消息进行合并后的消息,消息头部设有一个字段(缺省建议长度为16bits)存放DP-SV-BUY消息中数据包摘要的条数,具体结构请参见说明书附图2)中装入数据包的摘要之前,先判断数据包的生命期字段的值是否>1且自己与数据包目的节点的相遇概率是否<相遇节点与数据包目的节点的相遇概率;只有当“生命期字段值是否>1”且“当前节点与数据包目的节点的相遇概率是否<相遇节点与数据包目的节点的相遇概率”时,当前节点才会将该数据包的摘要装入SV-DP或DP-SV-BUY消息,从而避免装入无用的数据包摘要,消除了因此而带来的冗余控制信息。The node is sending the SV-DP or DP-SV-BUY message (a new control message proposed by the present invention, including the DP list, SV, and the summary of the data package requested to purchase, which is essentially the original SV-DP message. The message that is merged with the purchase message, the message header is provided with a field (the default recommended length is 16 bits) to store the number of data packet summaries in the DP-SV-BUY message. For the specific structure, please refer to Figure 2 in the description. Before entering the summary of the data packet, first determine whether the value of the lifetime field of the data packet is > 1 and whether the probability of encountering itself with the destination node of the data packet < the probability of encountering the encounter node and the destination node of the data packet; only when the value of the "lifetime field" Whether > 1" and "whether the encounter probability between the current node and the destination node of the packet is < the encounter probability between the encounter node and the destination node of the packet", the current node will load the summary of the packet into SV-DP or DP-SV -BUY message, thus avoiding loading useless packet digests and eliminating the redundant control information brought by it.
“自适应精简数据包摘要”新机制的基本流程如说明书附图3所示,主要操作如下:The basic process of the new mechanism of "Adaptive Reduced Packet Digest" is shown in Figure 3 of the specification. The main operations are as follows:
(1)每个节点都独立地做判断是否收到了其它节点广播的hello消息;如果是,执行下一步;如果不是,则执行第(4)步。(1) Each node independently judges whether it has received the hello message broadcast by other nodes; if so, execute the next step; if not, execute step (4).
(2)当前节点生成一个SV-DP消息。(2) The current node generates an SV-DP message.
(3)当前节点判断是否有需要装入SV-DP消息的数据包摘要;如果没有,则结束本机制的操作;如果有,则判断该数据包的生命期字段值是否>1;如果是,则装入该数据包的摘要;如果不是,则不装入,然后循环执行本步骤。(3) The current node judges whether there is a data packet summary that needs to be loaded into the SV-DP message; if not, the operation of this mechanism is ended; if so, judge whether the lifetime field value of the data packet is > 1; if so, Then load the digest of the packet; if not, do not load, and then loop through this step.
(4)当前节点判断是否收到了其它节点发来的SV-DP消息;如果是,则执行下一步(此时发来SV-DP消息的节点即为相遇节点);如果不是,则转第(1)步。(4) The current node judges whether it has received the SV-DP message sent by other nodes; if so, execute the next step (the node that sends the SV-DP message is the encounter node at this time); if not, turn to the ( 1) step.
(5)当前节点生成一个DP-SV-BUY消息(通过数据包“类型”字段的值来与其它数据包区别)。(5) The current node generates a DP-SV-BUY message (distinguished from other data packets by the value of the "type" field of the data packet).
(6)当前节点判断是否有需要装入DP-SV-BUY消息的数据包摘要;如果没有,则结束本机制的操作;如果有,则进行判断该数据包的生命期字段值是否>1;如果是,则执行下一步;如果不是,则循环执行本步骤。(6) The current node judges whether there is a data packet digest that needs to be loaded into the DP-SV-BUY message; if not, then end the operation of this mechanism; if there is, then judge whether the lifetime field value of the data packet is >1; If yes, go to the next step; if not, execute this step in a loop.
(7)当前节点判断自己与数据包目的节点的相遇概率是否<相遇节点与数据包目的节点的相遇概率;如果是,则装入该数据包的摘要,然后转步骤(6);如果否,则不装入,直接转步骤(6)。(7) current node judges whether the probability of encounter of oneself and the destination node of the data packet < the probability of encountering the node and the destination node of the data packet; if yes, then load the summary of this data packet, then go to step (6); if not, If it is not loaded, go to step (6).
2.自适应合并SV-DP消息和求购消息2. Adaptively merge SV-DP message and buy message
现有的机会网络相关路由方法中,相遇节点在进行信息交互时,采用的机制是先交换双方的SV和DP列表;节点在收到对方的SV与DP列表后,会对要购买的数据包提出购买请求,发出求购消息。由于求购消息的源、目的节点与SV-DP消息相同,因此在不超过分组最大长度限制的情况下可以合并传输,此种情形下一个节点分别发送SV-DP消息和求购消息会产生控制消息的冗余。In the existing opportunistic network-related routing methods, when the encountering nodes exchange information, the mechanism used is to first exchange the SV and DP lists of the two parties; after the nodes receive the other party's SV and DP lists, they will Make a purchase request and send a purchase message. Since the source and destination nodes of the purchase message are the same as the SV-DP message, they can be combined and transmitted without exceeding the maximum length limit of the packet. In this case, when a node sends the SV-DP message and the purchase message respectively, a control message redundancy.
为解决该问题,本发明提出一种“自适应合并SV-DP消息和求购消息”的新机制,它的基本思路是:如果当前节点在发送自己的SV-DP消息之前收到对方的SV-DP消息,则生成一个DP-SV-BUY消息并将DP列表、数据包摘要装入该消息;接着,判断DP-SV-BUY消息能否装得下一条数据包求购信息(包括数据包源节点、序号和报价),即判断DP-SV-BUY消息的头部+DP列表+SV+一条数据包求购信息的长度是否<控制消息的最大长度限制;如果是,则根据对方SV-DP消息中数据包的目的节点、对方DP列表中与该目的节点的相遇概率及自己的DP列表中与该目的节点的相遇概率,判断是否要购买对方的数据包;若要购买,则计算出欲购的数据包在博弈均衡下的最优价格;接下来,则在DP-SV-BUY消息中装入数据包求购信息(在不超过控制消息最大长度限制的情况下能装多少就装多少),从而在整体上减少数据包求购消息的数量。In order to solve this problem, the present invention proposes a new mechanism of "adaptively combining SV-DP message and purchase message". Its basic idea is: if the current node receives the other party's SV-DP message before sending its own SV-DP message, DP message, then generate a DP-SV-BUY message and load the DP list and data packet summary into the message; then, judge whether the DP-SV-BUY message can hold the next data packet purchase information (including the data packet source node) , serial number and quotation), that is, judge whether the length of the header of the DP-SV-BUY message + DP list + SV + a data packet purchase information is less than the maximum length limit of the control message; The destination node of the package, the probability of encountering the destination node in the other party's DP list, and the probability of encountering the destination node in its own DP list, determine whether to purchase the other party's data package; if you want to purchase, calculate the data to be purchased. The optimal price of the package under the game equilibrium; next, the data package purchase information is loaded into the DP-SV-BUY message (as much as can be loaded without exceeding the maximum length limit of the control message), so as to The overall reduction in the number of packet-purchase messages.
“自适应合并SV-DP消息和求购消息”的新机制的基本流程如说明书附图4所示,主要操作如下:The basic process of the new mechanism of "adaptively combining SV-DP message and purchase message" is shown in Figure 4 of the description, and the main operations are as follows:
(1)一个节点判断是否收到了另一个节点发来的SV-DP消息;如果是,则执行下一步;如果否,则结束本机制的操作。(1) A node judges whether it has received the SV-DP message sent by another node; if so, execute the next step; if not, end the operation of this mechanism.
(2)当前节点生成一个的DP-SV-BUY消息并装入DP列表和SV中的数据包摘要。(2) The current node generates a DP-SV-BUY message and loads the DP list and the packet digest in the SV.
(3)当前节点判断DP-SV-BUY消息能否装下一个数据包的求购信息;如果是,则执行下一步;如果否,则结束本机制的操作。(3) The current node judges whether the DP-SV-BUY message can hold the purchase information of the next data packet; if so, execute the next step; if not, end the operation of this mechanism.
(4)当前节点判断是否要购买对方节点(发来SV-DP消息的节点)的数据包;如果是,则执行下一步;如果否,则结束本机制的操作。(4) The current node judges whether to purchase the data package of the opposite node (the node that sent the SV-DP message); if so, execute the next step; if not, end the operation of this mechanism.
(5)当前节点将一条求购数据包的信息(包括数据包源节点地址、序号、报价)装入DP-SV-BUY消息(放在SV的后面,逐条装入),然后转第(3)步。(5) The current node loads the information of a purchase data packet (including the source node address, sequence number, and quotation of the data packet) into the DP-SV-BUY message (placed behind the SV and loaded one by one), and then goes to (3) step.
3.博弈时综合考虑买卖收益3. Comprehensive consideration of trading income when gaming
根据现有的基于议价博弈的机会网络路由方法,在买卖双方进行博弈时,只有当博弈双方的收益(收益与节点和目的节点的相遇概率、收发数据包的损耗、博弈损耗等因素有关)都不小于0时,双方才会达成交易(即交易成功),并由此采取合作转发的策略。卖方收到买方对数据包的报价后会计算自己的收益,如果计算出的收益小于0,它会拒绝接受报价,因而交易无法完成,博弈会失败,数据包不会被转发。博弈失败对数据包的传输有潜在的不利影响。为解决此问题,我们提出了“博弈时综合考虑买卖收益”的新机制,该新机制基本思路如下:According to the existing opportunistic network routing method based on bargaining game, when buyers and sellers play a game, only when the income of both sides of the game (the income is related to the probability of encountering the node and the destination node, the loss of sending and receiving data packets, the game loss, etc.) When it is not less than 0, the two parties will reach a transaction (that is, the transaction is successful), and thus adopt a cooperative forwarding strategy. The seller will calculate its own profit after receiving the buyer's offer for the data package. If the calculated profit is less than 0, it will refuse to accept the offer, so the transaction cannot be completed, the game will fail, and the data packet will not be forwarded. Losing the game has potentially adverse effects on the transmission of packets. In order to solve this problem, we propose a new mechanism of "comprehensive consideration of buying and selling income when gaming". The basic idea of this new mechanism is as follows:
当一个节点通过博弈购买了一个数据包后,它会保存购买时的收益(简称为“买时收益”;在SV中该数据包对应的条目中添加一个“买时收益”字段,用于存储“买时收益”;向其它节点发送数据包摘要时不发送“买时收益”);当其它节点想购买该数据包并发来报价时,当前节点根据报价计算卖出该数据包的收益(简称为“卖时收益”),然后判断买时收益+卖时收益是否>0;如果是,则接受买方节点报价,同意交易;否则,拒绝交易(现有相关方法是当卖时收益是否>0才同意交易)。这样,由于在博弈过程中综合计算了买、卖数据包时的收益,因此在保证当前节点总收益是否>0的情况下降低了对卖时收益的要求,增加了买卖双方达成交易的机会,能提高交易成功率,增加数据包被转发的机会,从而促进网络吞吐量的增加和数据包平均端到端时延的降低。When a node purchases a data package through the game, it will save the income at the time of purchase (referred to as "revenue at the time of purchase"; a field of "revenue at the time of purchase" is added to the entry corresponding to the data package in SV for storage "Benefit when buying"; do not send "revenue when buying" when sending a packet summary to other nodes); when other nodes want to buy the data packet and send a quotation, the current node calculates the income from selling the packet according to the quotation (referred to as is "sell-time income"), and then judge whether the buy-time income + sell-time income > 0; if so, accept the buyer's node offer and agree to the transaction; otherwise, reject the transaction (the existing relevant method is whether the sell-time income > 0 agree to the transaction). In this way, since the income of buying and selling data packets is comprehensively calculated in the game process, the requirements for the income when selling are reduced under the condition of ensuring whether the total income of the current node is > 0, and the opportunity for the buyer and seller to reach a transaction is increased. It can improve the transaction success rate and increase the chance of data packets being forwarded, thereby promoting the increase of network throughput and the reduction of the average end-to-end delay of data packets.
“博弈时综合考虑买卖收益”新机制的基本流程如说明书附图5所示,主要操作如下:The basic process of the new mechanism of "comprehensive consideration of buying and selling income when gaming" is shown in Figure 5 of the description. The main operations are as follows:
(1)每个节点在购买了另一个节点的数据包后,都将购买时的收益存入SV中该数据包对应表项的“买时收益”字段。(1) After each node purchases the data package of another node, it stores the purchase income in the "purchase income" field of the corresponding entry of the data package in the SV.
(2)节点判断是否有其它节点求购数据包;如果是,则执行下一步;如果否,则结束本机制的操作。(2) The node judges whether there are other nodes seeking to purchase data packets; if so, execute the next step; if not, end the operation of this mechanism.
(3)节点将收到的数据包求购信息里的报价值取出,计算出该数据包的“卖时收益”。(3) The node takes out the offer value in the received purchase information of the data packet, and calculates the "sell-time income" of the data packet.
(4)节点计算并判断买时收益+卖时收益是否>0;如果是,则接受买方节点报价,同意交易,向买方节点发送数据包;如果否,则拒绝交易,向买方节点回复一个“拒绝交易”消息,然后结束本机制的操作。(4) The node calculates and judges whether the income at the time of buying + the income at the time of selling is > 0; if so, accept the offer from the buyer node, agree to the transaction, and send a data packet to the buyer node; if not, reject the transaction and reply to the buyer node with a "" Transaction rejected" message, then ends the operation of the mechanism.
(二)本发明提出的低开销高交易成功率的机会网络路由方法的主要操作(2) Main operations of the opportunistic network routing method with low overhead and high transaction success rate proposed by the present invention
本发明提出的低开销高交易成功率机会网络路由方法由在逻辑上具有先后顺序的节点相遇感知、博弈和数据包传递、交易结算三个阶段中节点的操作组成,包含“自适应精简数据包摘要”、“自适应合并SV-DP消息和求购消息”、“博弈时综合考虑买卖收益”三种新机制,它们均工作在博弈和数据包传递阶段,具体如说明书附图6所示。The opportunistic network routing method with low overhead and high transaction success rate proposed by the present invention is composed of node operations in three stages logically sequenced: node encounter perception, game and data packet transmission, and transaction settlement. There are three new mechanisms, namely “Summary”, “Adaptive Merging of SV-DP Messages and Purchasing Messages”, and “Comprehensive Consideration of Buying and Selling Profits in Gaming”, all of which work in the stages of gaming and data packet delivery, as shown in Figure 6 of the specification.
本发明提出的低开销高交易成功率机会网络路由方法做有如下预设:The low overhead and high transaction success rate opportunistic network routing method proposed by the present invention has the following presets:
(1)网络刚开始运行时,每个节点都拥有相同的虚拟货币值。(1) When the network starts running, each node has the same virtual currency value.
(2)每个节点从其它节点获得数据包时,都需要用一定的虚拟货币量去购买,购买时双方节点使用博弈的形式进行议价;买到数据包后节点拥有的虚拟货币值会因按成交价支付虚拟货币给对方而减少。如果节点剩余的虚拟货币值不足以购买一个数据包时,它便不能获得该数据包。(2) When each node obtains data packets from other nodes, it needs to use a certain amount of virtual currency to purchase. During the purchase, the two nodes use the form of game to negotiate the price; the virtual currency value owned by the node after buying the data packet will be determined according to the price. The transaction price is reduced by paying the virtual currency to the other party. If the node's remaining virtual currency value is not enough to buy a data package, it cannot get the data package.
(3)在每次交易数据包的过程中,会产生传输和接收开销,买、卖双方节点分别会产生博弈的开销,这些开销需要从买或卖方节点的虚拟货币值中扣除。(3) In the process of each transaction data packet, there will be transmission and reception overhead, and the buyer and seller nodes will generate game costs, which need to be deducted from the virtual currency value of the buyer or seller node.
(4)网络中设有一个位置固定(或移动)的特殊节点——交易结算中心(CreditClearance Center,CCC)作为交易费用结算机构,对于节点间达成的每次买卖数据包的交易,CCC要收取卖方节点一笔交易费用。(4) There is a special node with a fixed (or mobile) location in the network - the Credit Clearance Center (CCC) as a transaction fee settlement agency. For each transaction of buying and selling data packets between nodes, CCC will charge A transaction fee for the seller node.
下面分阶段介绍本发明提出的新路由方法的主要操作。The main operations of the new routing method proposed by the present invention are introduced in stages below.
1.节点相遇感知1. Node encounter perception
节点相遇感知阶段的基本操作流程如说明书附图7所示,主要操作步骤如下:The basic operation process of the node encounter perception stage is shown in Figure 7 of the specification, and the main operation steps are as follows:
P1-S1:网络中的节点周期性地广播hello消息,通告自己的存在。P1-S1: Nodes in the network periodically broadcast hello messages to announce their existence.
P1-S2:如果一个节点收到其它节点广播的hello消息,它首先提取出消息的源节点地址;接下来,在DP列表中查询与该节点的相遇概率值是否为0(相遇概率值为0表示从未相遇过);如果为0,则将该相遇概率值修改为相遇概率初始值(缺省建议设为0.5);如果不为0,则根据如下公式修改与该节点的相遇概率值:P1-S2: If a node receives a hello message broadcast by other nodes, it first extracts the source node address of the message; then, in the DP list, it queries whether the encounter probability value with the node is 0 (the encounter probability value is 0). Indicates that it has never met); if it is 0, modify the encounter probability value to the initial value of the encounter probability (the default recommendation is set to 0.5); if it is not 0, modify the encounter probability value with the node according to the following formula:
P(s,b)=P(s,b)old+(1-P(s,b)old)×Pinit (6)P (s,b) =P (s,b)old +(1-P (s,b)old )×P init (6)
式中,P(s,b)和P(s,b)old分别表示节点s、d的最新和以前的相遇概率值;Pinit表示相遇概率初始值。最后,当前节点生成一个SV-DP消息,将SV和DP列表等信息装入其中,然后发给对方节点。In the formula, P (s,b) and P (s,b)old represent the latest and previous encounter probability values of nodes s and d, respectively; P init represents the initial value of the encounter probability. Finally, the current node generates an SV-DP message, loads the SV and DP list and other information into it, and then sends it to the opposite node.
P1-S3:如果一个节点收到其它节点发来的SV-DP消息,它首先提取消息的源节点地址;接下来,在DP列表中查询与该节点的相遇概率值是否为0;如果为0,则将该相遇概率值修改为相遇概率初始值(缺省建议设为0.5);如果不为0,则根据公式(6)修改与该节点的相遇概率值。P1-S3: If a node receives an SV-DP message from another node, it first extracts the source node address of the message; next, it queries the DP list to see if the encounter probability value with the node is 0; if it is 0 , then modify the encounter probability value to the initial value of the encounter probability (the default recommendation is set to 0.5); if it is not 0, modify the encounter probability value with the node according to formula (6).
2.博弈和数据包传递2. Gaming and packet delivery
博弈和数据包传递阶段的基本操作流程如说明书附图8所示,主要操作步骤如下:The basic operation process of the game and data packet transmission stage is shown in Figure 8 of the specification, and the main operation steps are as follows:
P2-S1:每个节点都独立地判断是否收到了其它节点发来的SV-DP消息;如果是,便修改相应的相遇概率值,然后执行下一步;如果否,则执行步骤P2-S8:。P2-S1: Each node independently judges whether it has received SV-DP messages from other nodes; if so, it modifies the corresponding encounter probability value, and then executes the next step; if not, executes steps P2-S8: .
P2-S2:当前节点采用本发明提出的“自适应合并SV-DP消息和求购消息”新机制,生成一个DP-SV-BUY消息;然后,将DP列表装入DP-SV-BUY消息。P2-S2: The current node adopts the new mechanism of "adaptively combining SV-DP message and purchase message" proposed by the present invention to generate a DP-SV-BUY message; then, the DP list is loaded into the DP-SV-BUY message.
P2-S3:当前节点将数据包摘要逐个装入DP-SV-BUY消息,装的过程中使用本发明提出的“自适应精简数据包摘要”新机制,在将一个数据包的摘要装入DP-SV-BUY消息之前,它判断该数据包的生命期字段值是否>1;如果是,则执行下一步;如果不是,则循环执行本步骤,直至所有数据包的摘要都处理完,然后转步骤P2-S5:。P2-S3: The current node loads the digests of the data packets into the DP-SV-BUY message one by one, and uses the new mechanism of "adaptive and simplified data packet digest" proposed by the present invention in the process of loading, and loads the digest of a data packet into the DP -Before the SV-BUY message, it judges whether the value of the lifetime field of the data packet is > 1; if so, execute the next step; Steps P2-S5:.
P2-S4:当前节点判断自己与数据包目的节点的相遇概率是否<相遇节点与数据包目的节点的相遇概率;如果是,则将数据包的摘要装入DP-SV-BUY消息,然后转步骤P2-S3:;如果不是,则直接转步骤P2-S3:。P2-S4: The current node judges whether the encounter probability between itself and the destination node of the data packet < the encounter probability between the encounter node and the destination node of the data packet; if so, load the summary of the data packet into the DP-SV-BUY message, and then go to the step P2-S3:; if not, go to step P2-S3: directly.
P2-S5:当前节点判断是否要向对方节点求购消息;如果是,则执行下一步;如果否,则将DP-SV-BUY消息发给对方节点,然后转步骤P2-S8:。P2-S5: The current node judges whether to request a purchase message from the opposite node; if yes, execute the next step; if not, send the DP-SV-BUY message to the opposite node, and then go to step P2-S8:.
P2-S6:当前节点判断DP-SV-BUY消息是否能够装入一条数据包求购信息(包括数据包的源地址、序号、报价(报价根据公式(1)计算));如果是,便将一条数据包求购信息装入DP-SV-BUY消息(缺省建议放于SV的后面),然后转步骤P2-S5:;如果否,则将DP-SV-BUY消息发给对方节点(即发来SV-DP消息的节点)。P2-S6: The current node judges whether the DP-SV-BUY message can be loaded with a data packet purchase information (including the source address, serial number, and quotation of the data packet (the quotation is calculated according to formula (1)); The data packet purchase information is loaded into the DP-SV-BUY message (it is recommended to be placed after the SV by default), and then go to steps P2-S5:; if not, send the DP-SV-BUY message to the opposite node (that is, send the node for SV-DP messages).
P2-S7:当前节点将DP-SV-BUY消息未能装下的所有数据包求购信息装入一个求购消息,然后将该消息发给对方节点。P2-S7: The current node loads all the data packet purchase information that cannot be loaded by the DP-SV-BUY message into a purchase message, and then sends the message to the opposite node.
P2-S8:当前节点判断是否收到了其它节点发来的DP-SV-BUY消息;如果是,执行下一步;如果否,则转步骤P2-S10:。P2-S8: The current node judges whether it has received the DP-SV-BUY message sent by other nodes; if yes, execute the next step; if not, go to step P2-S10:.
P2-S9:当前节点从DP-SV-BUY消息取出并存储DP列表、SV和求购信息(DP列表的长度与网络中的节点总数成正比;SV包含的数据包摘要数量在DP-SV-BUY消息头部的相应字段有记录,每条数据包摘要和每条求购信息的长度都是定值);接着,从求购信息中取出报价值并据其计算出数据包的卖时收益(卖时收益根据公式(4)计算);然后,采用本发明提出的“博弈时综合考虑买卖收益”新机制,判断数据包的买时收益+卖时收益是否>0;如果是,则同意交易,将该数据包发送给对方;如果否,则拒绝交易,不做发送操作。P2-S9: The current node retrieves and stores the DP list, SV and purchase information from the DP-SV-BUY message (the length of the DP list is proportional to the total number of nodes in the network; the number of packet summaries contained in the SV is in the DP-SV-BUY There are records in the corresponding fields of the message header, and the length of each data packet summary and each purchase information is a fixed value); then, the quoted value is extracted from the purchase information and the sales revenue of the data packet is calculated based on it (the time of sale). The income is calculated according to formula (4)); then, using the new mechanism of "comprehensive consideration of trading income when gaming" proposed by the present invention, it is judged whether the buying income + selling income of the data package is > 0; if so, the transaction is agreed, and the The data packet is sent to the other party; if not, the transaction is rejected and no sending operation is performed.
P2-S10:当前节点判断是否收到了其它节点发来的求购消息;如果是,执行下一步;如果否,则转步骤P2-S12:。P2-S10: The current node judges whether it has received a purchase message from other nodes; if yes, execute the next step; if not, go to steps P2-S12:.
P2-S11:当前节点从求购消息包含的求购信息中取出报价值并据其计算出数据包的卖时收益;然后,采用本发明提出的“博弈时综合考虑买卖收益”新机制,判断数据包的买时收益+卖时收益是否>0;如果是,则同意交易,将该数据包发送给对方;如果否,则拒绝交易,不做发送操作。P2-S11: The current node extracts the quoted value from the purchase information contained in the purchase request message and calculates the sale-time income of the data package based on it; Whether the income at the time of buying + the income at the time of selling is > 0; if so, agree to the transaction and send the data packet to the other party; if not, reject the transaction and do not do the sending operation.
P2-S12:当前节点判断是否收到了其它节点发来的数据包;如果是,将数据包存储,并在SV中建立一条与该数据包对应的数据包摘要(包含数据包的源节点、目的节点、序号、买时收益等字段);接着,生成一个支付消息(包含卖方节点地址、数据包序号、数据包成交价格等内容)并将该支付消息发送给数据包的卖方节点;接下来,从自己的虚拟货币值中减去购买数据包所花费的金额(即数据包的成交价格);然后,根据购买该数据包的成交价格,用公式(3)计算出“买时收益”,存入SV中该数据包摘要的“买时收益”字段;如果没收到其它节点发来的数据包,则执行下一步。P2-S12: The current node judges whether it has received data packets from other nodes; if so, store the data packets, and create a data packet summary corresponding to the data packet in the SV (including the source node of the data packet, the destination node, serial number, income at the time of purchase, etc.); then, generate a payment message (including the seller's node address, data package serial number, data package transaction price, etc.) and send the payment message to the data package's seller node; Next, Subtract the amount spent for purchasing the data package (that is, the transaction price of the data package) from your own virtual currency value; Enter the "revenue when buying" field of the data packet summary in the SV; if no data packets from other nodes are received, go to the next step.
P2-S13:当前节点判断是否收到了其它节点发来的、对应于一个自己卖出的数据包的支付消息;如果是,则生成一条“数据包卖出记录”信息,记录该数据包的传输和接收开销、该数据包对于买卖双方节点的价值量,然后将该“数据包卖出记录”存入事先建立的“数据包卖出记录表”中;转步骤P2-S1:;如果没收到其它节点发来的支付消息,则直接转步骤P2-S1:。P2-S13: The current node judges whether it has received a payment message from other nodes that corresponds to a data package sold by itself; if so, it generates a "data package sales record" message to record the transmission of the data package and receiving overhead, the value of the data packet to the buyer and seller nodes, and then store the “data packet sale record” in the pre-established “data packet sale record table”; go to step P2-S1:; if no other For the payment message sent by the node, go directly to step P2-S1:.
3.交易结算阶段3. Transaction settlement stage
交易结算阶段的核心操作是交易结算中心节点CCC对每笔已完成交易的卖方节点的账户进行扣费操作,CCC和普通节点(除CCC以外的节点)的基本操作流程分别如说明书附图9和附图10所示,主要操作步骤如下:The core operation of the transaction settlement stage is that the transaction settlement center node CCC deducts the account of the seller node for each completed transaction. The basic operation processes of CCC and ordinary nodes (nodes other than CCC) are shown in Figure 9 and As shown in Figure 10, the main operation steps are as follows:
P3-S1:CCC周期性广播hello消息,消息中包含其地址。P3-S1: CCC periodically broadcasts a hello message, and the message contains its address.
P3-S2:一个节点如果收到CCC广播的hello消息,则判断自己有没有未报给CCC的“数据包卖出记录”;如果有,则将所有未报给CCC的“数据包卖出记录”装入一个新生成的“数据包卖出消息”中,然后将该消息发送给CCC;如果没有,则不再执行后续操作。P3-S2: If a node receives a hello message broadcast by CCC, it will determine whether it has a "packet sale record" that has not been reported to CCC; " into a newly generated "packet sell message", which is then sent to CCC; if not, no further action is performed.
P3-S3:CCC如果收到一个节点发来的“数据包卖出消息”,则从该消息中取出所有“数据包卖出记录”,接着根据这些记录用公式(5)计算出应该扣除的费用,并将该费用值装入一个新生成的“费用扣除消息”,接下来将该消息发给对方节点;并把此次扣除的费用加到预先建立的“节点费用扣除表”里对方节点对应的“扣除的总费用”表项值中。P3-S3: If CCC receives a "packet selling message" from a node, it will take out all "packet selling records" from the message, and then use formula (5) to calculate the deducted amount according to these records. The cost is loaded into a newly generated "cost deduction message", and then the message is sent to the opposite node; and the deducted cost is added to the opposite node in the pre-established "node cost deduction table". In the corresponding "Total Expenses Deducted" table entry value.
P3-S4:一个节点如果收到CCC发来的“费用扣除消息”,则将该消息携带的需扣除的费用值取出,并在自己的剩余虚拟货币值中扣除该费用值;如果没收到,则不做操作。P3-S4: If a node receives a "cost deduction message" sent by CCC, it will take out the cost value to be deducted carried in the message, and deduct the cost value from its remaining virtual currency value; if it does not receive it, Do not operate.
(三)本发明的有益效果(3) Beneficial effects of the present invention
本发明的有益效果主要是:减少了控制信息的传送、提高了节点通过博弈达成交易的成功率、增加了数据包在网络中的转发机会,从而能够提高数据包传送成功率和吞吐量、降低控制开销和数据包平均端到端时延。The beneficial effects of the invention are mainly as follows: the transmission of control information is reduced, the success rate of nodes reaching transactions through games is improved, and the forwarding opportunity of data packets in the network is increased, thereby improving the transmission success rate and throughput of data packets, reducing Control overhead and packet average end-to-end delay.
本发明的有益效果具体来自以下三个方面:The beneficial effects of the present invention come from the following three aspects:
(1)通过采用“自适应精简数据包摘要”新机制,去除了不会被交易和生命期字段值不支持转发的数据包的摘要,从而减少了这些的数据包摘要带来的冗余控制信息的传送。(1) By adopting the new mechanism of "adaptive reduced packet digest", the digests of data packets that cannot be forwarded by transactions and lifetime field values are removed, thereby reducing the redundant control brought by these data packet digests transmission of information.
(2)通过采用“自适应合并SV-DP消息和求购消息”新机制,减少了部分求购消息,这部分求购消息的头部就不用再传输(虽然增加了数据包摘要数量字段,但该字段的缺省长度仅为16bits,明显小于求购消息头部的长度),从而降低了控制开销。(2) By adopting the new mechanism of "adaptively combining SV-DP message and purchase message", part of the purchase message is reduced, and the header of this part of the purchase message does not need to be transmitted (although the data packet summary quantity field is added, this field The default length is only 16 bits, which is significantly smaller than the length of the purchase message header), thus reducing the control overhead.
(3)通过采用“博弈时综合考虑买卖收益”新机制,用买时和卖时收益之和代替原来的卖时收益来进行正值判断(即判断是否大于0),使一些原来不能达成交易的博弈也能达成交易,从而提高了交易成功率,使数据包在网络中得到转发的机会增加,数据包传送成功率和吞吐量因而提高,数据包平均端到端时延降低。(3) By adopting the new mechanism of "comprehensive consideration of trading income during the game", the sum of the income at the time of buying and the time of selling is used to replace the original income at the time of selling to make a positive judgment (that is, whether to judge whether it is greater than 0), so that some original transactions cannot be reached. The game can also reach a transaction, thereby improving the transaction success rate, increasing the chance of data packets being forwarded in the network, thus improving the success rate and throughput of data packet transmission, and reducing the average end-to-end delay of data packets.
附图说明Description of drawings
附图1为GSCP方法中典型的消息交互和数据包传送过程。从其中可以看出,SV、DP列表和数据包m的求购信息是放在不同的控制消息中传送的。Fig. 1 is a typical message interaction and data packet transmission process in the GSCP method. It can be seen from this that the SV, DP list and the purchase information of the data packet m are transmitted in different control messages.
附图2为DP-SV-BUY消息的结构。DP-SV-BUY消息是本发明提出的一种新的控制消息,包含DP列表、SV中的数据包摘要、请求购买的数据包的摘要,实质上是将原有的SV-DP消息和求购消息进行合并后的消息,消息头部设有一个存放SV中数据包摘要条数的字段(缺省建议长度为16bits)。Figure 2 shows the structure of the DP-SV-BUY message. The DP-SV-BUY message is a new control message proposed by the present invention, which includes the DP list, the data packet summary in the SV, and the summary of the data packet requested to be purchased. After the messages are merged, the header of the message is provided with a field for storing the number of data packet summaries in the SV (the default recommended length is 16 bits).
附图3为“自适应精简数据包摘要”新机制的基本流程。Figure 3 is the basic flow of the new mechanism of "adaptive reduced packet digest".
附图4为“自适应合并SV-DP消息和求购消息”的新机制的基本流程。Fig. 4 is the basic flow of the new mechanism of "adaptively combining SV-DP message and purchase message".
附图5为“博弈时综合考虑买卖收益”新机制的基本流程。Figure 5 shows the basic process of the new mechanism of "comprehensive consideration of trading income when gaming".
附图6为本发明提出的低开销高交易成功率机会网络路由方法的组成示意图,新路由方法由在逻辑上具有先后关系的节点相遇感知、博弈和数据包传递、交易结算三个阶段的操作组成,包含“自适应精简数据包摘要”、“自适应合并SV-DP消息和求购消息”、“博弈时综合考虑买卖收益”三种新机制,这些新机制均工作在博弈和数据包传递阶段。6 is a schematic diagram of the composition of the opportunistic network routing method with low overhead and high transaction success rate proposed by the present invention. The new routing method consists of logically sequential node encounter perception, game and data packet transmission, and transaction settlement. It consists of three new mechanisms, including "adaptive reduction of packet summaries", "adaptive merging of SV-DP messages and buying messages", and "comprehensive consideration of buying and selling income during gaming", all of which work in the gaming and packet delivery stages .
附图7为本发明提出的低开销高交易成功率机会网络路由方法在节点相遇感知阶段的基本操作流程。FIG. 7 is the basic operation flow of the low overhead and high transaction success rate opportunistic network routing method proposed by the present invention in the node encounter perception stage.
附图8为本发明提出的低开销高交易成功率机会网络路由方法中节点在博弈和数据包传递阶段的基本操作流程。FIG. 8 is a basic operation flow of a node in the stage of game and data packet transmission in the opportunistic network routing method with low overhead and high transaction success rate proposed by the present invention.
附图9为本发明提出的低开销高交易成功率机会网络路由方法中CCC在交易结算阶段的基本操作流程。FIG. 9 is the basic operation flow of CCC in the transaction settlement stage in the opportunistic network routing method with low overhead and high transaction success rate proposed by the present invention.
附图10为本发明提出的低开销高交易成功率机会网络路由方法中普通节点在交易结算阶段的基本操作流程。FIG. 10 is the basic operation flow of the common node in the transaction settlement stage in the opportunistic network routing method with low overhead and high transaction success rate proposed by the present invention.
具体实施方式Detailed ways
(一)预设(1) Preset
本发明提出的低开销高交易成功率机会网络路由方法做了如下预先设置:The low overhead and high transaction success rate opportunistic network routing method proposed by the present invention is preset as follows:
(1)网络刚开始运行时,每个节点都被设置为拥有相同的虚拟货币值——10000。(1) When the network first started running, each node was set to have the same virtual currency value - 10000.
(2)每个节点从其它节点获得数据包时,都需要用一定的虚拟货币量去购买,购买时双方节点使用博弈的形式进行议价;买到数据包后节点拥有的虚拟货币值会因按成交价支付虚拟货币给对方而减少。如果节点剩余的虚拟货币值不足以购买一个数据包时,它便不能获得该数据包。(2) When each node obtains data packets from other nodes, it needs to use a certain amount of virtual currency to purchase. During the purchase, the two nodes use the form of game to negotiate the price; the virtual currency value owned by the node after buying the data packet will be determined according to the price. The transaction price is reduced by paying the virtual currency to the other party. If the node's remaining virtual currency value is not enough to buy a data package, it cannot get the data package.
(3)在每次交易数据包的过程中,会产生传输和接收开销,买、卖双方节点分别会产生博弈的开销,这些开销需要从买或卖方节点的虚拟货币值中扣除。(3) In the process of each transaction data packet, there will be transmission and reception overhead, and the buyer and seller nodes will generate game costs, which need to be deducted from the virtual currency value of the buyer or seller node.
(4)网络中设有一个位置固定的特殊节点——交易结算中心CCC作为交易费用结算机构,对于节点间达成的每次买卖数据包的交易,CCC要收取卖方节点一笔交易费用。(4) There is a special node with a fixed location in the network - the transaction settlement center CCC as the transaction fee settlement agency. For each transaction of buying and selling data packets between nodes, CCC will charge the seller node a transaction fee.
(5)节点相遇概率的初始值Pinit=0.5,每个数据包的源节点为成功转发数据包到目的节点支付的费用ω=1,分组最大长度Lmax=4096bits,数据包m的传输开销T(m)=Lmax/40960(5) The initial value of the node encounter probability P init = 0.5, the cost that the source node of each data packet pays for successfully forwarding the data packet to the destination node ω = 1, the maximum packet length L max = 4096 bits, the transmission overhead of the data packet m T(m)=L max /40960
,数/据包m的接收开销P(m)=Lmax/40960,每一轮议价博弈中买方节点的开销CB(γ)=0.1,每一轮议价博弈中卖方节点的开销CS(γ)=0.1,交易费用因子σ=(VB(m)-VS(m)-T(m)-P(m))/2.2,交易费用γ=(VB(m)-VS(m)-T(m)-P(m))/2-σ,交易费用参数k=2-2γ/(VB(m)-VS(m)-T(m)-P(m))。, the receiving cost of data/packet m P(m)=L max /40960, the cost of the buyer node in each round of bargaining game C B (γ)=0.1, the cost of the seller node in each round of bargaining game C S ( γ)=0.1, transaction cost factor σ=(V B (m)-V S (m)-T(m)-P(m))/2.2, transaction cost γ=(V B (m)-V S ( m)-T(m)-P(m))/2-σ, transaction cost parameter k=2-2γ/(V B (m)-V S (m)-T(m)-P(m)) .
(二)实施方式(2) Implementation
本发明提出的低开销高交易成功率机会网络路由方法由在逻辑上具有先后关系的节点相遇感知、博弈和数据包传递、交易结算三个阶段的操作组成,包含“自适应精简数据包摘要”、“自适应合并SV-DP消息和求购消息”、“博弈时综合考虑买卖收益”三种新机制,它们均工作在博弈和数据包传递阶段。The opportunistic network routing method with low overhead and high transaction success rate proposed by the present invention is composed of three stages of operations: node encounter perception, game and data packet transmission, and transaction settlement, which have a logical sequence relationship, including "adaptive and simplified data packet summary". , "adaptive merging of SV-DP messages and buying messages", "comprehensive consideration of buying and selling income when gaming" three new mechanisms, all of which work in the gaming and data packet delivery stages.
1.节点相遇感知1. Node encounter perception
节点相遇感知阶段的主要操作如下:The main operations of the node encounter awareness phase are as follows:
P1-S1:网络中的节点周期性地广播hello消息,通告自己的存在,广播周期Thello=3s。P1-S1: Nodes in the network periodically broadcast hello messages to announce their existence, and the broadcast period is T hello =3s.
P1-S2:如果一个节点收到其它节点广播的hello消息,它首先提取出消息的源节点地址;接下来,在DP列表中查询与该节点的相遇概率值是否为0(相遇概率值为0表示从未相遇过);如果为0,则将该相遇概率值修改为相遇概率初始值Pinit;如果不为0,则根据公式(6)修改与该节点的相遇概率值。最后,当前节点生成一个SV-DP消息,将SV和DP列表等信息装入其中,然后发给对方节点。P1-S2: If a node receives a hello message broadcast by other nodes, it first extracts the source node address of the message; then, in the DP list, it queries whether the encounter probability value with the node is 0 (the encounter probability value is 0). means never met); if it is 0, modify the encounter probability value to the initial value of the encounter probability P init ; if it is not 0, modify the encounter probability value with the node according to formula (6). Finally, the current node generates an SV-DP message, loads the SV and DP list and other information into it, and then sends it to the opposite node.
P1-S3:如果一个节点收到其它节点发来的SV-DP消息,它首先提取消息的源节点地址;接下来,在DP列表中查询与该节点的相遇概率值是否为0;如果为0,则将该相遇概率值修改为相遇概率初始值Pinit;如果不为0,则根据公式(6)修改与该节点的相遇概率值。P1-S3: If a node receives an SV-DP message from another node, it first extracts the source node address of the message; next, it queries the DP list to see if the encounter probability value with the node is 0; if it is 0 , then modify the encounter probability value to the initial value of the encounter probability P init ; if it is not 0, modify the encounter probability value with the node according to formula (6).
2.博弈和数据包传递2. Gaming and packet delivery
博弈和数据包传递阶段的主要操作如下:The main operations in the game and packet delivery phases are as follows:
P2-S1:每个节点都独立地判断是否收到了其它节点发来的SV-DP消息;如果是,便修改相应的相遇概率值,然后执行下一步;如果否,则执行步骤P2-S8:。P2-S1: Each node independently judges whether it has received SV-DP messages from other nodes; if so, it modifies the corresponding encounter probability value, and then executes the next step; if not, executes steps P2-S8: .
P2-S2:当前节点采用本发明提出的“自适应合并SV-DP消息和求购消息”新机制,生成一个DP-SV-BUY消息;然后,将DP列表装入DP-SV-BUY消息。P2-S2: The current node adopts the new mechanism of "adaptively combining SV-DP message and purchase message" proposed by the present invention to generate a DP-SV-BUY message; then, the DP list is loaded into the DP-SV-BUY message.
P2-S3:当前节点将数据包摘要逐个装入DP-SV-BUY消息,装的过程中使用本发明提出的“自适应精简数据包摘要”新机制,在将一个数据包的摘要装入DP-SV-BUY消息之前,它判断该数据包的生命期字段值是否>1;如果是,则执行下一步;如果不是,则循环执行本步骤,直至所有数据包的摘要都处理完,然后转步骤P2-S5:。P2-S3: The current node loads the digests of the data packets into the DP-SV-BUY message one by one, and uses the new mechanism of "adaptive and simplified data packet digest" proposed by the present invention in the process of loading, and loads the digest of a data packet into the DP -Before the SV-BUY message, it judges whether the value of the lifetime field of the data packet is > 1; if so, execute the next step; Steps P2-S5:.
P2-S4:当前节点判断自己与数据包目的节点的相遇概率是否<相遇节点与数据包目的节点的相遇概率;如果是,则将数据包的摘要装入DP-SV-BUY消息,然后转步骤P2-S3:;如果不是,则直接转步骤P2-S3:。P2-S4: The current node judges whether the encounter probability between itself and the destination node of the data packet < the encounter probability between the encounter node and the destination node of the data packet; if so, load the summary of the data packet into the DP-SV-BUY message, and then go to the step P2-S3:; if not, go to step P2-S3: directly.
P2-S5:当前节点判断是否要向对方节点求购消息;如果是,则执行下一步;如果否,则将DP-SV-BUY消息发给对方节点,然后转步骤P2-S8:。P2-S5: The current node judges whether to request a purchase message from the opposite node; if yes, execute the next step; if not, send the DP-SV-BUY message to the opposite node, and then go to step P2-S8:.
P2-S6:当前节点判断DP-SV-BUY消息是否能够装入一条数据包求购信息(包括数据包的源地址、序号、报价(报价根据公式(1)计算));如果是,便将一条数据包求购信息装入DP-SV-BUY消息(放于SV的后面,逐条放置),然后转步骤P2-S5:;如果否,则将DP-SV-BUY消息发给对方节点(即发来SV-DP消息的节点)。P2-S6: The current node judges whether the DP-SV-BUY message can be loaded with a data packet purchase information (including the source address, serial number, and quotation of the data packet (the quotation is calculated according to formula (1)); The data packet purchase information is loaded into the DP-SV-BUY message (placed behind the SV and placed one by one), and then goes to steps P2-S5:; if not, the DP-SV-BUY message is sent to the opposite node (that is, sent node for SV-DP messages).
P2-S7:当前节点将DP-SV-BUY消息未能装下的所有数据包求购信息装入一个求购消息,然后将该消息发给对方节点。P2-S7: The current node loads all the data packet purchase information that cannot be loaded by the DP-SV-BUY message into a purchase message, and then sends the message to the opposite node.
P2-S8:当前节点判断是否收到了其它节点发来的DP-SV-BUY消息;如果是,执行下一步;如果否,则转步骤P2-S10:。P2-S8: The current node judges whether it has received the DP-SV-BUY message sent by other nodes; if yes, execute the next step; if not, go to step P2-S10:.
P2-S9:当前节点从DP-SV-BUY消息取出并存储DP列表、SV和求购信息(DP列表的长度与网络中的节点总数成正比;SV包含的数据包摘要数量在DP-SV-BUY消息头部的相应字段有记录,每条数据包摘要和每条求购信息的长度都是定值);接着,从求购信息中取出报价值并据其计算出数据包的卖时收益(卖时收益根据公式(4)计算);然后,采用本发明提出的“博弈时综合考虑买卖收益”新机制,判断数据包的买时收益+卖时收益是否>0;如果是,则同意交易,将该数据包发送给对方;如果否,则拒绝交易,不做发送操作。P2-S9: The current node retrieves and stores the DP list, SV and purchase information from the DP-SV-BUY message (the length of the DP list is proportional to the total number of nodes in the network; the number of packet summaries contained in the SV is in DP-SV-BUY There are records in the corresponding fields of the message header, and the length of each data packet summary and each purchase information is a fixed value); then, the quoted value is extracted from the purchase information and the sales income of the data packet is calculated based on it (the time of sale). The income is calculated according to formula (4)); then, using the new mechanism of "comprehensive consideration of trading income during gaming" proposed by the present invention, it is judged whether the buying income + selling income of the data package is > 0; if so, the transaction is agreed, and the The data packet is sent to the other party; if not, the transaction is rejected and no sending operation is performed.
P2-S10:当前节点判断是否收到了其它节点发来的求购消息;如果是,执行下一步;如果否,则转步骤P2-S12:。P2-S10: The current node judges whether it has received a purchase message from other nodes; if yes, execute the next step; if not, go to steps P2-S12:.
P2-S11:当前节点从求购消息包含的求购信息中取出报价值并据其计算出数据包的卖时收益;然后,采用本发明提出的“博弈时综合考虑买卖收益”新机制,判断数据包的买时收益+卖时收益是否>0;如果是,则同意交易,将该数据包发送给对方;如果否,则拒绝交易,不做发送操作。P2-S11: The current node extracts the quoted value from the purchase information contained in the purchase request message and calculates the sale-time income of the data package based on it; Whether the income at the time of buying + the income at the time of selling is > 0; if so, agree to the transaction and send the data packet to the other party; if not, reject the transaction and do not do the sending operation.
P2-S12:当前节点判断是否收到了其它节点发来的数据包;如果是,将数据包存储,并在SV中建立一条与该数据包对应的数据包摘要(包含数据包的源节点、目的节点、序号、买时收益等字段);接着,生成一个支付消息(包含卖方节点地址、数据包序号、数据包成交价格等内容)并将该支付消息发送给数据包的卖方节点;接下来,从自己的虚拟货币值中减去购买数据包所花费的金额(即数据包的成交价格);然后,根据购买该数据包的成交价格,用公式(3)计算出“买时收益”,存入SV中该数据包对应表项的“买时收益”字段;如果没收到其它节点发来的数据包,则执行下一步。P2-S12: The current node judges whether it has received data packets from other nodes; if so, store the data packets, and create a data packet summary corresponding to the data packet in the SV (including the source node of the data packet, the destination node, serial number, income at the time of purchase, etc.); then, generate a payment message (including the seller's node address, data package serial number, data package transaction price, etc.) and send the payment message to the data package's seller node; Next, Subtract the amount spent for purchasing the data package (that is, the transaction price of the data package) from your own virtual currency value; Enter the "revenue when buying" field of the entry corresponding to the data packet in the SV; if no data packets from other nodes are received, go to the next step.
P2-S13:当前节点判断是否收到了其它节点发来的、对应于一个自己卖出的数据包的支付消息;如果是,则生成一条“数据包卖出记录”信息,记录该数据包的传输和接收开销、该数据包对于买卖双方节点的价值量,然后将该“数据包卖出记录”存入事先建立的“数据包卖出记录表”中;转步骤P2-S1:;如果没收到其它节点发来的支付消息,则直接转步骤P2-S1:。P2-S13: The current node judges whether it has received a payment message from other nodes that corresponds to a data package sold by itself; if so, it generates a "data package sales record" message to record the transmission of the data package and receiving overhead, the value of the data packet to the buyer and seller nodes, and then store the “data packet sale record” in the pre-established “data packet sale record table”; go to step P2-S1:; if no other For the payment message sent by the node, go directly to step P2-S1:.
3.交易结算阶段3. Transaction settlement stage
交易结算阶段的主要操作如下:The main operations in the transaction settlement stage are as follows:
P3-S1:CCC周期性广播hello消息,消息中包含其地址,广播周期TCCC=3s。P3-S1: CCC periodically broadcasts a hello message, the message includes its address, and the broadcast period is T CCC =3s.
P3-S2:一个节点如果收到CCC广播的hello消息,则判断自己有没有未报给CCC的“数据包卖出记录”;如果有,则将所有未报给CCC的“数据包卖出记录”装入一个新生成的“数据包卖出消息”中,然后将该消息发送给CCC;如果没有,则不再执行后续操作。P3-S2: If a node receives a hello message broadcast by CCC, it will determine whether it has a "packet sale record" that has not been reported to CCC; " into a newly generated "packet sell message", which is then sent to CCC; if not, no further action is performed.
P3-S3:CCC如果收到一个节点发来的“数据包卖出消息”,则从该消息中取出所有“数据包卖出记录”,接着根据这些记录用公式(5)计算出应该扣除的费用,并将该费用值装入一个新生成的“费用扣除消息”,接下来将该消息发给对方节点;并把此次扣除的费用加到预先建立的“节点费用扣除表”里对方节点对应的“扣除的总费用”表项值中。P3-S3: If CCC receives a "packet selling message" from a node, it will take out all "packet selling records" from the message, and then use formula (5) to calculate the deducted amount according to these records. The cost is loaded into a newly generated "cost deduction message", and then the message is sent to the opposite node; and the deducted cost is added to the opposite node in the pre-established "node cost deduction table". In the corresponding "Total Expenses Deducted" table entry value.
P3-S4:一个节点如果收到CCC发来的“费用扣除消息”,则将该消息携带的需扣除的费用值取出,并在自己的剩余虚拟货币值中扣除该费用值;如果没收到,则不做操作。P3-S4: If a node receives a "cost deduction message" sent by CCC, it will take out the cost value to be deducted carried in the message, and deduct the cost value from its remaining virtual currency value; if it does not receive it, Do not operate.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710665993.8A CN107371211B (en) | 2017-08-07 | 2017-08-07 | An opportunistic network routing method with low overhead and high transaction success rate |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710665993.8A CN107371211B (en) | 2017-08-07 | 2017-08-07 | An opportunistic network routing method with low overhead and high transaction success rate |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107371211A CN107371211A (en) | 2017-11-21 |
CN107371211B true CN107371211B (en) | 2020-10-02 |
Family
ID=60310310
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710665993.8A Active CN107371211B (en) | 2017-08-07 | 2017-08-07 | An opportunistic network routing method with low overhead and high transaction success rate |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107371211B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109618385B (en) * | 2019-01-08 | 2022-05-27 | 重庆邮电大学 | A reliable and efficient method for detecting selfish nodes in opportunistic networks |
CN115941585A (en) * | 2022-11-18 | 2023-04-07 | 中国银行股份有限公司 | Transaction route determining method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101895954A (en) * | 2010-08-24 | 2010-11-24 | 重庆邮电大学 | Opportunistic network routing method based on incremental transmission of packet index |
CN102523614A (en) * | 2012-01-04 | 2012-06-27 | 北京工商大学 | Epidemic routing algorithm based on Delivered-Drop mechanism |
CN103024855A (en) * | 2012-11-30 | 2013-04-03 | 重庆邮电大学 | Information forwarding method in opportunity network based on node excitation |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9585159B2 (en) * | 2014-12-19 | 2017-02-28 | Qualcomm Incorporated | Opportunistic dual-band relay |
-
2017
- 2017-08-07 CN CN201710665993.8A patent/CN107371211B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101895954A (en) * | 2010-08-24 | 2010-11-24 | 重庆邮电大学 | Opportunistic network routing method based on incremental transmission of packet index |
CN102523614A (en) * | 2012-01-04 | 2012-06-27 | 北京工商大学 | Epidemic routing algorithm based on Delivered-Drop mechanism |
CN103024855A (en) * | 2012-11-30 | 2013-04-03 | 重庆邮电大学 | Information forwarding method in opportunity network based on node excitation |
Non-Patent Citations (1)
Title |
---|
基于多方议价博弈的机会网络高吞吐量低开销概率路由算法;任智,索建伟,刘文朋,雷宏江,陈前斌;《通信学报》;20150630;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN107371211A (en) | 2017-11-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103024855B (en) | A kind of information forwarding method based on node activations in opportunistic network | |
Xu et al. | A game theoretical incentive scheme for relay selection services in mobile social networks | |
CN101296190A (en) | A cooperative communication method based on game theory in wireless ad hoc network | |
CN107371211B (en) | An opportunistic network routing method with low overhead and high transaction success rate | |
Babazadeh Nanehkaran et al. | An incentive-compatible routing protocol for delay-tolerant networks using second-price sealed-bid auction mechanism | |
CN1937579A (en) | Fee-based route and relay method for wireless self-organized network | |
Demir et al. | An auction based AODV protocol for mobile ad hoc networks with selfish nodes | |
Ji et al. | A game theoretical framework for dynamic pricing-based routing in self-organized MANETs | |
Wang et al. | On improving the efficiency of truthful routing in MANETs with selfish nodes | |
CN103824195A (en) | Excitation method based on three-round bargaining in opportunity network | |
Wang et al. | Truthful low-cost unicast in selfish wireless networks | |
Wu et al. | Dealing with selfishness and moral hazard in noncooperative wireless networks | |
CN103841622A (en) | Relay self-adaptive selection method based on social attribute | |
Li et al. | A novel bargaining based incentive protocol for opportunistic networks | |
Li et al. | An incentive aware routing for selfish opportunistic networks: A game theoretic approach | |
CN105682176A (en) | Node incentive method based on buying-selling model and two-layer optimization | |
Xu et al. | An Energy-equilibrium Opportunity network routing algorithm based on Game theory and Historical similarity rate | |
CN106453082A (en) | Fair delay-tolerant network node cooperation stimulation method based on credit strategy | |
Yang et al. | Incorporating user willingness in contract-based incentive mechanism for D2D cooperative data forwarding | |
Li et al. | GIR: an opportunistic network routing algorithm based on game theory | |
CN110234143B (en) | Reliable routing oriented to IWSN based on sealed first price auction game | |
CN102348239B (en) | Service-based consultation method in mobile ad-hoc networks | |
CN107124735B (en) | Opportunistic network low-overhead routing method based on delivery probability SV piggyback | |
Wu et al. | Research of node incentive strategy in selfish opportunistic network | |
Di Ferdinando et al. | A framework for autonomic networked auctions |
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 |