69 | | Sending and receiving bundles |
| 71 | Make your {{{dtn}}} directory and copy the configuration file. ^([#hn note: change <your_user> for your actual username])^ |
| 72 | {{{ |
| 73 | mkdir /home/<your_user>/dtn |
| 74 | cp /local/DTN2/daemon/dtn.conf /home/<your_user>/dtn/dtn.conf |
| 75 | }}} |
| 76 | |
| 77 | We will edit the configuration file we've just created. |
| 78 | {{{ |
| 79 | #!html |
| 80 | <ol> |
| 81 | <li>Set the directory to be used for bundle payload files </li> |
| 82 | <i>payloaddir</i> to /home/<your_user>/dtn/bundles <br><br> |
| 83 | |
| 84 | <li>Set the directory to be used for database files </li> |
| 85 | <i>dbdir</i> to /home/<your_user>/dtn/db <br><br> |
| 86 | |
| 87 | <li>Create a route to the deamon</li> |
| 88 | route local_eid dtn://<node_name>.dtn<br><br> |
| 89 | |
| 90 | <li>Interfaces</li> |
| 91 | By default, interfaces listen on port 4556. If you wish to use a different port |
| 92 | you can override by using the <i>local_port=<port_#></i> argument.<br><br> |
| 93 | |
| 94 | <li>Links</li> |
| 95 | link add link_name ip address[:port number] ONDEMAND tcp<br><br> |
| 96 | |
| 97 | <li>Route</li> |
| 98 | route add dtn://george.dtn/* link_tcp<br><br> |
| 99 | |
| 100 | <li>Save and quit the configuration file</li><br> |
| 101 | |
| 102 | <li>Start the database</li> |
| 103 | $ daemon/dtnd -c /home/fred/dtn/dtn.conf --init-db <br><br> |
| 104 | |
| 105 | <li>Run the DTN daemon</li> |
| 106 | $ daemon/dtnd -c /home/fred/dtn/dtn.conf -l info <br><br> |
| 107 | |
| 108 | <li>Checking connectivity using DTN-Ping</li> |
| 109 | $ ./dtnping localhost |
| 110 | |
| 111 | </ol> |
| 112 | }}} |
| 113 | |