|
|
|
|
接近開關(guān)傳感器在數(shù)據(jù)傳播階段的介紹 |
|
|
|
|
|
錄入時(shí)間:2015-03-05 10:34:09瀏覽次數(shù):1 |
|
當(dāng)接近開關(guān)傳感器節(jié)點(diǎn)采集到了與興趣匹配的數(shù)據(jù)時(shí),把數(shù)據(jù)發(fā)送到梯度上的鄰居節(jié)點(diǎn),并按照梯度上的數(shù)據(jù)傳輸速率設(shè)定接近開關(guān)傳感器模塊采集數(shù)據(jù)的速率。由于可能從多個(gè)鄰居節(jié)點(diǎn)收到興趣消息,節(jié)點(diǎn)向多個(gè)鄰居節(jié)點(diǎn)發(fā)送數(shù)據(jù),匯聚節(jié)點(diǎn)可能收到經(jīng)過多個(gè)路徑的相同數(shù)據(jù),中間節(jié)點(diǎn)收到其他節(jié)點(diǎn)轉(zhuǎn)發(fā)的數(shù)據(jù)后,首先查詢興趣列表的表項(xiàng);如果沒有匹配的興趣表項(xiàng)就丟棄數(shù)據(jù);如果存在相應(yīng)的興趣表項(xiàng),則檢查與穿上興趣對(duì)慶的數(shù)據(jù)緩沖池,數(shù)據(jù)緩沖池用來保存最近轉(zhuǎn)發(fā)的數(shù)據(jù),如果在數(shù)據(jù)緩沖池中有與接收到的數(shù)據(jù)匹配的副本,說明已經(jīng)轉(zhuǎn)發(fā)過這個(gè)數(shù)據(jù),為避免出現(xiàn)傳輸環(huán)路而丟棄這個(gè)數(shù)據(jù);否則,檢查該興趣表項(xiàng)中的鄰居節(jié)點(diǎn)信息,如果設(shè)置的鄰居節(jié)點(diǎn)數(shù)據(jù)發(fā)送速率大于等于接收的數(shù)據(jù)速率,則全部轉(zhuǎn)發(fā)接收的數(shù)據(jù);如果記錄的鄰居節(jié)點(diǎn)數(shù)據(jù)發(fā)送速率小于接收的數(shù)據(jù)速率,則按照比例轉(zhuǎn)發(fā)。對(duì)于轉(zhuǎn)發(fā)的數(shù)據(jù),數(shù)據(jù)緩沖池保留一個(gè)副本,并記錄轉(zhuǎn)發(fā)時(shí)間。 |
|
|