How to manually set the routes in the wireless simulations?

 

  A mobile routing table description file has the “.mrt” as its filename suffix. This file describes the changes of routing entries on each mobile node and is used only by the GOD routing module. A simulation case that does not use the GOD routing module for the mobile nodes need not provide this file. Its format is shown as follows.

 

$node_(NID) + entry-changing time + "set-next-hop" + SrcNode + DstNode + NextHop + "chan" + channel

 

Assume there is a case like the following setting.

1

 

2

 

If Node 1 wants to sends packets to Node 3, the packets will go to Node 2 first. Then Node 2 forwards the packets to Node 3. The route will be Node 1->Node 2-> Node 3.

(a)

3      

 

(b)

4

 

 

But in some special cases, if we want the packets route with Node 1à Node 2 àNode 4àNode 5àNode3, we can set the .mrt like the following settings.

5

 

Then we can see

(a)

6

 

(b)

7

 

(c)

8

 

(d)

9

 

Dr. Chih-Heng Ke (http://csie.nqu.edu.tw/smallko), smallko@gmail.com

Department of Computer Science and Information Engineering, National Quemoy University, Taiwan