CN102045809B - Routing method of opportunistic network based on wireless radio frequencies - Google Patents
Routing method of opportunistic network based on wireless radio frequencies Download PDFInfo
- Publication number
- CN102045809B CN102045809B CN 200910036100 CN200910036100A CN102045809B CN 102045809 B CN102045809 B CN 102045809B CN 200910036100 CN200910036100 CN 200910036100 CN 200910036100 A CN200910036100 A CN 200910036100A CN 102045809 B CN102045809 B CN 102045809B
- Authority
- CN
- China
- Prior art keywords
- node
- reader
- network
- radio frequency
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 230000005540 biological transmission Effects 0.000 claims abstract description 28
- 230000006854 communication Effects 0.000 claims abstract description 18
- 238000004891 communication Methods 0.000 claims abstract description 14
- 238000012546 transfer Methods 0.000 claims description 7
- 230000001934 delay Effects 0.000 claims description 2
- 238000004088 simulation Methods 0.000 description 4
- 239000007921 spray Substances 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000011160 research Methods 0.000 description 3
- 230000002457 bidirectional effect Effects 0.000 description 2
- 241000408659 Darpa Species 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 230000007123 defense Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域 technical field
本发明涉及一种路由方法,特别是一种基于无线射频的机会网络路由方法。The invention relates to a routing method, in particular to a radio frequency-based opportunistic network routing method.
背景技术 Background technique
无线射频技术是利用射频信号自动识别目标对象并获取相关信息的一种技术。早在二战期间,在区分联军和纳粹飞机的“敌我辨识”系统中就展现了其雏形。目前包括IBM、Motorola、Oracle等在内的各大软硬件厂商都对该技术进行研究,并推出了一系列的软硬件产品,在物流管理、仓储系统、高速公路收费站等人们日常生活的各个方面进行应用。Radio frequency technology is a technology that uses radio frequency signals to automatically identify target objects and obtain relevant information. As early as World War II, it showed its prototype in the "identification friend or foe" system that distinguished Allied and Nazi aircraft. At present, major software and hardware manufacturers including IBM, Motorola, Oracle, etc. are conducting research on this technology, and have launched a series of software and hardware products, which are used in logistics management, warehousing systems, expressway toll stations and other aspects of people's daily life. aspect to apply.
机会网络的研究来源于美国国防部高等研究计划局DARPA支持的星际互联网计划(IPN),这是一种在大多数情况下,源节点和目的节点不存在完整路径的移动无线网络。目前逐步应用到生物追踪、校园网络、家庭自动化网络、城市及乡村网络等领域。由于机会网络具有间歇性连接、高传输延时、不均匀连接等特点,使得原本的TCP/IP协议无法建立端到端的连接而造成大量的丢包。The research on opportunistic networks comes from the Interplanetary Internet Project (IPN) supported by DARPA of the US Defense Advanced Research Projects Agency, which is a mobile wireless network in which there is no complete path between the source node and the destination node in most cases. At present, it is gradually applied to biological tracking, campus network, home automation network, urban and rural network and other fields. Due to the characteristics of intermittent connections, high transmission delay, and uneven connections in opportunistic networks, the original TCP/IP protocol cannot establish end-to-end connections, resulting in a large number of packet loss.
近年来人们对机会网络进行了各种分析,也提出了许多不同的路由协议,但这些协议,都存在一些不足之处,如有的协议占用了过多的网络资源,有的协议在数据包的成功传输率或平均延时上表现的不够理想,有的协议要求节点的移动必须遵循特定的方式。In recent years, people have conducted various analyzes on opportunistic networks, and proposed many different routing protocols, but these protocols have some shortcomings, such as some protocols occupy too much network resources, and some protocols The performance of the successful transmission rate or the average delay is not ideal, and some protocols require that the movement of nodes must follow a specific method.
发明内容 Contents of the invention
本发明所解决的技术问题在于提供一种能满足动态变化的网络环境下的传输率和时延约束要求,并能合理利用网络中的缓存与带宽等资源的基于无线射频的机会网络路由方法。The technical problem solved by the present invention is to provide a radio frequency-based opportunistic network routing method that can meet the transmission rate and delay constraint requirements in a dynamically changing network environment, and can reasonably utilize resources such as cache and bandwidth in the network.
实现本发明目的的技术解决方案为:一种基于无线射频的机会网络路由方法,包括以下步骤:The technical solution that realizes the object of the present invention is: a kind of opportunistic network routing method based on radio frequency, comprises the following steps:
步骤1:对机会网络的应用场景进行选择,该应用场景为一个相对封闭的环境,在此场景中存在一些移动的实体,各移动实体之间需要进行一些数据的传递与共享;Step 1: Select the application scenario of the opportunistic network. The application scenario is a relatively closed environment. There are some mobile entities in this scenario, and some data transmission and sharing need to be carried out between the mobile entities;
步骤2:在上述应用场景中设置若干个无线射频读写器,这些读写器位于移动节点密集的地方,其覆盖范围不能重叠;Step 2: Set up several wireless radio frequency readers in the above application scenarios. These readers are located in places where mobile nodes are densely populated, and their coverage areas cannot overlap;
步骤3:在移动节点上设置通讯终端,该通讯终端包括两个接口,一个为无线射频读写接口,另一个为传统无线网络的读写接口;Step 3: Set up a communication terminal on the mobile node, the communication terminal includes two interfaces, one is a radio frequency read-write interface, and the other is a traditional wireless network read-write interface;
步骤4:移动节点之间进行数据传输,将网络负载分为两部分,一部分网络负载通过中继节点进行存储转发,另一部分网络负载通过无线射频信号进行数据传递,二者并行进行。Step 4: For data transmission between mobile nodes, the network load is divided into two parts, one part of the network load is stored and forwarded through the relay node, and the other part of the network load is transmitted through radio frequency signals, and the two are performed in parallel.
本发明与现有技术相比,其显著优点为:采用了无线射频信号与传统网络信号并行传输数据的方式,提高了机会网络的性能,与传统的单纯的使用无线网络进行数据传递的路由协议相比,在提高了传输率的同时,降低了端到端的延时,并将网络资源的使用控制在合理的范围之内。Compared with the prior art, the present invention has the remarkable advantages that: it adopts the way of wireless radio frequency signal and traditional network signal to transmit data in parallel, improves the performance of opportunistic network, and is different from the traditional routing protocol that simply uses wireless network for data transmission In comparison, while increasing the transmission rate, the end-to-end delay is reduced, and the use of network resources is controlled within a reasonable range.
下面结合附图对本发明作进一步详细描述。The present invention will be described in further detail below in conjunction with the accompanying drawings.
附图说明 Description of drawings
图1为本发明的应用场景。Fig. 1 is an application scenario of the present invention.
图2为本发明的一种基于无线射频的机会网络路由方法的流程图。FIG. 2 is a flowchart of a radio frequency-based opportunistic network routing method according to the present invention.
图3为本发明中通过无线网络传送数据包的方法流程图。FIG. 3 is a flowchart of a method for transmitting data packets through a wireless network in the present invention.
图4为本发明中移动节点之间通信的流程图。Fig. 4 is a flowchart of communication between mobile nodes in the present invention.
图5为本发明中通过无线射频传送数据包的方式。FIG. 5 shows the method of transmitting data packets through radio frequency in the present invention.
图6为本发明中移动节点和读写器通信的流程图。Fig. 6 is a flowchart of the communication between the mobile node and the reader in the present invention.
图7为本发明的路由策略和其他路由策略的传输率比较。FIG. 7 is a comparison of transmission rates between the routing strategy of the present invention and other routing strategies.
图8为本发明的路由策略和其他路由策略的延时比较。Fig. 8 is a delay comparison between the routing strategy of the present invention and other routing strategies.
图9为本发明的路由策略和其他路由策略的占用资源的比较。FIG. 9 is a comparison of resources occupied by the routing strategy of the present invention and other routing strategies.
图10为本发明的路由策略和其他路由策略的总共流量的比较。FIG. 10 is a comparison of the total traffic of the routing strategy of the present invention and other routing strategies.
具体实施方式 Detailed ways
结合图1、图2,本发明的一种基于无线射频的机会网络路由方法,包括以下步骤:With reference to Fig. 1 and Fig. 2, a kind of opportunistic network routing method based on radio frequency of the present invention comprises the following steps:
步骤1:对机会网络的应用场景进行选择,该应用场景为一个相对封闭的环境,如一所大学校园,在此场景中存在一些移动的实体,如人或者车辆,他们之间需要进行一些数据的传递与共享。通常,实体之间是没有直接的端到端的路径,而且所传递的数据要求的实时性并不是很高;Step 1: Select the application scenario of the opportunistic network. The application scenario is a relatively closed environment, such as a university campus. In this scenario, there are some moving entities, such as people or vehicles, and some data exchange is required between them. Pass and share. Usually, there is no direct end-to-end path between entities, and the real-time performance of the transmitted data is not very high;
步骤2:在上述应用场景中设置无线射频读写器,该读写器位于移动节点密集的地方,其覆盖范围不能重叠;Step 2: Set up a wireless radio frequency reader in the above application scenario. The reader is located in a place where mobile nodes are densely populated, and its coverage cannot overlap;
步骤3:在移动节点上设置通讯终端,该通讯终端包括两个接口,一个为无线射频读写接口,另一个为传统无线网络的读写接口;Step 3: Set up a communication terminal on the mobile node, the communication terminal includes two interfaces, one is a radio frequency read-write interface, and the other is a traditional wireless network read-write interface;
步骤4:移动节点之间进行数据传输,将网络负载分为两部分,一部分网络负载通过中继节点进行存储转发另一部分网络负载通过无线射频信号进行数据传递,二者并行进行。Step 4: Data transmission is performed between mobile nodes, and the network load is divided into two parts, one part of the network load is stored and forwarded through the relay node, and the other part of the network load is transmitted through radio frequency signals, and the two are performed in parallel.
对网络负载进行划分的具体方法为:原本在机会网络中,某个节点在产生数据包之后会形成多个副本,并将这些副本发送给若干个不同的中继节点,然后不再复制该数据包,所有这些存储着副本的节点在遇到目的节点后,将该数据包发送给目的节点,完成数据的传递,这是一种受限的洪泛路由协议。在受限洪泛路由协议的基础上设定好洪泛副本的数量q,在源节点产生数据包后将q分成n、m两部分其中q=m+n,q>m>0,q>n>0,在以后的传点过程中n个副本通过中继节点进行转发,m个副本通过无线射频信号进行传递。The specific method of dividing the network load is: originally in the opportunistic network, a node will form multiple copies after generating a data packet, and send these copies to several different relay nodes, and then no longer copy the data Packet, all these nodes that store the copy will send the data packet to the destination node after encountering the destination node to complete the data transfer. This is a limited flood routing protocol. Set the number of flooding copies q on the basis of the restricted flooding routing protocol, and divide q into n and m parts after the source node generates data packets, where q=m+n, q>m>0, q> n > 0, in the subsequent point transfer process, n copies are forwarded through the relay node, and m copies are transmitted through radio frequency signals.
结合图3,本发明的一部分网络负载通过中继节点进行存储转发的具体步骤为:In combination with Fig. 3, the specific steps for storing and forwarding a part of the network load of the present invention through the relay node are as follows:
(1)源节点根据预先设定的n个副本将n-1个副本发送给最先遇到的n-1个不同的移动节点,自己保留一个;源节点也可采用二元分发策略来进行分发,具体为:源节点在第一次分发副本的时候,将副本数的一半传递给中继节点,之后每个携带副本数大于等于2的节点,在分发的时候,将副本数的一半传递给其它的中继节点,这种分法策略可以最快的将完成副本的分发;(1) The source node sends n-1 copies to the first n-1 different mobile nodes encountered according to the preset n copies, and keeps one for itself; the source node can also use a binary distribution strategy to carry out Distribution, specifically: when the source node distributes copies for the first time, it will pass half of the number of copies to the relay node, and then each node with the number of copies greater than or equal to 2 will pass half of the number of copies when distributing For other relay nodes, this division strategy can complete the distribution of copies as quickly as possible;
(2)对中继节点进行判断,如果某个中继节点就是目的节点,则完成该数据包的传递;否则这n个携带副本的节点将不再进行数据包的复制,其中任意一个节点遇到目的节点即将数据包传递给目的节点从而完成数据的传递。(2) Judging the relay node, if a relay node is the destination node, then complete the delivery of the data packet; otherwise, the n nodes carrying copies will no longer copy the data packet, and any node encounters When reaching the destination node, the data packet is delivered to the destination node to complete the data transfer.
结合图4,在实际的环境中,任意两个节点之间的一次相遇过程中,可能存在多个数据包进行传递,由于节点的接触时间有限,而且数据的传输带宽也有限,就有必要给需要发送的数据包安排优先级。首先两个节点是对等的,那么任意一方开始传递以对方为目的节点的数据包,之后另一方开始传递以对方为目的节点的数据包,这样可以尽快的将完成一些数据包的传递过程,随后,任意一方开始向对方传递需要转发的数据包,之后另一方开始向对方传递需要转发的数据包,至此完成整个通信过程。如果在此过程中节点因为移动而导致节点间的通信中断,那么结束通信过程,正在传递的数据包将被丢弃。Combined with Figure 4, in the actual environment, there may be multiple data packets to be transmitted during a meeting between any two nodes. Since the contact time of nodes is limited and the data transmission bandwidth is also limited, it is necessary to provide Packets that need to be sent are prioritized. First of all, the two nodes are equal, then either party starts to transmit the data packets with the other party as the destination node, and then the other party starts to transmit the data packets with the other party as the destination node, so that the transmission process of some data packets can be completed as soon as possible. Subsequently, any party starts to transmit data packets to be forwarded to the other party, and then the other party starts to transmit data packets to be forwarded to the other party, thus completing the entire communication process. If the communication between the nodes is interrupted due to the movement of the nodes during this process, the communication process will end and the data packets being transmitted will be discarded.
结合图5,本发明的另一部分网络负载通过无线射频信号进行数据传递的具体步骤为:In conjunction with Fig. 5, another part of the network load of the present invention carries out the specific steps of data transmission through the wireless radio frequency signal as follows:
(a)移动节点定期向读写器发起会话请求,若读写器忙碌,则移动节点延迟3~5s后再次发起会话请求;若读写器空闲则执行步骤(b),并且读写器自身进入忙碌状态;(a) The mobile node periodically initiates a session request to the reader. If the reader is busy, the mobile node delays 3~5s and initiates the session request again; if the reader is idle, execute step (b), and the reader itself enter a busy state;
(b)读写器发出应答信号并且与移动节点建立连接;(b) The reader sends a response signal and establishes a connection with the mobile node;
(c)移动节点将通过无线射频信号传输的数据包的副本放在缓冲区并指示读写器读写;(c) The mobile node places a copy of the data packet transmitted by the radio frequency signal in the buffer and instructs the reader to read and write;
(d)读写器从移动节点读写数据,则完成一个数据包的读写;读写器在后续与目的节点的会话中将该数据包写入目的节点;(d) The reader/writer reads and writes data from the mobile node, and then completes the reading and writing of a data packet; the reader/writer writes the data packet into the destination node in a subsequent session with the destination node;
(e)读写器与移动节点在读写完毕后断开连接,读写器进入空闲状态,读写器之间定期进行通讯,将数据包的m个副本分发到m个不同的读写器上。(e) The reader-writer and the mobile node are disconnected after reading and writing, the reader-writer enters an idle state, the reader-writer communicates regularly, and distributes m copies of the data packet to m different readers superior.
结合图6说明节点与无线射频读写器之间的通信过程。移动节点首先向读写器发起会话请求。如果读写器为空闲状态,则对该请求进行响应,读写器与该节点之间建立连接,读写器进入忙碌状态。若节点没有收到读写器的应答信号,则延时3至5秒后,再次发起会话请求,直到建立连接为止。之后读写器将以该节点为目的节点的依次数据包写入节点的特定缓冲区,并指示节点接收,完成某些数据包的传递过程。然后节点将产生的需要通过射频信号进行传递的数据包进行依次放入相应的缓冲区,并指示读写器进行读取。在读写器完成对节点内容的读取后,节点发送结束会话的请求,通信结束,读写器又进入空闲状态。The communication process between the node and the wireless radio frequency reader is described with reference to FIG. 6 . The mobile node first initiates a session request to the reader. If the reader is in the idle state, it will respond to the request, establish a connection between the reader and the node, and the reader will enter the busy state. If the node does not receive the response signal from the reader, it will initiate a session request again after a delay of 3 to 5 seconds until the connection is established. After that, the reader writes the sequential data packets with the node as the destination node into the specific buffer of the node, and instructs the node to receive them, and completes the delivery process of some data packets. Then the node puts the generated data packets that need to be transmitted through the radio frequency signal into the corresponding buffer in turn, and instructs the reader to read. After the reader finishes reading the content of the node, the node sends a request to end the session, the communication ends, and the reader enters the idle state again.
在上述过程中,读写器应该均匀分布在整个网络中的各个区域中,以保证移动节点在网络的任意位置都可以快速的进入读写器的覆盖范围。另外读写器的覆盖半径应该避免重叠,这样会出现读写器之间冲突的情况,同时也造成资源的浪费。整个网络中只需安装少量的读写器即可,这样一方面是出于成本的考虑,另外,过多的读写器对性能的提高微乎其微。In the above process, the readers should be evenly distributed in various areas of the entire network, so as to ensure that the mobile node can quickly enter the coverage of the readers at any position in the network. In addition, the coverage radii of the readers should avoid overlapping, which may cause conflicts between readers and cause waste of resources. Only a small number of readers need to be installed in the entire network. On the one hand, this is due to cost considerations. In addition, too many readers can improve performance very little.
节点的移动是按照一定的移动模型进行的,通常,节点会有一个目的地,之后该节点向目的地移动,在目的地可以做一定时间的停留,然后选择新的目的地,继续移动。The movement of the node is carried out according to a certain movement model. Usually, the node has a destination, and then the node moves to the destination. It can stay at the destination for a certain period of time, and then select a new destination to continue moving.
移动节点可以通过射频信号与读写器进行数据的传递,这种数据传递是双向的,也就是说,读写器可以从移动节点读取数据,也可以像移动节点写入数据。这样在一次移动节点与读写器的通信过程中,读写器从移动节点读取其新产生的数据,并将以其为目的的数据发送给该节点。The mobile node can transmit data with the reader through the radio frequency signal. This data transmission is bidirectional, that is to say, the reader can read data from the mobile node, and can also write data like the mobile node. In this way, during a communication process between the mobile node and the reader-writer, the reader-writer reads the newly generated data from the mobile node, and sends the data for its purpose to the node.
移动节点之间可以进行相互的通信,当两个节点在移动过程中彼此之间的距离小于无线网络的覆盖半径的时候,它们之间就可以通过无线网络进行数据传递。The mobile nodes can communicate with each other, and when the distance between two nodes is less than the coverage radius of the wireless network during the moving process, they can transmit data through the wireless network.
读写器之间也可以进行相互通信。读写器可以看成是固定的基础设施,因此可以在它们之间进行数据的共享,但这并不是必须的。可以安排一个中央控制系统,也可以由某一个读写器担当,负责定期的收集没有读写器新接收的数据包,并将其进行整理,删除重复的数据包,再将整理后的结果返回给每个读写器。读写器之间的数据共享可以通过有线网络进行传输,这样可以快速、及时的将数据散布的整个网络的各个区域。Readers can also communicate with each other. Readers can be seen as fixed infrastructure, so data can be shared among them, but this is not required. A central control system can be arranged, or a certain reader can be responsible for regularly collecting data packets that are not received by the reader, sorting them out, deleting duplicate data packets, and then returning the sorted results for each reader. The data sharing between readers can be transmitted through the wired network, so that the data can be quickly and timely distributed to various areas of the entire network.
任何一个节点在产生一个新的要发送的数据的时候,会通过无线射频和无线网络两种方式,各自独立的进行数据的传递。在无线射频的传递过程中,节点负责将该数据包的一个副本,传递给最先遇到的读写器,之后不再通过射频信号进行多余副本的传递,目的节点在读写器的覆盖范围内,就可从读写器得到相应的数据包,完成数据的传递。在无线网络的传递过程中,节点将数据包n-1(n和整个网络的规模有关)个副本传递给最先遇到的n-1个不同的节点,自己保留一个。如果在这个过程中没有遇到目的节点,则该数据包不再进行复制和转发。直到携带该数据包的某个节点遇到的目的节点并将其发送给目的节点,数据包的传递完成。When any node generates a new data to be sent, it will transmit data independently through radio frequency and wireless network. In the process of wireless radio frequency transmission, the node is responsible for transmitting a copy of the data packet to the first encountered reader, and then no longer transmits redundant copies through radio frequency signals. The destination node is within the coverage of the reader Within, the corresponding data packet can be obtained from the reader to complete the data transfer. During the transmission process of the wireless network, the node transmits n-1 copies of the data packet (n is related to the scale of the entire network) to the first n-1 different nodes encountered, and keeps one for itself. If the destination node is not encountered during this process, the data packet is no longer copied and forwarded. Until a node carrying the data packet encounters the destination node and sends it to the destination node, the transmission of the data packet is completed.
节点定期的与读写器进行交互。如果节点不在任何一个读写器的覆盖范围之内,则等到节点移动到某个读写器的覆盖范围之内的时候,节点发出与读写器通信的请求。如果读写器此刻空闲,则给节点一个响应,在两者之间就建立一个会话连接,并且读写器进入忙碌状态。如果此时读写器忙碌,则节点无法收到读写器的回应,节点可以延时几秒后再发出会话请求,直到得到读写器的响应为止。由于每个节点与读写器之间的会话的时间只占节点的全部时间的很小一部分,所以多个节点同时向读写器进行会话请求的概率是很小的。Nodes interact with readers periodically. If the node is not within the coverage of any reader, the node sends a request to communicate with the reader when the node moves within the coverage of a reader. If the reader is idle at the moment, a response is given to the node, a session connection is established between the two, and the reader enters a busy state. If the reader is busy at this time, the node cannot receive the response from the reader, and the node can delay a few seconds before sending a session request until it gets a response from the reader. Since the session time between each node and the reader-writer only accounts for a small part of the total time of the node, the probability that multiple nodes make session requests to the reader-writer at the same time is very small.
节点与读写器建立连接之后,读写器先将以该节点为目的节点的数据包放在该节点的缓冲区中,并指示节点进行接收。如果读写器没有要发送给节点的数据,或者数据已经接收完毕,则节点不会得到读写器的接受指示,就可以将自己新产生的数据发在缓冲区中等待读写器进行读取。读写器读取数据后,会指示节点该数据已经接收完毕,节点可以将下一个数据包放入缓冲区中。等到读写器读取了节点要传送的所有数据之后,节点发送一个断开连接请求给读写器,并结束与读写器之间的会话。读写器接收到断开连接请求,进入空闲状态。After the node establishes a connection with the reader, the reader first puts the data packet with the node as the destination node in the buffer of the node, and instructs the node to receive it. If the reader has no data to send to the node, or the data has already been received, the node will not receive an acceptance instruction from the reader, and can send its newly generated data in the buffer to wait for the reader to read . After the reader/writer reads the data, it will indicate to the node that the data has been received, and the node can put the next data packet into the buffer. After the reader has read all the data to be transmitted by the node, the node sends a disconnection request to the reader and ends the session with the reader. The reader/writer enters the idle state after receiving the disconnection request.
如果读写器在和节点进行会话的过程中,节点移动到了读写器的覆盖范围之外,或者在数据的读写过程中出现任何的异常,则读写器和节点都中断和对方的会话,节点可以在延时几秒后再尝试与读写器的会话。If the reader is in the process of talking with the node, the node moves out of the coverage of the reader, or any abnormality occurs during the data reading and writing process, the reader and the node will both interrupt the session with the other party , the node can try the session with the reader after a few seconds delay.
任何两个节点之间的距离在无线网络的传输范围之内的时候,就可以在节点间进行无线通信了。如果两个以上的节点在同一个范围之内,那么只会在两两之间建立连接。会话的开始可以由任何一个节点发起,节点之间的连接是双向的,一方建立连接之后可以进行双向的数据传输,但任意一个时刻只存在单向的通信,两个节点都有数据包要发送给对方的时候,必须依次发送。When the distance between any two nodes is within the transmission range of the wireless network, wireless communication between nodes can be performed. If more than two nodes are within the same range, only two connections will be established between them. The start of a session can be initiated by any node. The connection between nodes is bidirectional. After one party establishes a connection, two-way data transmission can be performed. However, there is only one-way communication at any time, and both nodes have data packets to send. When sending to the other party, they must be sent sequentially.
两个节点的会话期间,先发送以对方为目的地的数据包,因为这些数据包是发往目的节点的,所以在发送结束之后可以丢弃,这样也可尽快完成数据的传递。之后,传输需要转发的数据包。节点之间的地位是相等的,因此两个节点收发的顺序是随机的。当一个节点尝试发送数据包给另一个节点的时候,先看对方是否同意接收该数据包,如果该数据包对方已经接收过了(通过无线射频或其他节点),则放弃对该数据包的传输,再尝试别的数据包的发送,否则开始该数据包的传输。一个数据包传输结束之后,可以由任意一方进行新的数据包的传输,如果双方都没有数据包的传输,则可以结束会话。当节点间完成数据的交换之后,节点之间的会话结束,由发起连接的节点结束会话。如果在传输过程中,两个节点之间的距离由于节点的相对运动,大于无线传输的距离,则节点之间的连接中断,正在传送的数据包将被丢弃。During the conversation between the two nodes, the data packets destined for the other party are sent first. Because these data packets are sent to the destination node, they can be discarded after the sending is completed, so that the data transfer can be completed as soon as possible. After that, the packets that need to be forwarded are transmitted. The status between nodes is equal, so the order in which two nodes send and receive is random. When a node tries to send a data packet to another node, it first checks whether the other party agrees to receive the data packet, and if the other party has already received the data packet (via radio frequency or other nodes), then abandon the transmission of the data packet , and then try to send another data packet, otherwise start the transmission of this data packet. After the transmission of a data packet is completed, any party can transmit a new data packet, and if neither party transmits a data packet, the session can be terminated. After the data exchange between the nodes is completed, the session between the nodes ends, and the node that initiates the connection ends the session. If during the transmission process, the distance between two nodes is greater than the wireless transmission distance due to the relative movement of the nodes, the connection between the nodes will be interrupted, and the data packets being transmitted will be discarded.
每个节点都有一定大小的本地缓冲区,存放了自己产生的数据包或者其他节点代转发的数据包。当有新的数据包产生的时候,或者接受到新的数据包的时候,如果本地的缓冲区已满,节点会将最早进入缓冲区的数据包丢弃,以寻求足够的空间存放新的数据包。对于接收到的以自己为目的的数据包,节点不会把它放入本地的缓冲区,而是直接进行进一步的处理。如果接收到了同样的数据包,则直接将其丢弃。Each node has a local buffer of a certain size, which stores data packets generated by itself or forwarded by other nodes. When a new data packet is generated, or when a new data packet is received, if the local buffer is full, the node will discard the earliest data packet entering the buffer to find enough space to store the new data packet . For the data packet received for its own purpose, the node will not put it into the local buffer, but directly carry out further processing. If the same packet is received, it is discarded directly.
下面结合实施例对本发明做进一步详细的描述:Below in conjunction with embodiment the present invention is described in further detail:
实施例:Example:
下面结合一个乡镇仿真环境对本发明作进一步详细描述。该场景的区域大小为4km*4km。区域内由移动节点、读写器设施、道路、固定设施组成。移动节点分为3种:b开头的节点表示bus,这种节点沿着固定的道路运行,并会在终点进行一段时间的停留;c开头的节点表示car,这种节点可以在主干道路上移动,选择某个固定的设施作为目的地,到目的地后在设施做一定的停留;以p开头的节点表示person,这种节点可以在主干道路和次要道路上移动,同样选择某个固定的设施作为目的地,并在到达目的地后,可以进入设施内部运动。三种节点各种参数设置如下表:The present invention will be described in further detail below in conjunction with a township simulation environment. The area size of the scene is 4km*4km. The area is composed of mobile nodes, reader facilities, roads, and fixed facilities. Mobile nodes are divided into three types: nodes beginning with b represent bus, which run along a fixed road and will stay at the end for a period of time; nodes beginning with c represent car, such nodes can move on the main road , choose a fixed facility as the destination, and make a certain stop at the facility after arriving at the destination; the node starting with p represents a person, this kind of node can move on the main road and the secondary road, and also choose a fixed The facility as the destination, and after arriving at the destination, you can enter the facility to exercise. The various parameter settings of the three nodes are as follows:
表1三种节点的参数设置Table 1 Parameter settings of three kinds of nodes
从表1中可以看出,整个场景中总共有100个节点。仿真的总时间设计为12小时,其中前10个小时会数据包会依概率产生。理论上,一次仿真过程中数据包的总数为4000个。数据包的大小为5-100k,基本上设计为一封电子邮件的大小。我们将源决定雾等待和二元喷雾等待的副本数量设置为12个,那么基于无线射频的路由协议中通过无线网络转发的副本的数量就是6个,另外6个副本从无线射频传递。设置6个固定的读写器,每个读写器的覆盖半径都设置为150米,读写器与节点之间的通信速度为每秒10次读或写操作。同时,我们在上述场景中实现了目前流行的传染路由(EpidemicRouter,ER)、源决定雾等待(Spray&Wait SW)、源决定二元喷雾等待(Binary Spray&Wait,BSW)、单副本直接传递路由(DirectRouter DR),进行相互之间性能的比较。As can be seen from Table 1, there are a total of 100 nodes in the whole scene. The total time of the simulation is designed to be 12 hours, of which data packets will be generated according to the probability in the first 10 hours. Theoretically, the total number of data packets in a simulation process is 4000. The size of the packet is 5-100k, which is basically designed to be the size of an email. We set the number of copies of source-determined fog waiting and binary spray waiting to 12, then the number of copies forwarded through the wireless network in the radio frequency-based routing protocol is 6, and the other 6 copies are transmitted from the radio frequency.
在上述环境下,仿真数据显示,数据包的成功传输率在95%以上(图7),平均延时在50分钟以内(图8),总共占用的网络资源在800M以下(图9),传输的数据总量在1800M以下(图10)。以上结果显示,本发明提出的策略具有很高的可行性和合理性。Under the above environment, the simulation data shows that the successful transmission rate of data packets is above 95% (Figure 7), the average delay is within 50 minutes (Figure 8), and the total occupied network resources are below 800M (Figure 9). The total amount of data is below 1800M (Figure 10). The above results show that the strategy proposed by the present invention has high feasibility and rationality.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910036100 CN102045809B (en) | 2009-10-16 | 2009-10-16 | Routing method of opportunistic network based on wireless radio frequencies |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910036100 CN102045809B (en) | 2009-10-16 | 2009-10-16 | Routing method of opportunistic network based on wireless radio frequencies |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102045809A CN102045809A (en) | 2011-05-04 |
CN102045809B true CN102045809B (en) | 2013-06-05 |
Family
ID=43911444
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200910036100 Expired - Fee Related CN102045809B (en) | 2009-10-16 | 2009-10-16 | Routing method of opportunistic network based on wireless radio frequencies |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102045809B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102201989B (en) * | 2011-05-19 | 2013-08-28 | 北京工商大学 | Wait and epidemic routing algorithm |
CN102185783B (en) * | 2011-05-25 | 2013-06-19 | 重庆邮电大学 | Routing design method for multi-ferry direct communication in opportunistic network |
CN102202000B (en) * | 2011-06-14 | 2013-07-17 | 重庆邮电大学 | Routing selection method based on node property in social transportation in opportunistic network |
CN103763193B (en) * | 2014-02-21 | 2017-02-15 | 重庆邮电大学 | Multi-replication routing method for selecting eruption range in vehicular vdhoc networks |
CN105530678B (en) * | 2015-12-14 | 2019-01-25 | 北京邮电大学 | A Load- and Delay-Based Wireless Backhaul Routing Method in Ultra-Dense Networks |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101222438A (en) * | 2008-01-28 | 2008-07-16 | 北京航空航天大学 | A Data Transmission Method in Opportunistic Networks |
CN101232463A (en) * | 2008-02-27 | 2008-07-30 | 北京航空航天大学 | A Data Distribution Method in Opportunistic Networks |
CN101521955A (en) * | 2009-04-08 | 2009-09-02 | 北京航空航天大学 | Method for collecting data under opportunity network |
-
2009
- 2009-10-16 CN CN 200910036100 patent/CN102045809B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101222438A (en) * | 2008-01-28 | 2008-07-16 | 北京航空航天大学 | A Data Transmission Method in Opportunistic Networks |
CN101232463A (en) * | 2008-02-27 | 2008-07-30 | 北京航空航天大学 | A Data Distribution Method in Opportunistic Networks |
CN101521955A (en) * | 2009-04-08 | 2009-09-02 | 北京航空航天大学 | Method for collecting data under opportunity network |
Also Published As
Publication number | Publication date |
---|---|
CN102045809A (en) | 2011-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Whitbeck et al. | Push-and-track: Saving infrastructure bandwidth through opportunistic forwarding | |
CN103297343B (en) | Routing method based on delay tolerant network | |
CN102045809B (en) | Routing method of opportunistic network based on wireless radio frequencies | |
CN107734558A (en) | A kind of control of mobile edge calculations and resource regulating method based on multiserver | |
CN102802227B (en) | Based on the data processing method of base station direct connection framework, equipment and system | |
CN102665213B (en) | Data straight through processing method, equipment and system | |
CN101682637A (en) | Inter-system idle mode mobility | |
JP2002132613A (en) | Download method, user terminal for executing the download method, and distribution server | |
US8576800B2 (en) | Method and apparatus for distributing data to a mobile device using plural access points | |
CN103517409B (en) | Information transferring method, system and equipment | |
CN103493449A (en) | Effective circuits in packet-switched networks | |
CN103546258B (en) | Method and device for data transmission | |
CN105657746A (en) | Rapid roaming system and method of wireless terminal based on AP adjacent relations | |
CN105991481B (en) | A kind of message forwarding method and device | |
CN103647855A (en) | IP (Internet Protocol) address distribution method, device and system in cross-network communication | |
CN103338476A (en) | Reputation mechanism based delay tolerant network data transmission method | |
CN102695154B (en) | Base station straight-through architecture-based method, device and system for charging process | |
Liu et al. | Large-volume data dissemination for cellular-assisted automated driving with edge intelligence | |
CN102769844A (en) | Data transmission method and system based on mobile terminal and mobile terminal | |
CN106851685A (en) | A kind of method and system of control mobile terminal bandwidth | |
CN102299937A (en) | Method and system for distributing clock server based on network | |
CN102195856B (en) | Time delay tolerance routing method for assisting radio frequency identification technology | |
CN101523814A (en) | Wireless network | |
CN102695153B (en) | Base station clustering architecture based billing processing method, billing processing device and billing processing system | |
CN109600431A (en) | Content incremental transmission method, mobile communication system towards mobile communication network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130605 Termination date: 20151016 |
|
EXPY | Termination of patent right or utility model |