The ONE所支持的移動模型movement,其實是以某種規(guī)則產(chǎn)生一系列連接建立或撤消的事件嚎研,其形式如下:
0.0 CONN 0 4 up
0.0 CONN 1 2 up
0.0 CONN 1 5 up
0.0 CONN 3 4 up
0.0 CONN 4 5 up
0.0 CONN 4 6 up
0.0 CONN 5 7 up
0.0 CONN 6 7 up
0.0 CONN 7 8 up
其中 第一列代表時間筒繁,第三列 和第四列代表節(jié)點,最后一列代表連接或是斷開阳欲。
連接在不同時間的通斷代表了節(jié)點的移動舵盈,靜態(tài)拓?fù)渚捅容^難以實現(xiàn)節(jié)點的更新,其中的prophet路由是通過connection狀態(tài)的變化來進(jìn)行節(jié)點的更新球化。代碼為證:
public void changedConnection(Connection con) {//* Informs the router about change in connections state.
super.changedConnection(con);
if (con.isUp()) {
DTNHost otherHost = con.getOtherNode(getHost());
updateDeliveryPredFor(otherHost);
updateTransitivePreds(otherHost);
}
}
正在考慮如何更改節(jié)點更新條件秽晚。